The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
feat(getting-started): add the server module behind IS_GETTING_STARTED_ENABLED (#29290)
Etienneb894b222491c
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphqlindex 86007cfb050..94cee276579 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql@@ -2319,6 +2319,7 @@ enum FeatureFlagKey {IS_APP_PREFERENCES_ENABLEDIS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLEDIS_CONFIGURABLE_SEARCH_FIELDS_ENABLED+ IS_GETTING_STARTED_ENABLEDIS_MCP_SERVERS_ENABLEDIS_PRIVATE_RECORD_ENABLEDIS_RECORD_CREATION_FORM_ENABLED@@ -2585,6 +2586,64 @@ input GetAuthorizationUrlForSSOInput {workspaceInviteHash: String}+type GettingStartedProgress {+ completedStepActionKeys: [GettingStartedStepActionKey!]!+ isHidden: Boolean!+ selectedStepActionKey: GettingStartedStepActionKey+ snoozedUntil: String+ steps: [GettingStartedStepDefinition!]!+}++enum GettingStartedStepActionKey {+ CONNECT_MAILBOX+ CUSTOMIZE_DATA_MODEL+ FOLLOW_UP_DEALS+ HANDOVER_DEALS+ IMPORT_DATA+ INSTALL_APP+ INVITE_TEAM+}++type GettingStartedStepDefinition {+ actionKey: GettingStartedStepActionKey!+ description: String!+ doneTitle: String!+ icon: String!+ iconColor: String!+ kind: GettingStartedStepKind!+ prompt: String+ promptLabel: String+ title: String!+}++enum GettingStartedStepKind {+ CUSTOM+ PROMPT+ WORKFLOW+}++type GettingStartedWorkflow {+ versionId: String!+ workflowId: String!+}++type GettingStartedWorkflowPreview {+ actions: [GettingStartedWorkflowPreviewAction!]!+ stepActionKey: GettingStartedStepActionKey!+ trigger: GettingStartedWorkflowPreviewTrigger!+}++type GettingStartedWorkflowPreviewAction {+ title: String!+ type: WorkflowActionType!+}++type GettingStartedWorkflowPreviewTrigger {+ databaseEventAction: String+ title: String!+ type: String!+}+input GrantApplicationCapabilitiesInput {applicationId: UUID!capabilities: [String!]!@@ -3385,6 +3444,7 @@ type Mutation {installMarketplaceApp(universalIdentifier: String!, version: String): Boolean! @deprecated(reason: "Use installApplication instead")markAgentChatThreadAsDoneInChannel(threadId: UUID!): Boolean!moveAgentChatThreadToChannel(channelId: UUID, threadId: UUID!): Boolean!+ prepareGettingStartedWorkflow(stepActionKey: GettingStartedStepActionKey!): GettingStartedWorkflow!refreshEnterpriseValidityToken: Boolean!releaseEnterpriseServerBinding: EnterpriseLicenseInfoDTO!removeAgentChatMessageReaction(emoji: String!, messageId: UUID!): [AgentMessageReactionSummary!]!@@ -3461,6 +3521,7 @@ type Mutation {updateCommandMenuItem(input: UpdateCommandMenuItemInput!): CommandMenuItem!updateEmailGroupChannel(input: UpdateEmailGroupChannelInput!): MessageChannel!updateFrontComponent(input: UpdateFrontComponentInput!): FrontComponent!+ updateGettingStarted(input: UpdateGettingStartedInput!): GettingStartedProgress!updateLabPublicFeatureFlag(input: UpdateLabPublicFeatureFlagInput!): FeatureFlag!updateManyNavigationMenuItems(inputs: [UpdateOneNavigationMenuItemInput!]!): [NavigationMenuItem!]!updateManyObjects(inputs: [UpdateOneObjectInput!]!): [Object!]!@@ -4149,6 +4210,8 @@ type Query {getViewSorts(viewId: String): [ViewSort!]!getViews(objectMetadataId: String, viewTypes: [ViewType!]): [View!]!getWorkspaceCreationDefaults: WorkspaceCreationDefaultsDTO!+ gettingStartedProgress: GettingStartedProgress!+ gettingStartedWorkflowPreviews: [GettingStartedWorkflowPreview!]!githubClaimAuthorizationUrl(applicationRegistrationId: String!): String!isApplicationStopped(applicationUniversalIdentifier: String!): Boolean!lineChartData(input: LineChartDataInput!): LineChartData!@@ -5060,6 +5123,13 @@ input UpdateFrontComponentInputUpdates {name: String}+input UpdateGettingStartedInput {+ completedStepActionKey: GettingStartedStepActionKey+ isHidden: Boolean+ selectedStepActionKey: GettingStartedStepActionKey+ snoozedUntil: String+}+input UpdateLabPublicFeatureFlagInput {publicFeatureFlag: String!value: Boolean!@@ -6169,6 +6239,31 @@ enum WidgetType {WORKFLOW_VERSION}+enum WorkflowActionType {+ AI_AGENT+ CLASSIFY+ CODE+ CREATE_CALENDAR_EVENT+ CREATE_RECORD+ DELAY+ DELETE_RECORD+ DRAFT_EMAIL+ EMPTY+ FILTER+ FIND_RECORDS+ FORM+ HTTP_REQUEST+ IF_ELSE+ ITERATOR+ LOGIC_FUNCTION+ PICK_RECORD+ SEND_CHAT_MESSAGE+ SEND_EMAIL+ UPDATE_RECORD+ UPSERT_RECORD+ WAIT_FOR_EVENT+}+type WorkflowConfiguration {configurationType: WidgetConfigurationType!}diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.tsindex 33cb3025ee5..c6964668257 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts@@ -1526,7 +1526,7 @@ export interface FeatureFlag {__typename: 'FeatureFlag'}-export type FeatureFlagKey = 'IS_AI_CHAT_COMPONENT_BUILDER_ENABLED' | 'IS_AI_CHAT_INBOX_ENABLED' | 'IS_APP_PREFERENCES_ENABLED' | 'IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED' | 'IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED' | 'IS_MCP_SERVERS_ENABLED' | 'IS_PRIVATE_RECORD_ENABLED' | 'IS_RECORD_CREATION_FORM_ENABLED' | 'IS_RECORD_LEVEL_SHARING_ENABLED' | 'IS_RELATED_RECORD_PATHS_ENABLED' | 'IS_REST_METADATA_API_NEW_FORMAT_DIRECT' | 'IS_ROW_LEVEL_PERMISSION_RELATION_HOP_ENABLED'+export type FeatureFlagKey = 'IS_AI_CHAT_COMPONENT_BUILDER_ENABLED' | 'IS_AI_CHAT_INBOX_ENABLED' | 'IS_APP_PREFERENCES_ENABLED' | 'IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED' | 'IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED' | 'IS_GETTING_STARTED_ENABLED' | 'IS_MCP_SERVERS_ENABLED' | 'IS_PRIVATE_RECORD_ENABLED' | 'IS_RECORD_CREATION_FORM_ENABLED' | 'IS_RECORD_LEVEL_SHARING_ENABLED' | 'IS_RELATED_RECORD_PATHS_ENABLED' | 'IS_REST_METADATA_API_NEW_FORMAT_DIRECT' | 'IS_ROW_LEVEL_PERMISSION_RELATION_HOP_ENABLED'export interface Field {applicationId: Scalars['UUID']@@ -1716,6 +1716,58 @@ export interface GetAuthorizationUrlForSSO {__typename: 'GetAuthorizationUrlForSSO'}+export interface GettingStartedProgress {+ completedStepActionKeys: GettingStartedStepActionKey[]+ isHidden: Scalars['Boolean']+ selectedStepActionKey?: GettingStartedStepActionKey+ snoozedUntil?: Scalars['String']+ steps: GettingStartedStepDefinition[]+ __typename: 'GettingStartedProgress'+}++export type GettingStartedStepActionKey = 'CONNECT_MAILBOX' | 'CUSTOMIZE_DATA_MODEL' | 'FOLLOW_UP_DEALS' | 'HANDOVER_DEALS' | 'IMPORT_DATA' | 'INSTALL_APP' | 'INVITE_TEAM'++export interface GettingStartedStepDefinition {+ actionKey: GettingStartedStepActionKey+ description: Scalars['String']+ doneTitle: Scalars['String']+ icon: Scalars['String']+ iconColor: Scalars['String']+ kind: GettingStartedStepKind+ prompt?: Scalars['String']+ promptLabel?: Scalars['String']+ title: Scalars['String']+ __typename: 'GettingStartedStepDefinition'+}++export type GettingStartedStepKind = 'CUSTOM' | 'PROMPT' | 'WORKFLOW'++export interface GettingStartedWorkflow {+ versionId: Scalars['String']+ workflowId: Scalars['String']+ __typename: 'GettingStartedWorkflow'+}++export interface GettingStartedWorkflowPreview {+ actions: GettingStartedWorkflowPreviewAction[]+ stepActionKey: GettingStartedStepActionKey+ trigger: GettingStartedWorkflowPreviewTrigger+ __typename: 'GettingStartedWorkflowPreview'+}++export interface GettingStartedWorkflowPreviewAction {+ title: Scalars['String']+ type: WorkflowActionType+ __typename: 'GettingStartedWorkflowPreviewAction'+}++export interface GettingStartedWorkflowPreviewTrigger {+ databaseEventAction?: Scalars['String']+ title: Scalars['String']+ type: Scalars['String']+ __typename: 'GettingStartedWorkflowPreviewTrigger'+}+/** Order by options for graph widgets */export type GraphOrderBy = 'FIELD_ASC' | 'FIELD_DESC' | 'FIELD_POSITION_ASC' | 'FIELD_POSITION_DESC' | 'MANUAL' | 'VALUE_ASC' | 'VALUE_DESC'@@ -2390,6 +2442,7 @@ export interface Mutation {installMarketplaceApp: Scalars['Boolean']markAgentChatThreadAsDoneInChannel: Scalars['Boolean']moveAgentChatThreadToChannel: Scalars['Boolean']+ prepareGettingStartedWorkflow: GettingStartedWorkflowrefreshEnterpriseValidityToken: Scalars['Boolean']releaseEnterpriseServerBinding: EnterpriseLicenseInfoDTOremoveAgentChatMessageReaction: AgentMessageReactionSummary[]@@ -2468,6 +2521,7 @@ export interface Mutation {updateCommandMenuItem: CommandMenuItemupdateEmailGroupChannel: MessageChannelupdateFrontComponent: FrontComponent+ updateGettingStarted: GettingStartedProgressupdateLabPublicFeatureFlag: FeatureFlagupdateManyNavigationMenuItems: NavigationMenuItem[]updateManyObjects: Object[]@@ -3067,6 +3121,8 @@ export interface Query {getViewSorts: ViewSort[]getViews: View[]getWorkspaceCreationDefaults: WorkspaceCreationDefaultsDTO+ gettingStartedProgress: GettingStartedProgress+ gettingStartedWorkflowPreviews: GettingStartedWorkflowPreview[]githubClaimAuthorizationUrl: Scalars['String']isApplicationStopped: Scalars['Boolean']lineChartData: LineChartData@@ -4047,6 +4103,8 @@ export type WidgetConfigurationType = 'AGGREGATE_CHART' | 'BAR_CHART' | 'CALENDAexport type WidgetType = 'CALENDAR' | 'CALL_RECORDING_SUMMARY' | 'CALL_RECORDING_TRANSCRIPT' | 'CHAT' | 'CHAT_THREADS' | 'EMAILS' | 'EMAIL_THREAD' | 'FIELD' | 'FIELDS' | 'FIELD_RICH_TEXT' | 'FILES' | 'FORM_FIELD' | 'FRONT_COMPONENT' | 'GRAPH' | 'IFRAME' | 'MESSAGE_CAMPAIGN_BODY' | 'MESSAGE_CAMPAIGN_DETAILS' | 'NOTES' | 'RECORD_TABLE' | 'STANDALONE_RICH_TEXT' | 'TASKS' | 'TIMELINE' | 'VIEW' | 'WORKFLOW' | 'WORKFLOW_RUN' | 'WORKFLOW_VERSION'+export type WorkflowActionType = 'AI_AGENT' | 'CLASSIFY' | 'CODE' | 'CREATE_CALENDAR_EVENT' | 'CREATE_RECORD' | 'DELAY' | 'DELETE_RECORD' | 'DRAFT_EMAIL' | 'EMPTY' | 'FILTER' | 'FIND_RECORDS' | 'FORM' | 'HTTP_REQUEST' | 'IF_ELSE' | 'ITERATOR' | 'LOGIC_FUNCTION' | 'PICK_RECORD' | 'SEND_CHAT_MESSAGE' | 'SEND_EMAIL' | 'UPDATE_RECORD' | 'UPSERT_RECORD' | 'WAIT_FOR_EVENT'+export interface WorkflowConfiguration {configurationType: WidgetConfigurationType__typename: 'WorkflowConfiguration'@@ -6218,6 +6276,60 @@ export interface GetAuthorizationUrlForSSOGenqlSelection{export interface GetAuthorizationUrlForSSOInput {identityProviderId: Scalars['UUID'],workspaceInviteHash?: (Scalars['String'] | null)}+export interface GettingStartedProgressGenqlSelection{+ completedStepActionKeys?: boolean | number+ isHidden?: boolean | number+ selectedStepActionKey?: boolean | number+ snoozedUntil?: boolean | number+ steps?: GettingStartedStepDefinitionGenqlSelection+ __typename?: boolean | number+ __scalar?: boolean | number+}++export interface GettingStartedStepDefinitionGenqlSelection{+ actionKey?: boolean | number+ description?: boolean | number+ doneTitle?: boolean | number+ icon?: boolean | number+ iconColor?: boolean | number+ kind?: boolean | number+ prompt?: boolean | number+ promptLabel?: boolean | number+ title?: boolean | number+ __typename?: boolean | number+ __scalar?: boolean | number+}++export interface GettingStartedWorkflowGenqlSelection{+ versionId?: boolean | number+ workflowId?: boolean | number+ __typename?: boolean | number+ __scalar?: boolean | number+}++export interface GettingStartedWorkflowPreviewGenqlSelection{+ actions?: GettingStartedWorkflowPreviewActionGenqlSelection+ stepActionKey?: boolean | number+ trigger?: GettingStartedWorkflowPreviewTriggerGenqlSelection+ __typename?: boolean | number+ __scalar?: boolean | number+}++export interface GettingStartedWorkflowPreviewActionGenqlSelection{+ title?: boolean | number+ type?: boolean | number+ __typename?: boolean | number+ __scalar?: boolean | number+}++export interface GettingStartedWorkflowPreviewTriggerGenqlSelection{+ databaseEventAction?: boolean | number+ title?: boolean | number+ type?: boolean | number+ __typename?: boolean | number+ __scalar?: boolean | number+}+export interface GrantApplicationCapabilitiesInput {applicationId: Scalars['UUID'],capabilities: Scalars['String'][]}export interface GridPositionGenqlSelection{@@ -6910,6 +7022,7 @@ export interface MutationGenqlSelection{installMarketplaceApp?: { __args: {universalIdentifier: Scalars['String'], version?: (Scalars['String'] | null)} }markAgentChatThreadAsDoneInChannel?: { __args: {threadId: Scalars['UUID']} }moveAgentChatThreadToChannel?: { __args: {channelId?: (Scalars['UUID'] | null), threadId: Scalars['UUID']} }+ prepareGettingStartedWorkflow?: (GettingStartedWorkflowGenqlSelection & { __args: {stepActionKey: GettingStartedStepActionKey} })refreshEnterpriseValidityToken?: boolean | numberreleaseEnterpriseServerBinding?: EnterpriseLicenseInfoDTOGenqlSelectionremoveAgentChatMessageReaction?: (AgentMessageReactionSummaryGenqlSelection & { __args: {emoji: Scalars['String'], messageId: Scalars['UUID']} })@@ -6988,6 +7101,7 @@ export interface MutationGenqlSelection{updateCommandMenuItem?: (CommandMenuItemGenqlSelection & { __args: {input: UpdateCommandMenuItemInput} })updateEmailGroupChannel?: (MessageChannelGenqlSelection & { __args: {input: UpdateEmailGroupChannelInput} })updateFrontComponent?: (FrontComponentGenqlSelection & { __args: {input: UpdateFrontComponentInput} })+ updateGettingStarted?: (GettingStartedProgressGenqlSelection & { __args: {input: UpdateGettingStartedInput} })updateLabPublicFeatureFlag?: (FeatureFlagGenqlSelection & { __args: {input: UpdateLabPublicFeatureFlagInput} })updateManyNavigationMenuItems?: (NavigationMenuItemGenqlSelection & { __args: {inputs: UpdateOneNavigationMenuItemInput[]} })updateManyObjects?: (ObjectGenqlSelection & { __args: {inputs: UpdateOneObjectInput[]} })@@ -7633,6 +7747,8 @@ export interface QueryGenqlSelection{getViewSorts?: (ViewSortGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })getViews?: (ViewGenqlSelection & { __args?: {objectMetadataId?: (Scalars['String'] | null), viewTypes?: (ViewType[] | null)} })getWorkspaceCreationDefaults?: WorkspaceCreationDefaultsDTOGenqlSelection+ gettingStartedProgress?: GettingStartedProgressGenqlSelection+ gettingStartedWorkflowPreviews?: GettingStartedWorkflowPreviewGenqlSelectiongithubClaimAuthorizationUrl?: { __args: {applicationRegistrationId: Scalars['String']} }isApplicationStopped?: { __args: {applicationUniversalIdentifier: Scalars['String']} }lineChartData?: (LineChartDataGenqlSelection & { __args: {input: LineChartDataInput} })@@ -8325,6 +8441,8 @@ update: UpdateFrontComponentInputUpdates}export interface UpdateFrontComponentInputUpdates {description?: (Scalars['String'] | null),name?: (Scalars['String'] | null)}+export interface UpdateGettingStartedInput {completedStepActionKey?: (GettingStartedStepActionKey | null),isHidden?: (Scalars['Boolean'] | null),selectedStepActionKey?: (GettingStartedStepActionKey | null),snoozedUntil?: (Scalars['String'] | null)}+export interface UpdateLabPublicFeatureFlagInput {publicFeatureFlag: Scalars['String'],value: Scalars['Boolean']}export interface UpdateLogicFunctionFromSourceInput {@@ -10437,6 +10555,54 @@ export interface WorkspaceUrlsAndIdGenqlSelection{+ const GettingStartedProgress_possibleTypes: string[] = ['GettingStartedProgress']+ export const isGettingStartedProgress = (obj?: { __typename?: any } | null): obj is GettingStartedProgress => {+ if (!obj?.__typename) throw new Error('__typename is missing in "isGettingStartedProgress"')+ return GettingStartedProgress_possibleTypes.includes(obj.__typename)+ }++++ const GettingStartedStepDefinition_possibleTypes: string[] = ['GettingStartedStepDefinition']+ export const isGettingStartedStepDefinition = (obj?: { __typename?: any } | null): obj is GettingStartedStepDefinition => {+ if (!obj?.__typename) throw new Error('__typename is missing in "isGettingStartedStepDefinition"')+ return GettingStartedStepDefinition_possibleTypes.includes(obj.__typename)+ }++++ const GettingStartedWorkflow_possibleTypes: string[] = ['GettingStartedWorkflow']+ export const isGettingStartedWorkflow = (obj?: { __typename?: any } | null): obj is GettingStartedWorkflow => {+ if (!obj?.__typename) throw new Error('__typename is missing in "isGettingStartedWorkflow"')+ return GettingStartedWorkflow_possibleTypes.includes(obj.__typename)+ }++++ const GettingStartedWorkflowPreview_possibleTypes: string[] = ['GettingStartedWorkflowPreview']+ export const isGettingStartedWorkflowPreview = (obj?: { __typename?: any } | null): obj is GettingStartedWorkflowPreview => {+ if (!obj?.__typename) throw new Error('__typename is missing in "isGettingStartedWorkflowPreview"')+ return GettingStartedWorkflowPreview_possibleTypes.includes(obj.__typename)+ }++++ const GettingStartedWorkflowPreviewAction_possibleTypes: string[] = ['GettingStartedWorkflowPreviewAction']+ export const isGettingStartedWorkflowPreviewAction = (obj?: { __typename?: any } | null): obj is GettingStartedWorkflowPreviewAction => {+ if (!obj?.__typename) throw new Error('__typename is missing in "isGettingStartedWorkflowPreviewAction"')+ return GettingStartedWorkflowPreviewAction_possibleTypes.includes(obj.__typename)+ }++++ const GettingStartedWorkflowPreviewTrigger_possibleTypes: string[] = ['GettingStartedWorkflowPreviewTrigger']+ export const isGettingStartedWorkflowPreviewTrigger = (obj?: { __typename?: any } | null): obj is GettingStartedWorkflowPreviewTrigger => {+ if (!obj?.__typename) throw new Error('__typename is missing in "isGettingStartedWorkflowPreviewTrigger"')+ return GettingStartedWorkflowPreviewTrigger_possibleTypes.includes(obj.__typename)+ }+++const GridPosition_possibleTypes: string[] = ['GridPosition']export const isGridPosition = (obj?: { __typename?: any } | null): obj is GridPosition => {if (!obj?.__typename) throw new Error('__typename is missing in "isGridPosition"')@@ -12354,6 +12520,7 @@ export const enumFeatureFlagKey = {IS_APP_PREFERENCES_ENABLED: 'IS_APP_PREFERENCES_ENABLED' as const,IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED: 'IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED' as const,IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED: 'IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED' as const,+ IS_GETTING_STARTED_ENABLED: 'IS_GETTING_STARTED_ENABLED' as const,IS_MCP_SERVERS_ENABLED: 'IS_MCP_SERVERS_ENABLED' as const,IS_PRIVATE_RECORD_ENABLED: 'IS_PRIVATE_RECORD_ENABLED' as const,IS_RECORD_CREATION_FORM_ENABLED: 'IS_RECORD_CREATION_FORM_ENABLED' as const,@@ -12418,6 +12585,22 @@ export const enumFileFolder = {WorkspaceDataExport: 'WorkspaceDataExport' as const}+export const enumGettingStartedStepActionKey = {+ CONNECT_MAILBOX: 'CONNECT_MAILBOX' as const,+ CUSTOMIZE_DATA_MODEL: 'CUSTOMIZE_DATA_MODEL' as const,+ FOLLOW_UP_DEALS: 'FOLLOW_UP_DEALS' as const,+ HANDOVER_DEALS: 'HANDOVER_DEALS' as const,+ IMPORT_DATA: 'IMPORT_DATA' as const,+ INSTALL_APP: 'INSTALL_APP' as const,+ INVITE_TEAM: 'INVITE_TEAM' as const+}++export const enumGettingStartedStepKind = {+ CUSTOM: 'CUSTOM' as const,+ PROMPT: 'PROMPT' as const,+ WORKFLOW: 'WORKFLOW' as const+}+export const enumGraphOrderBy = {FIELD_ASC: 'FIELD_ASC' as const,FIELD_DESC: 'FIELD_DESC' as const,@@ -12917,6 +13100,31 @@ export const enumWidgetType = {WORKFLOW_VERSION: 'WORKFLOW_VERSION' as const}+export const enumWorkflowActionType = {+ AI_AGENT: 'AI_AGENT' as const,+ CLASSIFY: 'CLASSIFY' as const,+ CODE: 'CODE' as const,+ CREATE_CALENDAR_EVENT: 'CREATE_CALENDAR_EVENT' as const,+ CREATE_RECORD: 'CREATE_RECORD' as const,+ DELAY: 'DELAY' as const,+ DELETE_RECORD: 'DELETE_RECORD' as const,+ DRAFT_EMAIL: 'DRAFT_EMAIL' as const,+ EMPTY: 'EMPTY' as const,+ FILTER: 'FILTER' as const,+ FIND_RECORDS: 'FIND_RECORDS' as const,+ FORM: 'FORM' as const,+ HTTP_REQUEST: 'HTTP_REQUEST' as const,+ IF_ELSE: 'IF_ELSE' as const,+ ITERATOR: 'ITERATOR' as const,+ LOGIC_FUNCTION: 'LOGIC_FUNCTION' as const,+ PICK_RECORD: 'PICK_RECORD' as const,+ SEND_CHAT_MESSAGE: 'SEND_CHAT_MESSAGE' as const,+ SEND_EMAIL: 'SEND_EMAIL' as const,+ UPDATE_RECORD: 'UPDATE_RECORD' as const,+ UPSERT_RECORD: 'UPSERT_RECORD' as const,+ WAIT_FOR_EVENT: 'WAIT_FOR_EVENT' as const+}+export const enumWorkspaceActivationStatus = {ACTIVE: 'ACTIVE' as const,CREATED: 'CREATED' as const,diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.tsindex 6c6bea50d72..9544e442504 100644--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts@@ -52,73 +52,76 @@ export default {279,294,296,- 308,- 315,+ 302,+ 304,316,- 317,- 329,- 331,- 347,- 348,- 349,- 350,- 351,- 352,- 354,+ 323,+ 324,+ 325,+ 337,+ 339,355,356,+ 357,+ 358,359,360,362,- 365,+ 363,+ 364,+ 367,+ 368,370,- 374,- 383,- 390,+ 373,+ 378,+ 382,391,- 394,398,399,- 404,- 408,- 431,- 433,- 434,+ 402,+ 406,+ 407,+ 412,+ 416,+ 439,+ 441,442,- 454,- 456,- 460,- 465,- 485,- 497,- 498,- 500,- 525,- 527,- 529,- 593,- 613,- 620,+ 450,+ 462,+ 464,+ 468,+ 473,+ 493,+ 505,+ 506,+ 508,+ 533,+ 535,+ 537,+ 602,622,- 626,- 637,- 643,- 644,+ 629,+ 631,+ 635,646,- 647,- 649,- 650,- 651,- 654,+ 652,+ 653,655,+ 656,+ 658,+ 659,660,- 662,+ 663,+ 664,665,670,- 671,672,675,- 676+ 680,+ 681,+ 682,+ 685,+ 686],"types": {"ActivateWorkspaceInput": {@@ -135,7 +138,7 @@ export default {1],"operationSignature": [- 315+ 323],"queryId": [1@@ -146,7 +149,7 @@ export default {},"Agent": {"applicationId": [- 525+ 533],"createdAt": [211@@ -158,7 +161,7 @@ export default {1],"id": [- 525+ 533],"isActive": [4@@ -173,7 +176,7 @@ export default {1],"modelConfiguration": [- 315+ 323],"modelId": [1@@ -185,13 +188,13 @@ export default {1],"responseFormat": [- 315+ 323],"roleId": [- 525+ 533],"triggers": [- 315+ 323],"updatedAt": [211@@ -203,7 +206,7 @@ export default {"Boolean": {},"AgentChatChannel": {"applicationId": [- 525+ 533],"color": [1@@ -212,7 +215,7 @@ export default {1],"id": [- 525+ 533],"isAccessible": [4@@ -227,7 +230,7 @@ export default {6],"roleIds": [- 525+ 533],"__typename": [1@@ -243,7 +246,7 @@ export default {1],"id": [- 525+ 533],"label": [1@@ -260,7 +263,7 @@ export default {10],"channelId": [- 525+ 533],"doneCount": [10@@ -300,7 +303,7 @@ export default {4],"threadIds": [- 525+ 533],"__typename": [1@@ -309,7 +312,7 @@ export default {"AgentChatChannelThreadStatus": {},"AgentChatEvent": {"event": [- 315+ 323],"threadId": [1@@ -401,7 +404,7 @@ export default {211],"id": [- 525+ 533],"isSubscribed": [4@@ -419,7 +422,7 @@ export default {211],"threadId": [- 525+ 533],"updatedAt": [211@@ -430,7 +433,7 @@ export default {},"AgentIdInput": {"id": [- 525+ 533],"__typename": [1@@ -438,13 +441,13 @@ export default {},"AgentMessage": {"agentId": [- 525+ 533],"createdAt": [211],"id": [- 525+ 533],"parts": [22@@ -459,19 +462,19 @@ export default {1],"senderUserWorkspaceId": [- 525+ 533],"senderWorkspaceMemberId": [- 525+ 533],"status": [1],"threadId": [- 525+ 533],"turnId": [- 525+ 533],"__typename": [1@@ -488,7 +491,7 @@ export default {1],"fileId": [- 525+ 533],"fileMediaType": [1@@ -497,10 +500,10 @@ export default {1],"id": [- 525+ 533],"messageId": [- 525+ 533],"orderIndex": [10@@ -509,7 +512,7 @@ export default {4],"providerMetadata": [- 315+ 323],"reasoningContent": [1@@ -545,13 +548,13 @@ export default {1],"toolInput": [- 315+ 323],"toolName": [1],"toolOutput": [- 315+ 323],"type": [1@@ -562,7 +565,7 @@ export default {},"AgentMessageReactionSummary": {"agentIds": [- 525+ 533],"emoji": [1@@ -571,7 +574,7 @@ export default {4],"workspaceMemberIds": [- 525+ 533],"__typename": [1@@ -597,7 +600,7 @@ export default {1],"id": [- 525+ 533],"input": [1@@ -621,7 +624,7 @@ export default {25],"threadId": [- 525+ 533],"threadTitle": [1@@ -636,13 +639,13 @@ export default {"AgentTurnStatus": {},"AggregateChartConfiguration": {"aggregateFieldMetadataId": [- 525+ 533],"aggregateOperation": [27],"configurationType": [- 654+ 663],"description": [1@@ -651,7 +654,7 @@ export default {4],"filter": [- 315+ 323],"firstDayOfTheWeek": [10@@ -666,7 +669,7 @@ export default {1],"ratioAggregateConfig": [- 426+ 434],"suffix": [1@@ -762,7 +765,7 @@ export default {211],"id": [- 525+ 533],"name": [1@@ -771,7 +774,7 @@ export default {211],"role": [- 448+ 456],"updatedAt": [211@@ -785,7 +788,7 @@ export default {211],"id": [- 525+ 533],"name": [1@@ -860,7 +863,7 @@ export default {42],"value": [- 315+ 323],"__typename": [1@@ -915,13 +918,13 @@ export default {1],"personId": [- 525+ 533],"role": [- 356+ 364],"workspaceMemberId": [- 525+ 533],"__typename": [1@@ -935,7 +938,7 @@ export default {75],"applicationRegistrationId": [- 525+ 533],"applicationVariables": [78@@ -944,7 +947,7 @@ export default {4],"availablePackages": [- 315+ 323],"canBeUninstalled": [4@@ -956,7 +959,7 @@ export default {211],"defaultLogicFunctionRole": [- 448+ 456],"defaultRoleId": [1@@ -968,19 +971,19 @@ export default {286],"healthCheckLogicFunctionId": [- 525+ 533],"id": [- 525+ 533],"isUninstallBlockedByOtherWorkspaceInstallations": [4],"logicFunctions": [- 328+ 336],"logoFileId": [- 525+ 533],"logoUrl": [1@@ -989,22 +992,22 @@ export default {1],"objects": [- 376+ 384],"packageJsonChecksum": [1],"packageJsonFileId": [- 525+ 533],"runOnUserPreferences": [4],"settingsCustomTabFrontComponentId": [- 525+ 533],"settingsMenuItems": [- 484+ 492],"universalIdentifier": [1@@ -1016,7 +1019,7 @@ export default {1],"yarnLockFileId": [- 525+ 533],"__typename": [1@@ -1024,7 +1027,7 @@ export default {},"ApplicationAuthorization": {"applicationId": [- 525+ 533],"applicationName": [1@@ -1036,7 +1039,7 @@ export default {211],"id": [- 525+ 533],"lastAuthorizedAt": [211@@ -1048,7 +1051,7 @@ export default {1],"workspaceId": [- 525+ 533],"__typename": [1@@ -1059,7 +1062,7 @@ export default {1],"id": [- 525+ 533],"__typename": [1@@ -1067,7 +1070,7 @@ export default {},"ApplicationConnectedAccountDTO": {"applicationId": [- 525+ 533],"archivedAt": [211@@ -1079,10 +1082,10 @@ export default {1],"connectionParameters": [- 422+ 430],"connectionProviderId": [- 525+ 533],"createdAt": [211@@ -1094,7 +1097,7 @@ export default {1],"id": [- 525+ 533],"isOwnedByCurrentUser": [4@@ -1121,7 +1124,7 @@ export default {211],"userWorkspaceId": [- 525+ 533],"visibility": [1@@ -1138,7 +1141,7 @@ export default {1],"id": [- 525+ 533],"logoUrl": [1@@ -1181,7 +1184,7 @@ export default {56],"manifest": [- 315+ 323],"__typename": [1@@ -1235,7 +1238,7 @@ export default {},"ApplicationFileCompletionError": {"fileId": [- 525+ 533],"message": [1@@ -1283,7 +1286,7 @@ export default {279],"fileId": [- 525+ 533],"filePath": [1@@ -1493,7 +1496,7 @@ export default {},"ApplicationPreferences": {"applicationId": [- 525+ 533],"connectionProviders": [50@@ -1502,10 +1505,10 @@ export default {4],"settingsMenuItems": [- 484+ 492],"variables": [- 625+ 634],"__typename": [1@@ -1519,7 +1522,7 @@ export default {1],"id": [- 525+ 533],"isConfigured": [4@@ -1549,7 +1552,7 @@ export default {1],"ownerWorkspaceId": [- 525+ 533],"sourcePackage": [1@@ -1588,7 +1591,7 @@ export default {6],"versionDistribution": [- 635+ 644],"__typename": [1@@ -1596,7 +1599,7 @@ export default {},"ApplicationRegistrationSummary": {"id": [- 525+ 533],"latestAvailableVersion": [1@@ -1619,7 +1622,7 @@ export default {1],"id": [- 525+ 533],"isDeprecated": [4@@ -1637,7 +1640,7 @@ export default {1],"options": [- 315+ 323],"type": [1@@ -1668,7 +1671,7 @@ export default {1],"id": [- 525+ 533],"isDeprecated": [4@@ -1686,7 +1689,7 @@ export default {1],"options": [- 315+ 323],"scope": [79@@ -1710,7 +1713,7 @@ export default {1],"id": [- 525+ 533],"isValidated": [4@@ -1747,7 +1750,7 @@ export default {4],"sso": [- 464+ 472],"__typename": [1@@ -1807,7 +1810,7 @@ export default {1],"id": [- 525+ 533],"inviteHash": [1@@ -1822,10 +1825,10 @@ export default {1],"sso": [- 463+ 471],"workspaceUrls": [- 677+ 687],"__typename": [1@@ -1856,7 +1859,7 @@ export default {"AxisNameDisplay": {},"BarChartConfiguration": {"aggregateFieldMetadataId": [- 525+ 533],"aggregateOperation": [27@@ -1868,7 +1871,7 @@ export default {1],"configurationType": [- 654+ 663],"description": [1@@ -1880,7 +1883,7 @@ export default {4],"filter": [- 315+ 323],"firstDayOfTheWeek": [10@@ -1901,10 +1904,10 @@ export default {4],"primaryAxisDateGranularity": [- 390+ 398],"primaryAxisGroupByFieldMetadataId": [- 525+ 533],"primaryAxisGroupBySubFieldName": [1@@ -1913,7 +1916,7 @@ export default {1],"primaryAxisOrderBy": [- 294+ 302],"rangeMax": [6@@ -1922,10 +1925,10 @@ export default {6],"secondaryAxisGroupByDateGranularity": [- 390+ 398],"secondaryAxisGroupByFieldMetadataId": [- 525+ 533],"secondaryAxisGroupBySubFieldName": [1@@ -1934,7 +1937,7 @@ export default {1],"secondaryAxisOrderBy": [- 294+ 302],"splitMultiValueFields": [4@@ -1948,10 +1951,10 @@ export default {},"BarChartData": {"data": [- 315+ 323],"formattedToRawLookup": [- 315+ 323],"groupMode": [95@@ -1989,10 +1992,10 @@ export default {},"BarChartDataInput": {"configuration": [- 315+ 323],"objectMetadataId": [- 525+ 533],"__typename": [1@@ -2034,10 +2037,10 @@ export default {4],"id": [- 525+ 533],"userCreditsFallback": [- 626+ 635],"__typename": [1@@ -2057,7 +2060,7 @@ export default {4],"status": [- 498+ 506],"__typename": [1@@ -2167,7 +2170,7 @@ export default {125],"recurringInterval": [- 497+ 505],"stripePriceId": [1@@ -2184,7 +2187,7 @@ export default {125],"recurringInterval": [- 497+ 505],"stripePriceId": [1@@ -2331,19 +2334,19 @@ export default {4],"id": [- 525+ 533],"interval": [- 497+ 505],"metadata": [- 315+ 323],"phases": [121],"status": [- 498+ 506],"__typename": [1@@ -2361,7 +2364,7 @@ export default {4],"id": [- 525+ 533],"quantity": [6@@ -2437,7 +2440,7 @@ export default {},"CalendarChannel": {"connectedAccountId": [- 525+ 533],"contactAutoCreationPolicy": [128@@ -2452,7 +2455,7 @@ export default {1],"id": [- 525+ 533],"isContactAutoCreationEnabled": [4@@ -2491,7 +2494,7 @@ export default {"CalendarChannelVisibility": {},"CalendarConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -2499,7 +2502,7 @@ export default {},"CallRecordingSummaryConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -2507,7 +2510,7 @@ export default {},"CallRecordingTranscriptConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -2584,7 +2587,7 @@ export default {"ChartNumberFormat": {},"ChatConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -2592,7 +2595,7 @@ export default {},"ChatStreamCatchupChunks": {"chunks": [- 315+ 323],"error": [144@@ -2617,7 +2620,7 @@ export default {},"ChatThreadsConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -2742,7 +2745,7 @@ export default {6],"modelFamily": [- 370+ 378],"modelFamilyLabel": [1@@ -2751,7 +2754,7 @@ export default {1],"nativeCapabilities": [- 372+ 380],"outputCostPerMillionTokens": [6@@ -2884,13 +2887,13 @@ export default {152],"publicFeatureFlags": [- 420+ 428],"publicFunctionDomain": [1],"sentry": [- 482+ 490],"serverUrl": [1@@ -2899,7 +2902,7 @@ export default {4],"support": [- 499+ 507],"__typename": [1@@ -2932,10 +2935,10 @@ export default {},"CommandMenuItem": {"applicationId": [- 525+ 533],"availabilityObjectMetadataId": [- 525+ 533],"availabilityType": [155@@ -2947,7 +2950,7 @@ export default {1],"coreWorkflowVersionId": [- 525+ 533],"createdAt": [211@@ -2959,7 +2962,7 @@ export default {286],"frontComponentId": [- 525+ 533],"hotKeys": [1@@ -2968,7 +2971,7 @@ export default {1],"id": [- 525+ 533],"isActive": [4@@ -2980,10 +2983,10 @@ export default {1],"navigationTargetObjectMetadataId": [- 525+ 533],"pageLayoutId": [- 525+ 533],"payload": [156@@ -2995,13 +2998,13 @@ export default {1],"universalIdentifier": [- 525+ 533],"updatedAt": [211],"workflowVersionId": [- 525+ 533],"__typename": [1@@ -3010,10 +3013,10 @@ export default {"CommandMenuItemAvailabilityType": {},"CommandMenuItemPayload": {"on_ObjectMetadataCommandMenuItemPayload": [- 382+ 390],"on_PathCommandMenuItemPayload": [- 406+ 414],"__typename": [1@@ -3032,7 +3035,7 @@ export default {},"ConnectedAccountPublicDTO": {"applicationId": [- 525+ 533],"archivedAt": [211@@ -3044,10 +3047,10 @@ export default {1],"connectionParameters": [- 422+ 430],"connectionProviderId": [- 525+ 533],"createdAt": [211@@ -3059,7 +3062,7 @@ export default {1],"id": [- 525+ 533],"lastCredentialsRefreshedAt": [211@@ -3083,7 +3086,7 @@ export default {211],"userWorkspaceId": [- 525+ 533],"visibility": [1@@ -3095,19 +3098,19 @@ export default {"ConnectedAccountScope": {},"ConnectedImapSmtpCaldavAccount": {"connectionParameters": [- 300+ 308],"handle": [1],"id": [- 525+ 533],"provider": [1],"userWorkspaceId": [- 525+ 533],"__typename": [1@@ -3146,7 +3149,7 @@ export default {1],"roleIds": [- 525+ 533],"__typename": [1@@ -3163,7 +3166,7 @@ export default {1],"modelConfiguration": [- 315+ 323],"modelId": [1@@ -3175,13 +3178,13 @@ export default {1],"responseFormat": [- 315+ 323],"roleId": [- 525+ 533],"triggers": [- 315+ 323],"__typename": [1@@ -3198,7 +3201,7 @@ export default {1],"roleId": [- 525+ 533],"__typename": [1@@ -3206,7 +3209,7 @@ export default {},"CreateAppMessageChannelInput": {"connectedAccountId": [- 525+ 533],"displayName": [1@@ -3215,13 +3218,13 @@ export default {1],"messagingProviderUniversalIdentifier": [- 525+ 533],"participantHandleFieldUniversalIdentifier": [- 525+ 533],"visibility": [- 352+ 360],"__typename": [1@@ -3337,7 +3340,7 @@ export default {},"CreateCommandMenuItemInput": {"availabilityObjectMetadataId": [- 525+ 533],"availabilityType": [155@@ -3349,13 +3352,13 @@ export default {1],"coreWorkflowVersionId": [- 525+ 533],"engineComponentKey": [245],"frontComponentId": [- 525+ 533],"hotKeys": [1@@ -3370,13 +3373,13 @@ export default {1],"navigationTargetObjectMetadataId": [- 525+ 533],"pageLayoutId": [- 525+ 533],"payload": [- 315+ 323],"position": [6@@ -3385,7 +3388,7 @@ export default {1],"workflowVersionId": [- 525+ 533],"__typename": [1@@ -3407,7 +3410,7 @@ export default {1],"messageChannel": [- 346+ 354],"__typename": [1@@ -3423,7 +3426,7 @@ export default {},"CreateFieldInput": {"defaultValue": [- 315+ 323],"description": [1@@ -3465,22 +3468,22 @@ export default {1],"morphRelationsCreationPayload": [- 315+ 323],"name": [1],"objectMetadataId": [- 525+ 533],"options": [- 315+ 323],"relationCreationPayload": [- 315+ 323],"settings": [- 315+ 323],"type": [272@@ -3503,7 +3506,7 @@ export default {1],"id": [- 525+ 533],"name": [1@@ -3517,7 +3520,7 @@ export default {},"CreateIndexFieldInput": {"fieldMetadataId": [- 525+ 533],"subFieldName": [1@@ -3531,10 +3534,10 @@ export default {180],"indexType": [- 308+ 316],"objectMetadataId": [- 525+ 533],"__typename": [1@@ -3542,40 +3545,40 @@ export default {},"CreateLogicFunctionFromSourceInput": {"cronTriggerSettings": [- 315+ 323],"databaseEventTriggerSettings": [- 315+ 323],"description": [1],"httpRouteTriggerSettings": [- 315+ 323],"id": [- 525+ 533],"name": [1],"serverRouteTriggerSettings": [- 315+ 323],"source": [- 315+ 323],"timeoutSeconds": [6],"toolTriggerSettings": [- 315+ 323],"universalIdentifier": [- 525+ 533],"workflowActionTriggerSettings": [- 315+ 323],"__typename": [1@@ -3583,10 +3586,10 @@ export default {},"CreateMcpServerInput": {"connectionProviderId": [- 525+ 533],"id": [- 525+ 533],"isActive": [4@@ -3609,7 +3612,7 @@ export default {1],"unsubscribeTopicId": [- 525+ 533],"__typename": [1@@ -3617,19 +3620,19 @@ export default {},"CreateNavigationMenuItemInput": {"agentChatChannelId": [- 525+ 533],"color": [1],"folderId": [- 525+ 533],"icon": [1],"id": [- 525+ 533],"link": [1@@ -3638,25 +3641,25 @@ export default {1],"pageLayoutId": [- 525+ 533],"position": [6],"targetObjectMetadataId": [- 525+ 533],"targetRecordId": [- 525+ 533],"type": [- 374+ 382],"userWorkspaceId": [- 525+ 533],"viewId": [- 525+ 533],"__typename": [1@@ -3694,7 +3697,7 @@ export default {1],"primaryKeyFieldMetadataSettings": [- 315+ 323],"shortcut": [1@@ -3735,10 +3738,10 @@ export default {1],"objectMetadataId": [- 525+ 533],"type": [- 399+ 407],"__typename": [1@@ -3746,10 +3749,10 @@ export default {},"CreatePageLayoutTabInput": {"layoutMode": [- 398+ 406],"pageLayoutId": [- 525+ 533],"position": [6@@ -3763,22 +3766,22 @@ export default {},"CreatePageLayoutWidgetInput": {"configuration": [- 315+ 323],"objectMetadataId": [- 525+ 533],"pageLayoutTabId": [- 525+ 533],"position": [- 315+ 323],"title": [1],"type": [- 655+ 664],"__typename": [1@@ -3786,16 +3789,16 @@ export default {},"CreateRecordExportInput": {"fieldMetadataIds": [- 525+ 533],"filter": [- 315+ 323],"objectMetadataId": [- 525+ 533],"orderBy": [- 315+ 323],"__typename": [1@@ -3803,19 +3806,19 @@ export default {},"CreateRelatedRecordPathInput": {"firstFieldMetadataId": [- 525+ 533],"isInherent": [4],"objectMetadataId": [- 525+ 533],"secondFieldMetadataId": [- 525+ 533],"thirdFieldMetadataId": [- 525+ 533],"__typename": [1@@ -3879,7 +3882,7 @@ export default {1],"id": [- 525+ 533],"label": [1@@ -3899,7 +3902,7 @@ export default {1],"visibility": [- 529+ 537],"__typename": [1@@ -3916,7 +3919,7 @@ export default {98],"operationType": [- 613+ 622],"periodCount": [10@@ -3925,7 +3928,7 @@ export default {1],"resourceType": [- 620+ 629],"spenderId": [1@@ -3934,7 +3937,7 @@ export default {1],"unit": [- 622+ 631],"__typename": [1@@ -3945,7 +3948,7 @@ export default {1],"errorFieldMetadataId": [- 525+ 533],"expression": [1@@ -3963,7 +3966,7 @@ export default {1],"objectMetadataId": [- 525+ 533],"__typename": [1@@ -3971,7 +3974,7 @@ export default {},"CreateViewFieldGroupInput": {"id": [- 525+ 533],"isVisible": [4@@ -3983,7 +3986,7 @@ export default {6],"viewId": [- 525+ 533],"__typename": [1@@ -3994,10 +3997,10 @@ export default {27],"fieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"isVisible": [4@@ -4009,10 +4012,10 @@ export default {6],"viewFieldGroupId": [- 525+ 533],"viewId": [- 525+ 533],"__typename": [1@@ -4020,19 +4023,19 @@ export default {},"CreateViewFilterGroupInput": {"id": [- 525+ 533],"logicalOperator": [- 643+ 652],"parentViewFilterGroupId": [- 525+ 533],"positionInViewFilterGroup": [6],"viewId": [- 525+ 533],"__typename": [1@@ -4040,31 +4043,31 @@ export default {},"CreateViewFilterInput": {"fieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"operand": [- 644+ 653],"positionInViewFilterGroup": [6],"relationTargetFieldMetadataId": [- 525+ 533],"subFieldName": [1],"value": [- 315+ 323],"viewFilterGroupId": [- 525+ 533],"viewId": [- 525+ 533],"__typename": [1@@ -4075,7 +4078,7 @@ export default {1],"id": [- 525+ 533],"isVisible": [4@@ -4084,7 +4087,7 @@ export default {6],"viewId": [- 525+ 533],"__typename": [1@@ -4095,13 +4098,13 @@ export default {1],"calendarEndFieldMetadataId": [- 525+ 533],"calendarFieldMetadataId": [- 525+ 533],"calendarLayout": [- 637+ 646],"groupLoadLimit": [10@@ -4110,7 +4113,7 @@ export default {1],"id": [- 525+ 533],"isCompact": [4@@ -4119,25 +4122,25 @@ export default {27],"kanbanAggregateOperationFieldMetadataId": [- 525+ 533],"kanbanColumnWidth": [10],"key": [- 646+ 655],"mainGroupByFieldMetadataId": [- 525+ 533],"name": [1],"objectMetadataId": [- 525+ 533],"openRecordIn": [- 647+ 656],"position": [6@@ -4146,10 +4149,10 @@ export default {4],"type": [- 650+ 659],"visibility": [- 651+ 660],"__typename": [1@@ -4157,19 +4160,19 @@ export default {},"CreateViewSortInput": {"direction": [- 649+ 658],"fieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"subFieldName": [1],"viewId": [- 525+ 533],"__typename": [1@@ -4180,13 +4183,13 @@ export default {1],"id": [- 525+ 533],"operations": [1],"roleId": [- 525+ 533],"secret": [1@@ -4209,10 +4212,10 @@ export default {1],"operation": [- 613+ 622],"resource": [- 620+ 629],"__typename": [1@@ -4239,7 +4242,7 @@ export default {"DateTime": {},"DeleteApprovedAccessDomainInput": {"id": [- 525+ 533],"__typename": [1@@ -4247,7 +4250,7 @@ export default {},"DeleteOneFieldInput": {"id": [- 525+ 533],"__typename": [1@@ -4255,7 +4258,7 @@ export default {},"DeleteOneIndexInput": {"id": [- 525+ 533],"__typename": [1@@ -4263,7 +4266,7 @@ export default {},"DeleteOneObjectInput": {"id": [- 525+ 533],"__typename": [1@@ -4271,7 +4274,7 @@ export default {},"DeleteSso": {"identityProviderId": [- 525+ 533],"__typename": [1@@ -4279,7 +4282,7 @@ export default {},"DeleteSsoInput": {"identityProviderId": [- 525+ 533],"__typename": [1@@ -4295,7 +4298,7 @@ export default {},"DeleteViewFieldGroupInput": {"id": [- 525+ 533],"__typename": [1@@ -4303,7 +4306,7 @@ export default {},"DeleteViewFieldInput": {"id": [- 525+ 533],"__typename": [1@@ -4311,7 +4314,7 @@ export default {},"DeleteViewFilterInput": {"id": [- 525+ 533],"__typename": [1@@ -4319,7 +4322,7 @@ export default {},"DeleteViewGroupInput": {"id": [- 525+ 533],"__typename": [1@@ -4327,7 +4330,7 @@ export default {},"DeleteViewSortInput": {"id": [- 525+ 533],"__typename": [1@@ -4338,7 +4341,7 @@ export default {1],"id": [- 525+ 533],"name": [289@@ -4347,7 +4350,7 @@ export default {1],"userWorkspaceId": [- 525+ 533],"__typename": [1@@ -4355,7 +4358,7 @@ export default {},"DestroyViewFieldGroupInput": {"id": [- 525+ 533],"__typename": [1@@ -4363,7 +4366,7 @@ export default {},"DestroyViewFieldInput": {"id": [- 525+ 533],"__typename": [1@@ -4371,7 +4374,7 @@ export default {},"DestroyViewFilterInput": {"id": [- 525+ 533],"__typename": [1@@ -4379,7 +4382,7 @@ export default {},"DestroyViewGroupInput": {"id": [- 525+ 533],"__typename": [1@@ -4387,7 +4390,7 @@ export default {},"DestroyViewSortInput": {"id": [- 525+ 533],"__typename": [1@@ -4429,7 +4432,7 @@ export default {1],"id": [- 525+ 533],"isCustomDomainEnabled": [4@@ -4446,10 +4449,10 @@ export default {1],"id": [- 525+ 533],"pageLayoutId": [- 525+ 533],"position": [6@@ -4472,7 +4475,7 @@ export default {1],"id": [- 525+ 533],"memberCount": [6@@ -4492,7 +4495,7 @@ export default {},"EditSso": {"id": [- 525+ 533],"issuer": [1@@ -4501,10 +4504,10 @@ export default {1],"status": [- 465+ 473],"type": [- 296+ 304],"__typename": [1@@ -4512,10 +4515,10 @@ export default {},"EditSsoInput": {"id": [- 525+ 533],"status": [- 465+ 473],"__typename": [1@@ -4549,7 +4552,7 @@ export default {},"EmailThreadConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -4563,7 +4566,7 @@ export default {1],"id": [- 525+ 533],"status": [242@@ -4572,13 +4575,13 @@ export default {243],"unsubscribeHostnameStatus": [- 527+ 535],"updatedAt": [211],"verificationRecords": [- 632+ 641],"verifiedAt": [211@@ -4591,7 +4594,7 @@ export default {"EmailingDomainTenantStatus": {},"EmailsConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -4609,7 +4612,7 @@ export default {1],"payload": [- 315+ 323],"retryLimit": [10@@ -4623,7 +4626,7 @@ export default {1],"payload": [- 315+ 323],"__typename": [1@@ -4654,7 +4657,7 @@ export default {1],"payloads": [- 315+ 323],"retryLimit": [10@@ -4822,7 +4825,7 @@ export default {1],"properties": [- 315+ 323],"recordId": [1@@ -4843,13 +4846,13 @@ export default {1],"metadataEvents": [- 361+ 369],"objectRecordEventsWithQueryIds": [- 389+ 397],"queueJobEvents": [- 318+ 326],"__typename": [1@@ -4857,10 +4860,10 @@ export default {},"ExecuteOneLogicFunctionInput": {"id": [- 525+ 533],"payload": [- 315+ 323],"__typename": [1@@ -4880,13 +4883,13 @@ export default {"FeatureFlagKey": {},"Field": {"applicationId": [- 525+ 533],"createdAt": [211],"defaultValue": [- 315+ 323],"description": [1@@ -4898,7 +4901,7 @@ export default {1],"id": [- 525+ 533],"isActive": [4@@ -4931,28 +4934,28 @@ export default {1],"morphId": [- 525+ 533],"morphRelations": [- 441+ 449],"name": [1],"object": [- 376+ 384],"objectMetadataId": [- 525+ 533],"options": [- 315+ 323],"relation": [- 441+ 449],"settings": [- 315+ 323],"type": [272@@ -4969,7 +4972,7 @@ export default {},"FieldConfiguration": {"configurationType": [- 654+ 663],"fieldDisplayMode": [269@@ -4995,7 +4998,7 @@ export default {270],"pageInfo": [- 395+ 403],"__typename": [1@@ -5018,7 +5021,7 @@ export default {271],"id": [- 526+ 534],"isActive": [126@@ -5033,7 +5036,7 @@ export default {126],"objectMetadataId": [- 526+ 534],"or": [271@@ -5051,16 +5054,16 @@ export default {4],"fieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"objectMetadataId": [- 525+ 533],"roleId": [- 525+ 533],"__typename": [1@@ -5074,10 +5077,10 @@ export default {4],"fieldMetadataId": [- 525+ 533],"objectMetadataId": [- 525+ 533],"__typename": [1@@ -5085,7 +5088,7 @@ export default {},"FieldRichTextConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -5093,7 +5096,7 @@ export default {},"FieldsConfiguration": {"configurationType": [- 654+ 663],"newFieldDefaultVisibility": [4@@ -5113,7 +5116,7 @@ export default {211],"id": [- 525+ 533],"path": [1@@ -5130,7 +5133,7 @@ export default {1],"id": [- 525+ 533],"__typename": [1@@ -5145,7 +5148,7 @@ export default {211],"fileId": [- 525+ 533],"uploadUrl": [1@@ -5159,7 +5162,7 @@ export default {211],"id": [- 525+ 533],"path": [1@@ -5176,7 +5179,7 @@ export default {},"FilesConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -5184,7 +5187,7 @@ export default {},"FindAvailableSSOIDP": {"id": [- 525+ 533],"issuer": [1@@ -5193,13 +5196,13 @@ export default {1],"status": [- 465+ 473],"type": [- 296+ 304],"workspace": [- 674+ 684],"__typename": [1@@ -5213,13 +5216,13 @@ export default {10],"reason": [- 359+ 367],"searchTerm": [1],"unsubscribeTopicId": [- 525+ 533],"__typename": [1@@ -5227,7 +5230,7 @@ export default {},"FormFieldConfiguration": {"configurationType": [- 654+ 663],"fieldMetadataId": [1@@ -5241,7 +5244,7 @@ export default {1],"applicationId": [- 525+ 533],"applicationName": [1@@ -5250,7 +5253,7 @@ export default {77],"applicationVariables": [- 315+ 323],"builtComponentChecksum": [1@@ -5271,7 +5274,7 @@ export default {1],"id": [- 525+ 533],"isHeadless": [4@@ -5283,7 +5286,7 @@ export default {1],"universalIdentifier": [- 525+ 533],"updatedAt": [211@@ -5300,13 +5303,13 @@ export default {},"FrontComponentConfiguration": {"configurationType": [- 654+ 663],"frontComponentId": [- 525+ 533],"headerCommandMenuItemUniversalIdentifiers": [- 525+ 533],"__typename": [1@@ -5314,10 +5317,10 @@ export default {},"FrontComponentWidgetAvailability": {"objectMetadataId": [- 525+ 533],"pageLayoutType": [- 399+ 407],"__typename": [1@@ -5336,7 +5339,7 @@ export default {},"GetApiKeyInput": {"id": [- 525+ 533],"__typename": [1@@ -5347,7 +5350,7 @@ export default {1],"id": [- 525+ 533],"type": [1@@ -5358,7 +5361,7 @@ export default {},"GetAuthorizationUrlForSSOInput": {"identityProviderId": [- 525+ 533],"workspaceInviteHash": [1@@ -5367,27 +5370,131 @@ export default {1]},- "GrantApplicationCapabilitiesInput": {- "applicationId": [- 525+ "GettingStartedProgress": {+ "completedStepActionKeys": [+ 294],- "capabilities": [+ "isHidden": [+ 4+ ],+ "selectedStepActionKey": [+ 294+ ],+ "snoozedUntil": [1],+ "steps": [+ 295+ ],"__typename": [1]},- "GraphOrderBy": {},- "GridPosition": {- "column": [- 6+ "GettingStartedStepActionKey": {},+ "GettingStartedStepDefinition": {+ "actionKey": [+ 294],- "columnSpan": [- 6+ "description": [+ 1],- "row": [- 6+ "doneTitle": [+ 1+ ],+ "icon": [+ 1+ ],+ "iconColor": [+ 1+ ],+ "kind": [+ 296+ ],+ "prompt": [+ 1+ ],+ "promptLabel": [+ 1+ ],+ "title": [+ 1+ ],+ "__typename": [+ 1+ ]+ },+ "GettingStartedStepKind": {},+ "GettingStartedWorkflow": {+ "versionId": [+ 1+ ],+ "workflowId": [+ 1+ ],+ "__typename": [+ 1+ ]+ },+ "GettingStartedWorkflowPreview": {+ "actions": [+ 299+ ],+ "stepActionKey": [+ 294+ ],+ "trigger": [+ 300+ ],+ "__typename": [+ 1+ ]+ },+ "GettingStartedWorkflowPreviewAction": {+ "title": [+ 1+ ],+ "type": [+ 665+ ],+ "__typename": [+ 1+ ]+ },+ "GettingStartedWorkflowPreviewTrigger": {+ "databaseEventAction": [+ 1+ ],+ "title": [+ 1+ ],+ "type": [+ 1+ ],+ "__typename": [+ 1+ ]+ },+ "GrantApplicationCapabilitiesInput": {+ "applicationId": [+ 533+ ],+ "capabilities": [+ 1+ ],+ "__typename": [+ 1+ ]+ },+ "GraphOrderBy": {},+ "GridPosition": {+ "column": [+ 6+ ],+ "columnSpan": [+ 6+ ],+ "row": [+ 6],"rowSpan": [6@@ -5399,7 +5506,7 @@ export default {"IdentityProviderType": {},"IframeConfiguration": {"configurationType": [- 654+ 663],"url": [1@@ -5435,13 +5542,13 @@ export default {},"ImapSmtpCaldavPublicConnectionParameters": {"CALDAV": [- 301+ 309],"IMAP": [- 301+ 309],"SMTP": [- 301+ 309],"name": [1@@ -5472,7 +5579,7 @@ export default {83],"workspace": [- 678+ 688],"__typename": [1@@ -5483,10 +5590,10 @@ export default {1],"recordId": [- 525+ 533],"threadId": [- 525+ 533],"__typename": [1@@ -5494,19 +5601,19 @@ export default {},"Index": {"applicationId": [- 525+ 533],"createdAt": [211],"id": [- 525+ 533],"indexFieldMetadataList": [- 306+ 314],"indexType": [- 308+ 316],"indexWhereClause": [1@@ -5535,7 +5642,7 @@ export default {161],"node": [- 304+ 312],"__typename": [1@@ -5546,10 +5653,10 @@ export default {211],"fieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"order": [6@@ -5566,16 +5673,16 @@ export default {},"IndexFilter": {"and": [- 307+ 315],"id": [- 526+ 534],"isCustom": [126],"or": [- 307+ 315],"__typename": [1@@ -5584,7 +5691,7 @@ export default {"IndexType": {},"IngestAppMessagesInput": {"messageChannelId": [- 525+ 533],"messages": [44@@ -5595,7 +5702,7 @@ export default {},"IngestAppMessagesOutput": {"messages": [- 311+ 319],"__typename": [1@@ -5606,10 +5713,10 @@ export default {1],"messageId": [- 525+ 533],"messageThreadId": [- 525+ 533],"__typename": [1@@ -5668,7 +5775,7 @@ export default {6],"state": [- 317+ 325],"__typename": [1@@ -5676,7 +5783,7 @@ export default {},"LineChartConfiguration": {"aggregateFieldMetadataId": [- 525+ 533],"aggregateOperation": [27@@ -5688,7 +5795,7 @@ export default {1],"configurationType": [- 654+ 663],"description": [1@@ -5700,7 +5807,7 @@ export default {4],"filter": [- 315+ 323],"firstDayOfTheWeek": [10@@ -5718,10 +5825,10 @@ export default {4],"primaryAxisDateGranularity": [- 390+ 398],"primaryAxisGroupByFieldMetadataId": [- 525+ 533],"primaryAxisGroupBySubFieldName": [1@@ -5730,7 +5837,7 @@ export default {1],"primaryAxisOrderBy": [- 294+ 302],"rangeMax": [6@@ -5739,10 +5846,10 @@ export default {6],"secondaryAxisGroupByDateGranularity": [- 390+ 398],"secondaryAxisGroupByFieldMetadataId": [- 525+ 533],"secondaryAxisGroupBySubFieldName": [1@@ -5751,7 +5858,7 @@ export default {1],"secondaryAxisOrderBy": [- 294+ 302],"splitMultiValueFields": [4@@ -5765,13 +5872,13 @@ export default {},"LineChartData": {"formattedToRawLookup": [- 315+ 323],"hasTooManyGroups": [4],"series": [- 323+ 331],"showDataLabels": [4@@ -5791,10 +5898,10 @@ export default {},"LineChartDataInput": {"configuration": [- 315+ 323],"objectMetadataId": [- 525+ 533],"__typename": [1@@ -5813,7 +5920,7 @@ export default {},"LineChartSeries": {"data": [- 322+ 330],"key": [1@@ -5844,7 +5951,7 @@ export default {},"ListAppMessageChannelsInput": {"connectedAccountId": [- 525+ 533],"__typename": [1@@ -5852,7 +5959,7 @@ export default {},"ListAppMessageFoldersInput": {"messageChannelId": [- 525+ 533],"__typename": [1@@ -5871,7 +5978,7 @@ export default {},"LogicFunction": {"applicationId": [- 525+ 533],"canRunOnDemand": [4@@ -5880,25 +5987,25 @@ export default {211],"cronTriggerSettings": [- 315+ 323],"databaseEventTriggerSettings": [- 315+ 323],"description": [1],"executionMode": [- 329+ 337],"handlerName": [1],"httpRouteTriggerSettings": [- 315+ 323],"id": [- 525+ 533],"name": [1@@ -5913,16 +6020,16 @@ export default {6],"toolTriggerSettings": [- 315+ 323],"universalIdentifier": [- 525+ 533],"updatedAt": [211],"workflowActionTriggerSettings": [- 315+ 323],"__typename": [1@@ -5931,19 +6038,19 @@ export default {"LogicFunctionExecutionMode": {},"LogicFunctionExecutionResult": {"data": [- 315+ 323],"duration": [6],"error": [- 315+ 323],"logs": [1],"status": [- 331+ 339],"__typename": [1@@ -5966,7 +6073,7 @@ export default {1],"universalIdentifier": [- 525+ 533],"__typename": [1@@ -5974,19 +6081,19 @@ export default {},"LogicFunctionLogsInput": {"applicationId": [- 525+ 533],"applicationUniversalIdentifier": [- 525+ 533],"id": [- 525+ 533],"name": [1],"universalIdentifier": [- 525+ 533],"__typename": [1@@ -6073,13 +6180,13 @@ export default {1],"manifest": [- 315+ 323],"name": [1],"objects": [- 338+ 346],"pricingDescription": [1@@ -6088,7 +6195,7 @@ export default {1],"roles": [- 339+ 347],"screenshots": [1@@ -6149,7 +6256,7 @@ export default {1],"fieldPermissions": [- 340+ 348],"icon": [1@@ -6158,7 +6265,7 @@ export default {1],"objectPermissions": [- 341+ 349],"permissionFlagUniversalIdentifiers": [1@@ -6215,16 +6322,16 @@ export default {},"McpServer": {"applicationId": [- 525+ 533],"connectionProviderId": [- 525+ 533],"createdAt": [211],"id": [- 525+ 533],"isActive": [4@@ -6247,7 +6354,7 @@ export default {},"MessageCampaignBodyConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -6255,7 +6362,7 @@ export default {},"MessageCampaignDetailsConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -6277,10 +6384,10 @@ export default {158],"connectedAccountId": [- 525+ 533],"contactAutoCreationPolicy": [- 347+ 355],"createdAt": [211@@ -6298,7 +6405,7 @@ export default {1],"id": [- 525+ 533],"importProgress": [10@@ -6310,25 +6417,25 @@ export default {4],"messageFolderImportPolicy": [- 354+ 362],"messagingProviderUniversalIdentifier": [- 525+ 533],"participantHandleFieldUniversalIdentifier": [- 525+ 533],"pendingGroupEmailsAction": [- 348+ 356],"syncStage": [- 349+ 357],"syncStageStartedAt": [211],"syncStatus": [- 350+ 358],"syncedAt": [211@@ -6340,13 +6447,13 @@ export default {211],"type": [- 351+ 359],"updatedAt": [211],"visibility": [- 352+ 360],"__typename": [1@@ -6366,7 +6473,7 @@ export default {1],"id": [- 525+ 533],"isSentFolder": [4@@ -6375,7 +6482,7 @@ export default {4],"messageChannelId": [- 525+ 533],"name": [1@@ -6384,7 +6491,7 @@ export default {1],"pendingSyncAction": [- 355+ 363],"updatedAt": [211@@ -6404,16 +6511,16 @@ export default {1],"id": [- 525+ 533],"reason": [- 359+ 367],"source": [- 360+ 368],"unsubscribeTopicId": [- 525+ 533],"__typename": [1@@ -6421,7 +6528,7 @@ export default {},"MessageSuppressionList": {"records": [- 357+ 365],"totalCount": [10@@ -6437,13 +6544,13 @@ export default {1],"properties": [- 388+ 396],"recordId": [1],"type": [- 362+ 370],"updatedCollectionHash": [1@@ -6464,16 +6571,16 @@ export default {1],"objectMetadataId": [- 525+ 533],"property": [1],"provenance": [- 365+ 373],"recordId": [- 525+ 533],"sourceValue": [1@@ -6502,13 +6609,13 @@ export default {"MetadataTranslationProvenance": {},"MetadataTranslationsInput": {"fieldMetadataId": [- 525+ 533],"locale": [1],"objectMetadataId": [- 525+ 533],"__typename": [1@@ -6519,10 +6626,10 @@ export default {153],"objectMetadataItems": [- 368+ 376],"views": [- 369+ 377],"__typename": [1@@ -6536,7 +6643,7 @@ export default {1],"id": [- 525+ 533],"isActive": [4@@ -6565,16 +6672,16 @@ export default {},"MinimalView": {"id": [- 525+ 533],"key": [- 646+ 655],"objectMetadataId": [- 525+ 533],"type": [- 650+ 659],"__typename": [1@@ -6583,16 +6690,16 @@ export default {"ModelFamily": {},"Mutation": {"activateSkill": [- 491,+ 499,{"id": [- 525,+ 533,"UUID!"]}],"activateWorkspace": [- 659,+ 669,{"data": [0,@@ -6608,7 +6715,7 @@ export default {"String!"],"messageId": [- 525,+ 533,"UUID!"]}@@ -6626,10 +6733,10 @@ export default {4,{"assigneeWorkspaceMemberId": [- 525+ 533],"threadId": [- 525,+ 533,"UUID!"]}@@ -6638,11 +6745,11 @@ export default {4,{"agentId": [- 525,+ 533,"UUID!"],"roleId": [- 525,+ 533,"UUID!"]}@@ -6651,11 +6758,11 @@ export default {4,{"apiKeyId": [- 525,+ 533,"UUID!"],"roleId": [- 525,+ 533,"UUID!"]}@@ -6664,7 +6771,7 @@ export default {4,{"input": [- 303,+ 311,"InboxThreadRecordInput!"]}@@ -6732,7 +6839,7 @@ export default {"BillingPlanKey!"],"recurringInterval": [- 497,+ 505,"SubscriptionInterval!"],"requirePaymentMethod": [@@ -6757,7 +6864,7 @@ export default {72,{"fileId": [- 525,+ 533,"UUID!"]}@@ -6770,13 +6877,13 @@ export default {"String!"],"fileIds": [- 525,+ 533,"[UUID!]!"]}],"completeBookCallOnboardingStep": [- 393,+ 401,{"hasBookedCall": [4,@@ -6847,7 +6954,7 @@ export default {}],"createAppMessageChannel": [- 346,+ 354,{"input": [167,@@ -6902,7 +7009,7 @@ export default {17,{"channelId": [- 525+ 533]}],@@ -6979,7 +7086,7 @@ export default {}],"createManyNavigationMenuItems": [- 373,+ 381,{"inputs": [185,@@ -6988,7 +7095,7 @@ export default {}],"createManyViewFieldGroups": [- 640,+ 649,{"inputs": [200,@@ -6997,7 +7104,7 @@ export default {}],"createManyViewFields": [- 639,+ 648,{"inputs": [201,@@ -7006,7 +7113,7 @@ export default {}],"createManyViewGroups": [- 645,+ 654,{"inputs": [204,@@ -7015,7 +7122,7 @@ export default {}],"createMcpServer": [- 342,+ 350,{"input": [183,@@ -7024,7 +7131,7 @@ export default {}],"createMessageSuppression": [- 357,+ 365,{"input": [184,@@ -7033,7 +7140,7 @@ export default {}],"createNavigationMenuItem": [- 373,+ 381,{"input": [185,@@ -7059,10 +7166,10 @@ export default {}],"createOIDCIdentityProvider": [- 488,+ 496,{"input": [- 486,+ 494,"SetupOIDCSsoInput!"]}@@ -7075,14 +7182,14 @@ export default {"String!"],"objectMetadataId": [- 525,+ 533,"UUID!"],"properties": [- 315+ 323],"recordId": [- 525,+ 533,"UUID!"]}@@ -7106,7 +7213,7 @@ export default {}],"createOneIndex": [- 304,+ 312,{"input": [188,@@ -7115,7 +7222,7 @@ export default {}],"createOneLogicFunction": [- 328,+ 336,{"input": [182,@@ -7124,7 +7231,7 @@ export default {}],"createOneObject": [- 376,+ 384,{"input": [189,@@ -7133,7 +7240,7 @@ export default {}],"createOneRole": [- 448,+ 456,{"createRoleInput": [195,@@ -7142,7 +7249,7 @@ export default {}],"createPageLayout": [- 396,+ 404,{"input": [190,@@ -7151,7 +7258,7 @@ export default {}],"createPageLayoutTab": [- 397,+ 405,{"input": [191,@@ -7160,7 +7267,7 @@ export default {}],"createPageLayoutWidget": [- 400,+ 408,{"input": [192,@@ -7169,7 +7276,7 @@ export default {}],"createPublicDomain": [- 419,+ 427,{"applicationId": [1,@@ -7182,7 +7289,7 @@ export default {}],"createRelatedRecordPath": [- 440,+ 448,{"input": [194,@@ -7191,16 +7298,16 @@ export default {}],"createSAMLIdentityProvider": [- 488,+ 496,{"input": [- 487,+ 495,"SetupSAMLSsoInput!"]}],"createSkill": [- 491,+ 499,{"input": [196,@@ -7220,7 +7327,7 @@ export default {"BillingPlanKey!"],"recurringInterval": [- 497,+ 505,"SubscriptionInterval!"],"requirePaymentMethod": [@@ -7233,7 +7340,7 @@ export default {}],"createUnsubscribeTopic": [- 528,+ 536,{"input": [197,@@ -7242,7 +7349,7 @@ export default {}],"createUsageLimit": [- 611,+ 620,{"input": [198,@@ -7251,7 +7358,7 @@ export default {}],"createValidationRule": [- 631,+ 640,{"input": [199,@@ -7260,7 +7367,7 @@ export default {}],"createView": [- 636,+ 645,{"input": [205,@@ -7269,7 +7376,7 @@ export default {}],"createViewField": [- 639,+ 648,{"input": [201,@@ -7278,7 +7385,7 @@ export default {}],"createViewFieldGroup": [- 640,+ 649,{"input": [200,@@ -7287,7 +7394,7 @@ export default {}],"createViewFilter": [- 641,+ 650,{"input": [203,@@ -7296,7 +7403,7 @@ export default {}],"createViewFilterGroup": [- 642,+ 651,{"input": [202,@@ -7305,7 +7412,7 @@ export default {}],"createViewGroup": [- 645,+ 654,{"input": [204,@@ -7314,7 +7421,7 @@ export default {}],"createViewSort": [- 648,+ 657,{"input": [206,@@ -7323,7 +7430,7 @@ export default {}],"createWebhook": [- 652,+ 661,{"input": [207,@@ -7332,10 +7439,10 @@ export default {}],"deactivateSkill": [- 491,+ 499,{"id": [- 525,+ 533,"UUID!"]}@@ -7344,11 +7451,11 @@ export default {4,{"channelId": [- 525,+ 533,"UUID!"],"destinationChannelId": [- 525+ 533]}],@@ -7365,10 +7472,10 @@ export default {}],"deleteAppMessageChannel": [- 346,+ 354,{"id": [- 525,+ 533,"UUID!"]}@@ -7395,7 +7502,7 @@ export default {154,{"id": [- 525,+ 533,"UUID!"]}@@ -7404,19 +7511,19 @@ export default {158,{"id": [- 525,+ 533,"UUID!"]}],"deleteCurrentWorkspace": [- 659+ 669],"deleteEmailGroupChannel": [- 346,+ 354,{"id": [- 525,+ 533,"UUID!"]}@@ -7434,25 +7541,25 @@ export default {286,{"id": [- 525,+ 533,"UUID!"]}],"deleteManyNavigationMenuItems": [- 373,+ 381,{"ids": [- 525,+ 533,"[UUID!]!"]}],"deleteMcpServer": [- 342,+ 350,{"id": [- 525,+ 533,"UUID!"]}@@ -7461,16 +7568,16 @@ export default {4,{"id": [- 525,+ 533,"UUID!"]}],"deleteNavigationMenuItem": [- 373,+ 381,{"id": [- 525,+ 533,"UUID!"]}@@ -7494,7 +7601,7 @@ export default {}],"deleteOneIndex": [- 304,+ 312,{"input": [214,@@ -7503,16 +7610,16 @@ export default {}],"deleteOneLogicFunction": [- 328,+ 336,{"input": [- 332,+ 340,"LogicFunctionIdInput!"]}],"deleteOneObject": [- 376,+ 384,{"input": [215,@@ -7524,7 +7631,7 @@ export default {1,{"roleId": [- 525,+ 533,"UUID!"]}@@ -7542,16 +7649,16 @@ export default {4,{"messageId": [- 525,+ 533,"UUID!"]}],"deleteRelatedRecordPath": [- 440,+ 448,{"id": [- 525,+ 533,"UUID!"]}@@ -7566,10 +7673,10 @@ export default {}],"deleteSkill": [- 491,+ 499,{"id": [- 525,+ 533,"UUID!"]}@@ -7578,7 +7685,7 @@ export default {218,{"twoFactorAuthenticationMethodId": [- 525,+ 533,"UUID!"]}@@ -7596,16 +7703,16 @@ export default {4,{"usageLimitId": [- 525,+ 533,"UUID!"]}],"deleteUser": [- 624+ 633],"deleteUserFromWorkspace": [- 628,+ 637,{"workspaceMemberIdToDelete": [1,@@ -7614,10 +7721,10 @@ export default {}],"deleteValidationRule": [- 631,+ 640,{"id": [- 525,+ 533,"UUID!"]}@@ -7632,7 +7739,7 @@ export default {}],"deleteViewField": [- 639,+ 648,{"input": [220,@@ -7641,7 +7748,7 @@ export default {}],"deleteViewFieldGroup": [- 640,+ 649,{"input": [219,@@ -7650,7 +7757,7 @@ export default {}],"deleteViewFilter": [- 641,+ 650,{"input": [221,@@ -7668,7 +7775,7 @@ export default {}],"deleteViewGroup": [- 645,+ 654,{"input": [222,@@ -7686,10 +7793,10 @@ export default {}],"deleteWebhook": [- 652,+ 661,{"id": [- 525,+ 533,"UUID!"]}@@ -7740,7 +7847,7 @@ export default {}],"destroyViewField": [- 639,+ 648,{"input": [226,@@ -7749,7 +7856,7 @@ export default {}],"destroyViewFieldGroup": [- 640,+ 649,{"input": [225,@@ -7758,7 +7865,7 @@ export default {}],"destroyViewFilter": [- 641,+ 650,{"input": [227,@@ -7776,7 +7883,7 @@ export default {}],"destroyViewGroup": [- 645,+ 654,{"input": [228,@@ -7797,7 +7904,7 @@ export default {4,{"input": [- 303,+ 311,"InboxThreadRecordInput!"]}@@ -7806,7 +7913,7 @@ export default {158,{"id": [- 525,+ 533,"UUID!"]}@@ -7815,7 +7922,7 @@ export default {233,{"id": [- 525,+ 533,"UUID!"]}@@ -7824,7 +7931,7 @@ export default {234,{"id": [- 525,+ 533,"UUID!"]}@@ -7849,7 +7956,7 @@ export default {"String!"],"workspaceId": [- 525+ 533]}],@@ -7875,10 +7982,10 @@ export default {}],"enrichWorkspaceCompany": [- 663+ 673],"executeOneLogicFunction": [- 330,+ 338,{"input": [263,@@ -7890,7 +7997,7 @@ export default {39,{"apiKeyId": [- 525,+ 533,"UUID!"],"expiresAt": [@@ -7903,7 +8010,7 @@ export default {77,{"applicationId": [- 525,+ 533,"UUID!"]}@@ -7912,16 +8019,16 @@ export default {83],"generateTransientToken": [- 508+ 516],"generateTwoFactorAuthenticationRecoveryCode": [- 522,+ 530,{"otp": [1],"userId": [- 525,+ 533,"UUID!"]}@@ -7969,7 +8076,7 @@ export default {}],"getAuthTokensFromTwoFactorAuthenticationRecoveryCode": [- 523,+ 531,{"captchaToken": [1@@ -7998,7 +8105,7 @@ export default {}],"getLoginTokenFromCredentials": [- 335,+ 343,{"captchaToken": [1@@ -8024,41 +8131,41 @@ export default {}],"goBackToPreviousOnboardingStep": [- 392+ 400],"grantApplicationCapabilities": [48,{"input": [- 293,+ 301,"GrantApplicationCapabilitiesInput!"]}],"impersonate": [- 302,+ 310,{"userId": [- 525,+ 533,"UUID!"],"workspaceId": [- 525,+ 533,"UUID!"]}],"ingestAppMessages": [- 310,+ 318,{"input": [- 309,+ 317,"IngestAppMessagesInput!"]}],"initiateOTPProvisioning": [- 312,+ 320,{"loginToken": [1,@@ -8071,7 +8178,7 @@ export default {}],"initiateOTPProvisioningForAuthenticatedUser": [- 312+ 320],"installApplication": [46,@@ -8101,7 +8208,7 @@ export default {4,{"threadId": [- 525,+ 533,"UUID!"]}@@ -8110,14 +8217,23 @@ export default {4,{"channelId": [- 525+ 533],"threadId": [- 525,+ 533,"UUID!"]}],+ "prepareGettingStartedWorkflow": [+ 297,+ {+ "stepActionKey": [+ 294,+ "GettingStartedStepActionKey!"+ ]+ }+ ],"refreshEnterpriseValidityToken": [4],@@ -8132,7 +8248,7 @@ export default {"String!"],"messageId": [- 525,+ 533,"UUID!"]}@@ -8141,20 +8257,20 @@ export default {4,{"input": [- 443,+ 451,"RemoveQueryFromEventStreamInput!"]}],"removeRecordShare": [- 435,+ 443,{"principal": [- 432,+ 440,"RecordSharePrincipalInput!"],"target": [- 439,+ 447,"RecordTargetInput!"]}@@ -8163,7 +8279,7 @@ export default {4,{"agentId": [- 525,+ 533,"UUID!"]}@@ -8190,7 +8306,7 @@ export default {4,{"threadId": [- 525,+ 533,"UUID!"]}@@ -8199,13 +8315,13 @@ export default {4,{"input": [- 444,+ 452,"ReportAppConnectionAuthFailureInput!"]}],"resendEmailVerificationToken": [- 445,+ 453,{"email": [1,@@ -8218,7 +8334,7 @@ export default {}],"resendWorkspaceInvitation": [- 478,+ 486,{"appTokenId": [1,@@ -8230,13 +8346,13 @@ export default {154,{"id": [- 525,+ 533,"UUID!"]}],"resetPageLayoutTabToDefault": [- 397,+ 405,{"id": [1,@@ -8245,7 +8361,7 @@ export default {}],"resetPageLayoutToDefault": [- 396,+ 404,{"id": [1,@@ -8254,7 +8370,7 @@ export default {}],"resetPageLayoutWidgetToDefault": [- 400,+ 408,{"id": [1,@@ -8263,22 +8379,22 @@ export default {}],"resetTimelineActivityType": [- 503,+ 511,{"id": [- 525,+ 533,"UUID!"]}],"retryChatMessage": [- 470,+ 478,{"modelId": [1],"threadId": [- 525,+ 533,"UUID!"]}@@ -8290,7 +8406,7 @@ export default {37,{"input": [- 446,+ 454,"RevokeApiKeyInput!"]}@@ -8299,7 +8415,7 @@ export default {4,{"applicationAuthorizationId": [- 525,+ 533,"UUID!"]}@@ -8308,7 +8424,7 @@ export default {4,{"userId": [- 525,+ 533,"UUID!"]}@@ -8317,13 +8433,13 @@ export default {4,{"userSessionId": [- 525,+ 533,"UUID!"]}],"rotateApplicationRegistrationClientSecret": [- 450,+ 458,{"id": [1,@@ -8332,10 +8448,10 @@ export default {}],"runAgent": [- 461,+ 469,{"input": [- 457,+ 465,"RunAgentInput!"]}@@ -8344,7 +8460,7 @@ export default {62,{"applicationId": [- 525,+ 533,"UUID!"]}@@ -8359,7 +8475,7 @@ export default {}],"saveImapSmtpCaldavAccount": [- 299,+ 307,{"connectionParameters": [237,@@ -8370,38 +8486,38 @@ export default {"String!"],"id": [- 525+ 533]}],"sendAppChannelMessage": [- 469,+ 477,{"input": [- 468,+ 476,"SendAppChannelMessageInput!"]}],"sendChatMessage": [- 470,+ 478,{"browsingContext": [- 315+ 323],"channelId": [- 525+ 533],"fileAttachments": [278,"[FileAttachmentInput!]"],"mentionedWorkspaceMemberIds": [- 525,+ 533,"[UUID!]"],"messageId": [- 525,+ 533,"UUID!"],"modelId": [@@ -8415,55 +8531,55 @@ export default {"String!"],"threadId": [- 525,+ 533,"UUID!"]}],"sendEmail": [- 473,+ 481,{"input": [- 472,+ 480,"SendEmailInput!"]}],"sendInboxMessage": [- 477,+ 485,{"input": [- 476,+ 484,"SendInboxMessageInput!"]}],"sendInvitations": [- 478,+ 486,{"emails": [1,"[String!]!"],"roleId": [- 525+ 533]}],"sendMessageCampaign": [- 480,+ 488,{"input": [- 479,+ 487,"SendMessageCampaignInput!"]}],"sendMessageCampaignTest": [- 475,+ 483,{"input": [- 481,+ 489,"SendMessageCampaignTestInput!"]}@@ -8472,7 +8588,7 @@ export default {41,{"input": [- 483,+ 491,"SetAppKeyValueInput!"]}@@ -8487,31 +8603,31 @@ export default {}],"setRecordPrivate": [- 435,+ 443,{"isPrivate": [4,"Boolean!"],"target": [- 439,+ 447,"RecordTargetInput!"]}],"setRecordShare": [- 435,+ 443,{"accessLevel": [- 431,+ 439,"RecordShareAccessLevel!"],"principal": [- 432,+ 440,"RecordSharePrincipalInput!"],"target": [- 439,+ 447,"RecordTargetInput!"]}@@ -8578,15 +8694,15 @@ export default {}],"signUpInNewWorkspace": [- 489,+ 497,{"input": [- 490+ 498]}],"signUpInWorkspace": [- 489,+ 497,{"captchaToken": [1@@ -8606,7 +8722,7 @@ export default {1],"workspaceId": [- 525+ 533],"workspaceInviteHash": [1@@ -8617,7 +8733,7 @@ export default {}],"skipSyncEmailOnboardingStep": [- 393,+ 401,{"isAutoSkipped": [4,@@ -8633,7 +8749,7 @@ export default {"DateTime!"],"threadId": [- 525,+ 533,"UUID!"]}@@ -8642,19 +8758,19 @@ export default {140,{"connectedAccountId": [- 525,+ 533,"UUID!"]}],"startWorkspaceSetupChat": [- 493,+ 501,{"companyContext": [- 315+ 323],"personContext": [- 315+ 323]}],@@ -8662,13 +8778,13 @@ export default {4,{"threadId": [- 525,+ 533,"UUID!"]}],"stopImpersonation": [- 494+ 502],"switchBillingPlan": [124,@@ -8682,16 +8798,16 @@ export default {124],"syncAppMessageFolders": [- 353,+ 361,{"input": [- 501,+ 509,"SyncAppMessageFoldersInput!"]}],"syncApplication": [- 673,+ 683,{"dryRun": [4@@ -8700,7 +8816,7 @@ export default {4],"manifest": [- 315,+ 323,"JSON!"]}@@ -8718,7 +8834,7 @@ export default {1],"properties": [- 315+ 323],"type": [35,@@ -8740,55 +8856,55 @@ export default {}],"triggerAddPeopleToMessageListJob": [- 510,+ 518,{"input": [- 509,+ 517,"TriggerAddPeopleToMessageListJobInput!"]}],"triggerInstallApplication": [- 514,+ 522,{"input": [- 511,+ 519,"TriggerInstallApplicationInput!"]}],"triggerInstallApplicationJob": [- 513,+ 521,{"input": [- 512,+ 520,"TriggerInstallApplicationJobInput!"]}],"triggerUninstallApplication": [- 518,+ 526,{"input": [- 515,+ 523,"TriggerUninstallApplicationInput!"]}],"triggerUninstallApplicationJob": [- 517,+ 525,{"input": [- 516,+ 524,"TriggerUninstallApplicationJobInput!"]}],"triggerUpgradeApplication": [- 520,+ 528,{"input": [- 519,+ 527,"TriggerUpgradeApplicationInput!"]}@@ -8806,11 +8922,11 @@ export default {5,{"channelId": [- 525,+ 533,"UUID!"],"input": [- 530,+ 538,"UpdateAgentChatChannelInput!"]}@@ -8826,7 +8942,7 @@ export default {211],"threadIds": [- 525,+ 533,"[UUID!]!"]}@@ -8835,16 +8951,16 @@ export default {37,{"input": [- 532,+ 540,"UpdateApiKeyInput!"]}],"updateAppMessageChannel": [- 346,+ 354,{"input": [- 533,+ 541,"UpdateAppMessageChannelInput!"]}@@ -8853,11 +8969,11 @@ export default {46,{"id": [- 525,+ 533,"UUID!"],"input": [- 534,+ 542,"UpdateApplicationInput!"]}@@ -8866,7 +8982,7 @@ export default {72,{"input": [- 535,+ 543,"UpdateApplicationRegistrationInput!"]}@@ -8875,7 +8991,7 @@ export default {76,{"input": [- 537,+ 545,"UpdateApplicationRegistrationVariableInput!"]}@@ -8884,7 +9000,7 @@ export default {127,{"input": [- 539,+ 547,"UpdateCalendarChannelInput!"]}@@ -8893,16 +9009,16 @@ export default {154,{"input": [- 541,+ 549,"UpdateCommandMenuItemInput!"]}],"updateEmailGroupChannel": [- 346,+ 354,{"input": [- 542,+ 550,"UpdateEmailGroupChannelInput!"]}@@ -8911,79 +9027,88 @@ export default {286,{"input": [- 544,+ 552,"UpdateFrontComponentInput!"]}],+ "updateGettingStarted": [+ 293,+ {+ "input": [+ 554,+ "UpdateGettingStartedInput!"+ ]+ }+ ],"updateLabPublicFeatureFlag": [264,{"input": [- 546,+ 555,"UpdateLabPublicFeatureFlagInput!"]}],"updateManyNavigationMenuItems": [- 373,+ 381,{"inputs": [- 559,+ 568,"[UpdateOneNavigationMenuItemInput!]!"]}],"updateManyObjects": [- 376,+ 384,{"inputs": [- 560,+ 569,"[UpdateOneObjectInput!]!"]}],"updateManyViewGroups": [- 645,+ 654,{"inputs": [- 582,+ 591,"[UpdateViewGroupInput!]!"]}],"updateMcpServer": [- 342,+ 350,{"input": [- 549,+ 558,"UpdateMcpServerInput!"]}],"updateMessageChannel": [- 346,+ 354,{"input": [- 551,+ 560,"UpdateMessageChannelInput!"]}],"updateMessageFolder": [- 353,+ 361,{"input": [- 553,+ 562,"UpdateMessageFolderInput!"]}],"updateMessageFolders": [- 353,+ 361,{"input": [- 555,+ 564,"UpdateMessageFoldersInput!"]}@@ -9006,10 +9131,10 @@ export default {}],"updateNavigationMenuItem": [- 373,+ 381,{"input": [- 559,+ 568,"UpdateOneNavigationMenuItemInput!"]}@@ -9018,7 +9143,7 @@ export default {3,{"input": [- 531,+ 539,"UpdateAgentInput!"]}@@ -9027,7 +9152,7 @@ export default {4,{"applicationId": [- 525+ 533],"key": [1,@@ -9043,7 +9168,7 @@ export default {266,{"input": [- 558,+ 567,"UpdateOneFieldMetadataInput!"]}@@ -9052,83 +9177,83 @@ export default {4,{"input": [- 547,+ 556,"UpdateLogicFunctionFromSourceInput!"]}],"updateOneObject": [- 376,+ 384,{"input": [- 560,+ 569,"UpdateOneObjectInput!"]}],"updateOneRole": [- 448,+ 456,{"updateRoleInput": [- 567,+ 576,"UpdateRoleInput!"]}],"updatePageLayout": [- 396,+ 404,{"id": [1,"String!"],"input": [- 561,+ 570,"UpdatePageLayoutInput!"]}],"updatePageLayoutTab": [- 397,+ 405,{"id": [1,"String!"],"input": [- 562,+ 571,"UpdatePageLayoutTabInput!"]}],"updatePageLayoutWidget": [- 400,+ 408,{"id": [1,"String!"],"input": [- 564,+ 573,"UpdatePageLayoutWidgetInput!"]}],"updatePageLayoutWithTabsAndWidgets": [- 396,+ 404,{"id": [1,"String!"],"input": [- 566,+ 575,"UpdatePageLayoutWithTabsInput!"]}],"updatePasswordViaResetToken": [- 313,+ 321,{"newPassword": [1,@@ -9141,37 +9266,37 @@ export default {}],"updateSkill": [- 491,+ 499,{"input": [- 569,+ 578,"UpdateSkillInput!"]}],"updateTimelineActivityType": [- 503,+ 511,{"input": [- 570,+ 579,"UpdateTimelineActivityTypeInput!"]}],"updateUnsubscribeTopic": [- 528,+ 536,{"input": [- 571,+ 580,"UpdateUnsubscribeTopicInput!"]}],"updateUsageLimit": [- 611,+ 620,{"input": [- 572,+ 581,"UpdateUsageLimitInput!"]}@@ -9180,7 +9305,7 @@ export default {100,{"userCreditsFallback": [- 626,+ 635,"UserCreditsFallback!"]}@@ -9198,130 +9323,130 @@ export default {}],"updateValidationRule": [- 631,+ 640,{"input": [- 573,+ 582,"UpdateValidationRuleInput!"]}],"updateView": [- 636,+ 645,{"id": [1,"String!"],"input": [- 584,+ 593,"UpdateViewInput!"]}],"updateViewField": [- 639,+ 648,{"input": [- 577,+ 586,"UpdateViewFieldInput!"]}],"updateViewFieldGroup": [- 640,+ 649,{"input": [- 575,+ 584,"UpdateViewFieldGroupInput!"]}],"updateViewFilter": [- 641,+ 650,{"input": [- 580,+ 589,"UpdateViewFilterInput!"]}],"updateViewFilterGroup": [- 642,+ 651,{"id": [1,"String!"],"input": [- 579,+ 588,"UpdateViewFilterGroupInput!"]}],"updateViewGroup": [- 645,+ 654,{"input": [- 582,+ 591,"UpdateViewGroupInput!"]}],"updateViewSort": [- 648,+ 657,{"input": [- 585,+ 594,"UpdateViewSortInput!"]}],"updateWebhook": [- 652,+ 661,{"input": [- 587,+ 596,"UpdateWebhookInput!"]}],"updateWorkspace": [- 659,+ 669,{"data": [- 591,+ 600,"UpdateWorkspaceInput!"]}],"updateWorkspaceAllowedEmbeddingOrigins": [- 659,+ 669,{"data": [- 589,+ 598,"UpdateWorkspaceAllowedEmbeddingOriginsInput!"]}],"updateWorkspaceIframeMediaPermissions": [- 659,+ 669,{"data": [- 590,+ 599,"UpdateWorkspaceIframeMediaPermissionsInput!"]}],"updateWorkspaceMemberRole": [- 668,+ 678,{"roleId": [- 525,+ 533,"UUID!"],"workspaceMemberId": [- 525,+ 533,"UUID!"]}@@ -9330,7 +9455,7 @@ export default {4,{"input": [- 592,+ 601,"UpdateWorkspaceMemberSettingsInput!"]}@@ -9352,7 +9477,7 @@ export default {72,{"file": [- 593,+ 602,"Upload!"],"universalIdentifier": [@@ -9368,7 +9493,7 @@ export default {"String!"],"file": [- 593,+ 602,"Upload!"],"fileFolder": [@@ -9389,7 +9514,7 @@ export default {"String!"],"file": [- 593,+ 602,"Upload!"]}@@ -9398,7 +9523,7 @@ export default {281,{"file": [- 593,+ 602,"Upload!"],"workspaceId": [@@ -9411,7 +9536,7 @@ export default {281,{"file": [- 593,+ 602,"Upload!"]}@@ -9420,7 +9545,7 @@ export default {281,{"file": [- 593,+ 602,"Upload!"]}@@ -9429,52 +9554,52 @@ export default {273,{"upsertFieldPermissionsInput": [- 594,+ 603,"UpsertFieldPermissionsInput!"]}],"upsertFieldsWidget": [- 636,+ 645,{"input": [- 597,+ 606,"UpsertFieldsWidgetInput!"]}],"upsertObjectPermissions": [- 384,+ 392,{"upsertObjectPermissionsInput": [- 598,+ 607,"UpsertObjectPermissionsInput!"]}],"upsertPermissionFlags": [- 449,+ 457,{"upsertPermissionFlagsInput": [- 599,+ 608,"UpsertPermissionFlagsInput!"]}],"upsertRowLevelPermissionPredicates": [- 601,+ 610,{"input": [- 600,+ 609,"UpsertRowLevelPermissionPredicatesInput!"]}],"upsertViewWidget": [- 636,+ 645,{"input": [- 602,+ 611,"UpsertViewWidgetInput!"]}@@ -9483,13 +9608,13 @@ export default {80,{"input": [- 629,+ 638,"ValidateApprovedAccessDomainInput!"]}],"verifyEmailAndGetLoginToken": [- 633,+ 642,{"captchaToken": [1@@ -9534,7 +9659,7 @@ export default {}],"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [- 634,+ 643,{"otp": [1,@@ -9559,10 +9684,10 @@ export default {},"NavigationMenuItem": {"agentChatChannelId": [- 525+ 533],"applicationId": [- 525+ 533],"color": [1@@ -9571,13 +9696,13 @@ export default {211],"folderId": [- 525+ 533],"icon": [1],"id": [- 525+ 533],"link": [1@@ -9586,31 +9711,31 @@ export default {1],"pageLayoutId": [- 525+ 533],"position": [6],"targetObjectMetadataId": [- 525+ 533],"targetRecordId": [- 525+ 533],"targetRecordIdentifier": [- 428+ 436],"type": [- 374+ 382],"updatedAt": [211],"userWorkspaceId": [- 525+ 533],"viewId": [- 525+ 533],"__typename": [1@@ -9619,7 +9744,7 @@ export default {"NavigationMenuItemType": {},"NotesConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -9627,7 +9752,7 @@ export default {},"Object": {"applicationId": [- 525+ 533],"color": [1@@ -9645,7 +9770,7 @@ export default {1],"fields": [- 379,+ 387,{"filter": [271,@@ -9664,19 +9789,19 @@ export default {1],"id": [- 525+ 533],"imageIdentifierFieldMetadataId": [- 525+ 533],"indexMetadataList": [- 304+ 312],"indexMetadatas": [- 381,+ 389,{"filter": [- 307,+ 315,"IndexFilter!"],"paging": [@@ -9713,7 +9838,7 @@ export default {4],"labelIdentifierFieldMetadataId": [- 525+ 533],"labelPlural": [1@@ -9728,10 +9853,10 @@ export default {1],"openRecordIn": [- 383+ 391],"searchFieldMetadataList": [- 467+ 475],"shortcut": [1@@ -9748,10 +9873,10 @@ export default {},"ObjectConnection": {"edges": [- 378+ 386],"pageInfo": [- 395+ 403],"__typename": [1@@ -9762,7 +9887,7 @@ export default {161],"node": [- 376+ 384],"__typename": [1@@ -9773,7 +9898,7 @@ export default {270],"pageInfo": [- 395+ 403],"__typename": [1@@ -9781,10 +9906,10 @@ export default {},"ObjectFilter": {"and": [- 380+ 388],"id": [- 526+ 534],"isActive": [126@@ -9808,10 +9933,10 @@ export default {126],"or": [- 380+ 388],"universalIdentifier": [- 526+ 534],"__typename": [1@@ -9819,10 +9944,10 @@ export default {},"ObjectIndexMetadatasConnection": {"edges": [- 305+ 313],"pageInfo": [- 395+ 403],"__typename": [1@@ -9830,7 +9955,7 @@ export default {},"ObjectMetadataCommandMenuItemPayload": {"objectMetadataItemId": [- 525+ 533],"__typename": [1@@ -9851,16 +9976,16 @@ export default {4],"objectMetadataId": [- 525+ 533],"restrictedFields": [- 315+ 323],"rowLevelPermissionPredicateGroups": [- 452+ 460],"rowLevelPermissionPredicates": [- 451+ 459],"__typename": [1@@ -9880,7 +10005,7 @@ export default {4],"objectMetadataId": [- 525+ 533],"__typename": [1@@ -9905,7 +10030,7 @@ export default {1],"properties": [- 388+ 396],"recordId": [1@@ -9922,13 +10047,13 @@ export default {},"ObjectRecordEventProperties": {"after": [- 315+ 323],"before": [- 315+ 323],"diff": [- 315+ 323],"updatedFields": [1@@ -9939,7 +10064,7 @@ export default {},"ObjectRecordEventWithQueryIds": {"objectRecordEvent": [- 387+ 395],"queryIds": [1@@ -9952,10 +10077,10 @@ export default {"OnboardingStatus": {},"OnboardingStepNavigation": {"onboardingStatus": [- 391+ 399],"previousOnboardingStatus": [- 391+ 399],"__typename": [1@@ -9989,19 +10114,19 @@ export default {},"PageLayout": {"applicationId": [- 525+ 533],"createdAt": [211],"defaultTabToFocusOnMobileAndSidePanelId": [- 525+ 533],"deletedAt": [211],"id": [- 525+ 533],"isFirstTabPinned": [4@@ -10013,16 +10138,16 @@ export default {1],"objectMetadataId": [- 525+ 533],"tabs": [- 397+ 405],"type": [- 399+ 407],"universalIdentifier": [- 525+ 533],"updatedAt": [211@@ -10033,7 +10158,7 @@ export default {},"PageLayoutTab": {"applicationId": [- 525+ 533],"createdAt": [211@@ -10045,7 +10170,7 @@ export default {1],"id": [- 525+ 533],"isActive": [4@@ -10057,10 +10182,10 @@ export default {4],"layoutMode": [- 398+ 406],"pageLayoutId": [- 525+ 533],"position": [6@@ -10069,13 +10194,13 @@ export default {1],"universalIdentifier": [- 525+ 533],"updatedAt": [211],"widgets": [- 400+ 408],"__typename": [1@@ -10085,16 +10210,16 @@ export default {"PageLayoutType": {},"PageLayoutWidget": {"applicationId": [- 525+ 533],"conditionalAvailabilityExpression": [1],"conditionalDisplay": [- 315+ 323],"configuration": [- 653+ 662],"createdAt": [211@@ -10103,10 +10228,10 @@ export default {211],"gridPosition": [- 295+ 303],"id": [- 525+ 533],"isActive": [4@@ -10118,22 +10243,22 @@ export default {4],"objectMetadataId": [- 525+ 533],"pageLayoutTabId": [- 525+ 533],"position": [- 403+ 411],"title": [1],"type": [- 655+ 664],"universalIdentifier": [- 525+ 533],"updatedAt": [211@@ -10144,7 +10269,7 @@ export default {},"PageLayoutWidgetCanvasPosition": {"layoutMode": [- 398+ 406],"__typename": [1@@ -10158,7 +10283,7 @@ export default {10],"layoutMode": [- 398+ 406],"row": [10@@ -10172,13 +10297,13 @@ export default {},"PageLayoutWidgetPosition": {"on_PageLayoutWidgetCanvasPosition": [- 401+ 409],"on_PageLayoutWidgetGridPosition": [- 402+ 410],"on_PageLayoutWidgetVerticalListPosition": [- 405+ 413],"__typename": [1@@ -10187,13 +10312,13 @@ export default {"PageLayoutWidgetVerticalListHeightBehavior": {},"PageLayoutWidgetVerticalListPosition": {"heightBehavior": [- 404+ 412],"index": [10],"layoutMode": [- 398+ 406],"__typename": [1@@ -10209,7 +10334,7 @@ export default {},"PermissionFlag": {"applicationId": [- 525+ 533],"createdAt": [211@@ -10221,7 +10346,7 @@ export default {1],"id": [- 525+ 533],"key": [1@@ -10233,7 +10358,7 @@ export default {1],"universalIdentifier": [- 525+ 533],"updatedAt": [211@@ -10245,7 +10370,7 @@ export default {"PermissionFlagType": {},"PieChartConfiguration": {"aggregateFieldMetadataId": [- 525+ 533],"aggregateOperation": [27@@ -10254,10 +10379,10 @@ export default {1],"configurationType": [- 654+ 663],"dateGranularity": [- 390+ 398],"description": [1@@ -10269,13 +10394,13 @@ export default {4],"filter": [- 315+ 323],"firstDayOfTheWeek": [10],"groupByFieldMetadataId": [- 525+ 533],"groupBySubFieldName": [1@@ -10290,7 +10415,7 @@ export default {141],"orderBy": [- 294+ 302],"showCenterMetric": [4@@ -10307,10 +10432,10 @@ export default {},"PieChartData": {"data": [- 412+ 420],"formattedToRawLookup": [- 315+ 323],"hasTooManyGroups": [4@@ -10330,10 +10455,10 @@ export default {},"PieChartDataInput": {"configuration": [- 315+ 323],"objectMetadataId": [- 525+ 533],"__typename": [1@@ -10358,7 +10483,7 @@ export default {1],"location": [- 327+ 335],"postcode": [1@@ -10400,7 +10525,7 @@ export default {135],"blockers": [- 345+ 353],"__typename": [1@@ -10408,7 +10533,7 @@ export default {},"PublicApplicationRegistration": {"id": [- 525+ 533],"logoUrl": [1@@ -10445,7 +10570,7 @@ export default {},"PublicDomain": {"applicationId": [- 525+ 533],"createdAt": [211@@ -10454,7 +10579,7 @@ export default {1],"id": [- 525+ 533],"isValidated": [4@@ -10468,7 +10593,7 @@ export default {265],"metadata": [- 421+ 429],"__typename": [1@@ -10493,13 +10618,13 @@ export default {},"PublicImapSmtpCaldavConnectionParameters": {"CALDAV": [- 418+ 426],"IMAP": [- 418+ 426],"SMTP": [- 418+ 426],"__typename": [1@@ -10516,13 +10641,13 @@ export default {1],"id": [- 525+ 533],"logo": [1],"workspaceUrls": [- 677+ 687],"__typename": [1@@ -10533,7 +10658,7 @@ export default {1],"id": [- 525+ 533],"logo": [1@@ -10559,7 +10684,7 @@ export default {7],"channelId": [- 525,+ 533,"UUID!"],"filter": [@@ -10583,7 +10708,7 @@ export default {24,{"agentId": [- 525,+ 533,"UUID!"],"limit": [@@ -10623,7 +10748,7 @@ export default {40,{"filter": [- 324+ 332]}],@@ -10640,18 +10765,18 @@ export default {}],"appMessageChannels": [- 346,+ 354,{"filter": [- 325+ 333]}],"appMessageFolders": [- 353,+ 361,{"filter": [- 326+ 334]}],@@ -10659,7 +10784,7 @@ export default {49,{"applicationId": [- 525,+ 533,"UUID!"]}@@ -10668,7 +10793,7 @@ export default {50,{"applicationId": [- 525,+ 533,"UUID!"]}@@ -10692,10 +10817,10 @@ export default {}],"applicationSdkClientChecksums": [- 466,+ 474,{"applicationId": [- 525,+ 533,"UUID!"]}@@ -10724,10 +10849,10 @@ export default {}],"callRecordingIdForCalendarEvent": [- 525,+ 533,{"calendarEventId": [- 525,+ 533,"UUID!"]}@@ -10736,7 +10861,7 @@ export default {21,{"threadId": [- 525,+ 533,"UUID!"]}@@ -10745,7 +10870,7 @@ export default {143,{"threadId": [- 525,+ 533,"UUID!"]}@@ -10754,7 +10879,7 @@ export default {17,{"id": [- 525,+ 533,"UUID!"]}@@ -10772,7 +10897,7 @@ export default {}],"checkWorkspaceInviteHashIsValid": [- 667,+ 677,{"inviteHash": [1,@@ -10781,7 +10906,7 @@ export default {}],"checkWorkspaceSubdomainAvailability": [- 495,+ 503,{"subdomain": [1,@@ -10793,7 +10918,7 @@ export default {154,{"id": [- 525,+ 533,"UUID!"]}@@ -10802,16 +10927,16 @@ export default {154],"currentUser": [- 624+ 633],"currentUserApplicationAuthorizations": [47],"currentUserSessions": [- 627+ 636],"currentWorkspace": [- 659+ 669],"enterpriseCheckoutSession": [1,@@ -10848,7 +10973,7 @@ export default {4],"universalIdentifier": [- 525,+ 533,"UUID!"]}@@ -10857,7 +10982,7 @@ export default {266,{"id": [- 525,+ 533,"UUID!"]}@@ -10876,7 +11001,7 @@ export default {}],"findApplicationRegistrationByClientId": [- 417,+ 425,{"clientId": [1,@@ -10944,7 +11069,7 @@ export default {}],"findInstallApplicationJobStatus": [- 318,+ 326,{"jobId": [1@@ -10965,10 +11090,10 @@ export default {46],"findManyLogicFunctions": [- 328+ 336],"findManyMarketplaceApps": [- 336,+ 344,{"universalIdentifiers": [1,@@ -10977,10 +11102,10 @@ export default {}],"findManyPublicDomains": [- 419+ 427],"findMarketplaceAppDetail": [- 337,+ 345,{"universalIdentifier": [1,@@ -11001,10 +11126,10 @@ export default {46,{"id": [- 525+ 533],"universalIdentifier": [- 525+ 533]}],@@ -11018,16 +11143,16 @@ export default {}],"findOneLogicFunction": [- 328,+ 336,{"input": [- 332,+ 340,"LogicFunctionIdInput!"]}],"findUninstallApplicationJobStatus": [- 318,+ 326,{"jobId": [1@@ -11039,7 +11164,7 @@ export default {}],"findUpgradeApplicationJobStatus": [- 318,+ 326,{"jobId": [1@@ -11051,10 +11176,10 @@ export default {}],"findWorkspaceAiStats": [- 661+ 671],"findWorkspaceFromInviteHash": [- 659,+ 669,{"inviteHash": [1,@@ -11063,13 +11188,13 @@ export default {}],"findWorkspaceInvitations": [- 666+ 676],"frontComponent": [286,{"id": [- 525,+ 533,"UUID!"]}@@ -11078,7 +11203,7 @@ export default {286],"getAddressDetails": [- 413,+ 421,{"placeId": [1,@@ -11094,7 +11219,7 @@ export default {31],"getApiKeyRoles": [- 448+ 456],"getApprovedAccessDomains": [80@@ -11119,10 +11244,10 @@ export default {}],"getAvailablePackages": [- 315,+ 323,{"input": [- 332,+ 340,"LogicFunctionIdInput!"]}@@ -11131,7 +11256,7 @@ export default {160,{"id": [- 525,+ 533,"UUID!"]}@@ -11140,10 +11265,10 @@ export default {241],"getInviteSuggestions": [- 314+ 322],"getJobs": [- 318,+ 326,{"jobIds": [1,@@ -11155,13 +11280,13 @@ export default {1,{"input": [- 332,+ 340,"LogicFunctionIdInput!"]}],"getPageLayout": [- 396,+ 404,{"id": [1,@@ -11170,7 +11295,7 @@ export default {}],"getPageLayoutTab": [- 397,+ 405,{"id": [1,@@ -11179,7 +11304,7 @@ export default {}],"getPageLayoutTabs": [- 397,+ 405,{"pageLayoutId": [1,@@ -11188,7 +11313,7 @@ export default {}],"getPageLayoutWidget": [- 400,+ 408,{"id": [1,@@ -11197,7 +11322,7 @@ export default {}],"getPageLayoutWidgets": [- 400,+ 408,{"pageLayoutTabId": [1,@@ -11206,21 +11331,21 @@ export default {}],"getPageLayouts": [- 396,+ 404,{"objectMetadataId": [1],"pageLayoutType": [- 399+ 407]}],"getPermissionFlags": [- 407+ 415],"getPublicWorkspaceDataByDomain": [- 423,+ 431,{"origin": [1@@ -11228,10 +11353,10 @@ export default {}],"getPublicWorkspaceDataById": [- 424,+ 432,{"id": [- 525,+ 533,"UUID!"]}@@ -11240,25 +11365,25 @@ export default {116],"getRole": [- 448,+ 456,{"id": [- 525,+ 533,"UUID!"]}],"getRoles": [- 448+ 456],"getSSOIdentityProviders": [283],"getToolIndex": [- 507+ 515],"getToolInputSchema": [- 315,+ 323,{"toolName": [1,@@ -11267,15 +11392,15 @@ export default {}],"getUsageAnalytics": [- 608,+ 617,{"input": [- 609+ 618]}],"getView": [- 636,+ 645,{"id": [1,@@ -11284,7 +11409,7 @@ export default {}],"getViewField": [- 639,+ 648,{"id": [1,@@ -11293,7 +11418,7 @@ export default {}],"getViewFieldGroup": [- 640,+ 649,{"id": [1,@@ -11302,7 +11427,7 @@ export default {}],"getViewFieldGroups": [- 640,+ 649,{"viewId": [1,@@ -11311,7 +11436,7 @@ export default {}],"getViewFields": [- 639,+ 648,{"viewId": [1,@@ -11320,7 +11445,7 @@ export default {}],"getViewFilter": [- 641,+ 650,{"id": [1,@@ -11329,7 +11454,7 @@ export default {}],"getViewFilterGroup": [- 642,+ 651,{"id": [1,@@ -11338,7 +11463,7 @@ export default {}],"getViewFilterGroups": [- 642,+ 651,{"viewId": [1@@ -11346,7 +11471,7 @@ export default {}],"getViewFilters": [- 641,+ 650,{"viewId": [1@@ -11354,7 +11479,7 @@ export default {}],"getViewGroup": [- 645,+ 654,{"id": [1,@@ -11363,7 +11488,7 @@ export default {}],"getViewGroups": [- 645,+ 654,{"viewId": [1@@ -11371,7 +11496,7 @@ export default {}],"getViewSort": [- 648,+ 657,{"id": [1,@@ -11380,7 +11505,7 @@ export default {}],"getViewSorts": [- 648,+ 657,{"viewId": [1@@ -11388,19 +11513,25 @@ export default {}],"getViews": [- 636,+ 645,{"objectMetadataId": [1],"viewTypes": [- 650,+ 659,"[ViewType!]"]}],"getWorkspaceCreationDefaults": [- 664+ 674+ ],+ "gettingStartedProgress": [+ 293+ ],+ "gettingStartedWorkflowPreviews": [+ 298],"githubClaimAuthorizationUrl": [1,@@ -11421,10 +11552,10 @@ export default {}],"lineChartData": [- 320,+ 328,{"input": [- 321,+ 329,"LineChartDataInput!"]}@@ -11433,19 +11564,19 @@ export default {107],"mcpServer": [- 342,+ 350,{"id": [- 525,+ 533,"UUID!"]}],"mcpServers": [- 342+ 350],"messageSuppressions": [- 358,+ 366,{"input": [284,@@ -11454,22 +11585,22 @@ export default {}],"metadataTranslations": [- 363,+ 371,{"input": [- 366,+ 374,"MetadataTranslationsInput!"]}],"minimalMetadata": [- 367+ 375],"mostlyEmptyFieldMetadataIds": [- 525,+ 533,{"objectMetadataId": [- 525,+ 533,"UUID!"]}@@ -11481,7 +11612,7 @@ export default {127,{"connectedAccountId": [- 525+ 533]}],@@ -11489,53 +11620,53 @@ export default {158],"myMessageChannels": [- 346,+ 354,{"connectedAccountId": [- 525+ 533]}],"myMessageFolders": [- 353,+ 361,{"messageChannelId": [- 525+ 533]}],"myUserApplicationVariables": [- 669+ 679],"navigationMenuItem": [- 373,+ 381,{"id": [- 525,+ 533,"UUID!"]}],"navigationMenuItems": [- 373+ 381],"object": [- 376,+ 384,{"id": [- 525,+ 533,"UUID!"]}],"objectRecordCounts": [- 386+ 394],"objects": [- 377,+ 385,{"filter": [- 380,+ 388,"ObjectFilter!"],"paging": [@@ -11545,10 +11676,10 @@ export default {}],"pieChartData": [- 410,+ 418,{"input": [- 411,+ 419,"PieChartDataInput!"]}@@ -11557,22 +11688,22 @@ export default {135,{"input": [- 414,+ 422,"PreviewMessageCampaignAudienceInput!"]}],"previewMessageCampaignSend": [- 416,+ 424,{"input": [- 415,+ 423,"PreviewMessageCampaignSendInput!"]}],"publicMarketplaceAppDetail": [- 337,+ 345,{"universalIdentifier": [1,@@ -11581,76 +11712,76 @@ export default {}],"publicMarketplaceApps": [- 336+ 344],"recordPermissions": [- 430,+ 438,{"targets": [- 439,+ 447,"[RecordTargetInput!]!"]}],"recordSharing": [- 435,+ 443,{"target": [- 439,+ 447,"RecordTargetInput!"]}],"relatedRecordPaths": [- 440+ 448],"skill": [- 491,+ 499,{"id": [- 525,+ 533,"UUID!"]}],"skills": [- 491+ 499],"timelineActivityTypes": [- 503+ 511],"twoFactorAuthenticationRecoveryStatus": [- 524,+ 532,{"userId": [- 525,+ 533,"UUID!"]}],"unsubscribeTopics": [- 528+ 536],"usageLimits": [- 611+ 620],"usageQuotaDefinitions": [- 615+ 624],"usageQuotaScopeConsumption": [- 617,+ 626,{"input": [- 618,+ 627,"UsageQuotaScopeInput!"]}],"usageQuotasWithConsumption": [- 619+ 628],"validatePasswordResetToken": [- 630,+ 639,{"passwordResetToken": [1,@@ -11659,25 +11790,25 @@ export default {}],"validationRules": [- 631,+ 640,{"objectMetadataId": [- 525,+ 533,"UUID!"]}],"webhook": [- 652,+ 661,{"id": [- 525,+ 533,"UUID!"]}],"webhooks": [- 652+ 661],"__typename": [1@@ -11685,7 +11816,7 @@ export default {},"RatioAggregateConfig": {"fieldMetadataId": [- 525+ 533],"optionValue": [1@@ -11705,7 +11836,7 @@ export default {1],"id": [- 525+ 533],"progress": [10@@ -11716,7 +11847,7 @@ export default {},"RecordIdentifier": {"id": [- 525+ 533],"imageIdentifier": [1@@ -11747,13 +11878,13 @@ export default {},"RecordPermissionsResult": {"objectMetadataId": [- 525+ 533],"permissions": [- 429+ 437],"recordId": [- 525+ 533],"__typename": [1@@ -11762,10 +11893,10 @@ export default {"RecordShareAccessLevel": {},"RecordSharePrincipalInput": {"roleId": [- 525+ 533],"workspaceMemberId": [- 525+ 533],"__typename": [1@@ -11787,13 +11918,13 @@ export default {4],"permissions": [- 429+ 437],"roles": [- 437+ 445],"shares": [- 436+ 444],"__typename": [1@@ -11801,22 +11932,22 @@ export default {},"RecordSharingGrantDTO": {"accessLevel": [- 431+ 439],"id": [18],"principalId": [- 525+ 533],"principalRoleId": [- 525+ 533],"principalType": [- 433+ 441],"rowCause": [- 434+ 442],"__typename": [1@@ -11830,7 +11961,7 @@ export default {4],"id": [- 525+ 533],"label": [1@@ -11841,7 +11972,7 @@ export default {},"RecordTableConfiguration": {"configurationType": [- 654+ 663],"isUIEditable": [4@@ -11858,10 +11989,10 @@ export default {},"RecordTargetInput": {"objectMetadataId": [- 525+ 533],"recordId": [- 525+ 533],"__typename": [1@@ -11869,22 +12000,22 @@ export default {},"RelatedRecordPath": {"firstFieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"isInherent": [4],"objectMetadataId": [- 525+ 533],"secondFieldMetadataId": [- 525+ 533],"thirdFieldMetadataId": [- 525+ 533],"__typename": [1@@ -11895,16 +12026,16 @@ export default {266],"sourceObjectMetadata": [- 376+ 384],"targetFieldMetadata": [266],"targetObjectMetadata": [- 376+ 384],"type": [- 442+ 450],"__typename": [1@@ -11943,7 +12074,7 @@ export default {},"RevokeApiKeyInput": {"id": [- 525+ 533],"__typename": [1@@ -11971,7 +12102,7 @@ export default {38],"applicationId": [- 525+ 533],"canAccessAllAgentChatChannels": [4@@ -12013,7 +12144,7 @@ export default {1],"id": [- 525+ 533],"isEditable": [4@@ -12022,22 +12153,22 @@ export default {1],"objectPermissions": [- 384+ 392],"permissionFlags": [- 449+ 457],"rowLevelPermissionPredicateGroups": [- 452+ 460],"rowLevelPermissionPredicates": [- 451+ 459],"universalIdentifier": [- 525+ 533],"workspaceMembers": [- 668+ 678],"__typename": [1@@ -12048,10 +12179,10 @@ export default {1],"id": [- 525+ 533],"roleId": [- 525+ 533],"__typename": [1@@ -12076,7 +12207,7 @@ export default {1],"operand": [- 456+ 464],"positionInRowLevelPermissionPredicateGroup": [6@@ -12094,7 +12225,7 @@ export default {1],"value": [- 315+ 323],"workspaceMemberFieldMetadataId": [1@@ -12111,7 +12242,7 @@ export default {1],"logicalOperator": [- 454+ 462],"objectMetadataId": [1@@ -12131,16 +12262,16 @@ export default {},"RowLevelPermissionPredicateGroupInput": {"id": [- 525+ 533],"logicalOperator": [- 454+ 462],"objectMetadataId": [- 525+ 533],"parentRowLevelPermissionPredicateGroupId": [- 525+ 533],"positionInRowLevelPermissionPredicateGroup": [6@@ -12152,28 +12283,28 @@ export default {"RowLevelPermissionPredicateGroupLogicalOperator": {},"RowLevelPermissionPredicateInput": {"fieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"operand": [- 456+ 464],"positionInRowLevelPermissionPredicateGroup": [6],"relationFieldMetadataId": [- 525+ 533],"rowLevelPermissionPredicateGroupId": [- 525+ 533],"subFieldName": [1],"value": [- 315+ 323],"workspaceMemberFieldMetadataId": [1@@ -12194,22 +12325,22 @@ export default {1],"input": [- 459+ 467],"messages": [- 459+ 467],"prompt": [1],"responseFormat": [- 315+ 323],"runAsWorkspaceMemberId": [- 525+ 533],"thread": [- 462+ 470],"waitForCompletion": [4@@ -12220,7 +12351,7 @@ export default {},"RunAgentMessageAttachmentInput": {"fileId": [- 525+ 533],"filename": [1@@ -12231,13 +12362,13 @@ export default {},"RunAgentMessageInput": {"attachments": [- 458+ 466],"content": [1],"role": [- 460+ 468],"__typename": [1@@ -12249,7 +12380,7 @@ export default {1],"result": [- 315+ 323],"status": [1@@ -12258,7 +12389,7 @@ export default {4],"threadId": [- 525+ 533],"__typename": [1@@ -12277,7 +12408,7 @@ export default {},"SSOConnection": {"id": [- 525+ 533],"issuer": [1@@ -12286,10 +12417,10 @@ export default {1],"status": [- 465+ 473],"type": [- 296+ 304],"__typename": [1@@ -12297,7 +12428,7 @@ export default {},"SSOIdentityProvider": {"id": [- 525+ 533],"issuer": [1@@ -12306,10 +12437,10 @@ export default {1],"status": [- 465+ 473],"type": [- 296+ 304],"__typename": [1@@ -12332,16 +12463,16 @@ export default {211],"fieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"position": [6],"tsVectorFieldMetadataId": [- 525+ 533],"updatedAt": [211@@ -12352,13 +12483,13 @@ export default {},"SendAppChannelMessageInput": {"idempotencyKey": [- 525+ 533],"messageChannelId": [- 525+ 533],"messageThreadId": [- 525+ 533],"text": [1@@ -12369,10 +12500,10 @@ export default {},"SendAppChannelMessageOutput": {"messageId": [- 525+ 533],"messageThreadId": [- 525+ 533],"__typename": [1@@ -12380,7 +12511,7 @@ export default {},"SendChatMessageResult": {"mentionedParticipantWorkspaceMemberIds": [- 525+ 533],"messageId": [1@@ -12423,7 +12554,7 @@ export default {1],"files": [- 471+ 479],"fromHandle": [1@@ -12435,7 +12566,7 @@ export default {1],"targetRecord": [- 474+ 482],"to": [1@@ -12463,7 +12594,7 @@ export default {1],"recordId": [- 525+ 533],"__typename": [1@@ -12491,10 +12622,10 @@ export default {1],"toolCall": [- 315+ 323],"workspaceMemberIds": [- 525+ 533],"__typename": [1@@ -12502,7 +12633,7 @@ export default {},"SendInboxMessageResult": {"threadId": [- 525+ 533],"__typename": [1@@ -12513,7 +12644,7 @@ export default {1],"result": [- 666+ 676],"success": [4@@ -12592,7 +12723,7 @@ export default {42],"value": [- 315+ 323],"__typename": [1@@ -12600,31 +12731,31 @@ export default {},"SettingsMenuItem": {"applicationId": [- 525+ 533],"createdAt": [211],"frontComponentId": [- 525+ 533],"icon": [1],"id": [- 525+ 533],"position": [6],"scope": [- 485+ 493],"title": [1],"universalIdentifier": [- 525+ 533],"updatedAt": [211@@ -12659,7 +12790,7 @@ export default {1],"id": [- 525+ 533],"issuer": [1@@ -12676,7 +12807,7 @@ export default {},"SetupSso": {"id": [- 525+ 533],"issuer": [1@@ -12685,10 +12816,10 @@ export default {1],"status": [- 465+ 473],"type": [- 296+ 304],"__typename": [1@@ -12699,7 +12830,7 @@ export default {83],"workspace": [- 678+ 688],"__typename": [1@@ -12724,7 +12855,7 @@ export default {},"Skill": {"applicationId": [- 525+ 533],"content": [1@@ -12739,7 +12870,7 @@ export default {1],"id": [- 525+ 533],"isActive": [4@@ -12765,10 +12896,10 @@ export default {},"StandaloneRichTextConfiguration": {"body": [- 447+ 455],"configurationType": [- 654+ 663],"__typename": [1@@ -12776,7 +12907,7 @@ export default {},"StartWorkspaceSetupChatResult": {"outcome": [- 676+ 686],"thread": [17@@ -12825,7 +12956,7 @@ export default {}],"exportRecords": [- 427,+ 435,{"input": [193,@@ -12834,10 +12965,10 @@ export default {}],"logicFunctionLogs": [- 333,+ 341,{"input": [- 334,+ 342,"LogicFunctionLogsInput!"]}@@ -12846,7 +12977,7 @@ export default {14,{"threadId": [- 525,+ 533,"UUID!"]}@@ -12868,7 +12999,7 @@ export default {"SubscriptionStatus": {},"Support": {"supportDriver": [- 500+ 508],"supportFrontChatId": [1@@ -12883,7 +13014,7 @@ export default {43],"messageChannelId": [- 525+ 533],"__typename": [1@@ -12891,7 +13022,7 @@ export default {},"TasksConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -12902,22 +13033,22 @@ export default {1],"applicationId": [- 525+ 533],"createdAt": [211],"emit": [- 504+ 512],"frontComponentUniversalIdentifier": [- 525+ 533],"icon": [1],"id": [- 525+ 533],"isActive": [4@@ -12929,13 +13060,13 @@ export default {1],"objectUniversalIdentifier": [- 525+ 533],"replacesTimelineActivityTypeUniversalIdentifier": [- 525+ 533],"universalIdentifier": [- 525+ 533],"updatedAt": [211@@ -12946,13 +13077,13 @@ export default {},"TimelineActivityTypeEmit": {"objectUniversalIdentifier": [- 525+ 533],"on": [1],"through": [- 505+ 513],"__typename": [1@@ -12960,13 +13091,13 @@ export default {},"TimelineActivityTypeEmitThrough": {"happensAtFieldUniversalIdentifier": [- 525+ 533],"relationFieldUniversalIdentifier": [- 525+ 533],"triggerFieldUniversalIdentifiers": [- 525+ 533],"__typename": [1@@ -12974,7 +13105,7 @@ export default {},"TimelineConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -12994,7 +13125,7 @@ export default {1],"inputSchema": [- 315+ 323],"label": [1@@ -13022,10 +13153,10 @@ export default {},"TriggerAddPeopleToMessageListJobInput": {"messageListId": [- 525+ 533],"personFilter": [- 315+ 323],"__typename": [1@@ -13130,7 +13261,7 @@ export default {1],"twoFactorAuthenticationMethodId": [- 525+ 533],"__typename": [1@@ -13175,19 +13306,19 @@ export default {"UUID": {},"UUIDFilterComparison": {"eq": [- 525+ 533],"gt": [- 525+ 533],"gte": [- 525+ 533],"iLike": [- 525+ 533],"in": [- 525+ 533],"is": [4@@ -13196,25 +13327,25 @@ export default {4],"like": [- 525+ 533],"lt": [- 525+ 533],"lte": [- 525+ 533],"neq": [- 525+ 533],"notILike": [- 525+ 533],"notIn": [- 525+ 533],"notLike": [- 525+ 533],"__typename": [1@@ -13229,7 +13360,7 @@ export default {1],"id": [- 525+ 533],"name": [1@@ -13238,7 +13369,7 @@ export default {211],"visibility": [- 529+ 537],"__typename": [1@@ -13259,7 +13390,7 @@ export default {6],"roleIds": [- 525+ 533],"__typename": [1@@ -13273,7 +13404,7 @@ export default {1],"id": [- 525+ 533],"isActive": [4@@ -13282,7 +13413,7 @@ export default {1],"modelConfiguration": [- 315+ 323],"modelId": [1@@ -13294,13 +13425,13 @@ export default {1],"responseFormat": [- 315+ 323],"roleId": [- 525+ 533],"triggers": [- 315+ 323],"__typename": [1@@ -13311,7 +13442,7 @@ export default {1],"id": [- 525+ 533],"name": [1@@ -13328,16 +13459,16 @@ export default {1],"id": [- 525+ 533],"isSyncEnabled": [4],"messagingProviderUniversalIdentifier": [- 525+ 533],"visibility": [- 352+ 360],"__typename": [1@@ -13356,7 +13487,7 @@ export default {1],"update": [- 536+ 544],"__typename": [1@@ -13381,7 +13512,7 @@ export default {1],"update": [- 538+ 546],"__typename": [1@@ -13403,10 +13534,10 @@ export default {},"UpdateCalendarChannelInput": {"id": [- 525+ 533],"update": [- 540+ 548],"__typename": [1@@ -13434,7 +13565,7 @@ export default {},"UpdateCommandMenuItemInput": {"availabilityObjectMetadataId": [- 525+ 533],"availabilityType": [155@@ -13449,7 +13580,7 @@ export default {1],"id": [- 525+ 533],"isPinned": [4@@ -13458,7 +13589,7 @@ export default {1],"pageLayoutId": [- 525+ 533],"position": [6@@ -13475,7 +13606,7 @@ export default {1],"id": [- 525+ 533],"__typename": [1@@ -13483,7 +13614,7 @@ export default {},"UpdateFieldInput": {"defaultValue": [- 315+ 323],"description": [1@@ -13522,22 +13653,22 @@ export default {1],"morphRelationsUpdatePayload": [- 315+ 323],"name": [1],"objectMetadataId": [- 525+ 533],"options": [- 315+ 323],"settings": [- 315+ 323],"translations": [- 364+ 372],"universalIdentifier": [1@@ -13548,10 +13679,10 @@ export default {},"UpdateFrontComponentInput": {"id": [- 525+ 533],"update": [- 545+ 553],"__typename": [1@@ -13568,6 +13699,23 @@ export default {1]},+ "UpdateGettingStartedInput": {+ "completedStepActionKey": [+ 294+ ],+ "isHidden": [+ 4+ ],+ "selectedStepActionKey": [+ 294+ ],+ "snoozedUntil": [+ 1+ ],+ "__typename": [+ 1+ ]+ },"UpdateLabPublicFeatureFlagInput": {"publicFeatureFlag": [1@@ -13581,10 +13729,10 @@ export default {},"UpdateLogicFunctionFromSourceInput": {"id": [- 525+ 533],"update": [- 548+ 557],"__typename": [1@@ -13592,10 +13740,10 @@ export default {},"UpdateLogicFunctionFromSourceInputUpdates": {"cronTriggerSettings": [- 315+ 323],"databaseEventTriggerSettings": [- 315+ 323],"description": [1@@ -13604,7 +13752,7 @@ export default {1],"httpRouteTriggerSettings": [- 315+ 323],"name": [1@@ -13619,10 +13767,10 @@ export default {6],"toolTriggerSettings": [- 315+ 323],"workflowActionTriggerSettings": [- 315+ 323],"__typename": [1@@ -13630,10 +13778,10 @@ export default {},"UpdateMcpServerInput": {"id": [- 525+ 533],"update": [- 550+ 559],"__typename": [1@@ -13641,7 +13789,7 @@ export default {},"UpdateMcpServerInputUpdates": {"connectionProviderId": [- 525+ 533],"isActive": [4@@ -13661,10 +13809,10 @@ export default {},"UpdateMessageChannelInput": {"id": [- 525+ 533],"update": [- 552+ 561],"__typename": [1@@ -13672,7 +13820,7 @@ export default {},"UpdateMessageChannelInputUpdates": {"contactAutoCreationPolicy": [- 347+ 355],"excludeGroupEmails": [4@@ -13687,10 +13835,10 @@ export default {4],"messageFolderImportPolicy": [- 354+ 362],"visibility": [- 352+ 360],"__typename": [1@@ -13698,10 +13846,10 @@ export default {},"UpdateMessageFolderInput": {"id": [- 525+ 533],"update": [- 554+ 563],"__typename": [1@@ -13717,10 +13865,10 @@ export default {},"UpdateMessageFoldersInput": {"ids": [- 525+ 533],"update": [- 554+ 563],"__typename": [1@@ -13731,7 +13879,7 @@ export default {1],"folderId": [- 525+ 533],"icon": [1@@ -13743,7 +13891,7 @@ export default {1],"pageLayoutId": [- 525+ 533],"position": [6@@ -13763,7 +13911,7 @@ export default {1],"imageIdentifierFieldMetadataId": [- 525+ 533],"isActive": [4@@ -13775,7 +13923,7 @@ export default {4],"labelIdentifierFieldMetadataId": [- 525+ 533],"labelPlural": [1@@ -13790,13 +13938,13 @@ export default {1],"openRecordIn": [- 383+ 391],"shortcut": [1],"translations": [- 364+ 372],"__typename": [1@@ -13804,10 +13952,10 @@ export default {},"UpdateOneFieldMetadataInput": {"id": [- 525+ 533],"update": [- 543+ 551],"__typename": [1@@ -13815,10 +13963,10 @@ export default {},"UpdateOneNavigationMenuItemInput": {"id": [- 525+ 533],"update": [- 556+ 565],"__typename": [1@@ -13826,10 +13974,10 @@ export default {},"UpdateOneObjectInput": {"id": [- 525+ 533],"update": [- 557+ 566],"__typename": [1@@ -13840,10 +13988,10 @@ export default {1],"objectMetadataId": [- 525+ 533],"type": [- 399+ 407],"__typename": [1@@ -13854,7 +14002,7 @@ export default {1],"layoutMode": [- 398+ 406],"position": [6@@ -13871,10 +14019,10 @@ export default {1],"id": [- 525+ 533],"layoutMode": [- 398+ 406],"position": [6@@ -13883,7 +14031,7 @@ export default {1],"widgets": [- 565+ 574],"__typename": [1@@ -13894,28 +14042,28 @@ export default {1],"conditionalDisplay": [- 315+ 323],"configuration": [- 315+ 323],"isActive": [4],"objectMetadataId": [- 525+ 533],"pageLayoutTabId": [- 525+ 533],"position": [- 315+ 323],"title": [1],"type": [- 655+ 664],"__typename": [1@@ -13926,28 +14074,28 @@ export default {1],"conditionalDisplay": [- 315+ 323],"configuration": [- 315+ 323],"id": [- 525+ 533],"objectMetadataId": [- 525+ 533],"pageLayoutTabId": [- 525+ 533],"position": [- 315+ 323],"title": [1],"type": [- 655+ 664],"__typename": [1@@ -13961,13 +14109,13 @@ export default {1],"objectMetadataId": [- 525+ 533],"tabs": [- 563+ 572],"type": [- 399+ 407],"__typename": [1@@ -13975,10 +14123,10 @@ export default {},"UpdateRoleInput": {"id": [- 525+ 533],"update": [- 568+ 577],"__typename": [1@@ -14039,7 +14187,7 @@ export default {1],"id": [- 525+ 533],"isActive": [4@@ -14059,7 +14207,7 @@ export default {1],"id": [- 525+ 533],"isActive": [4@@ -14068,7 +14216,7 @@ export default {1],"translations": [- 364+ 372],"__typename": [1@@ -14085,7 +14233,7 @@ export default {1],"visibility": [- 529+ 537],"__typename": [1@@ -14093,7 +14241,7 @@ export default {},"UpdateUsageLimitInput": {"id": [- 525+ 533],"payload": [198@@ -14104,10 +14252,10 @@ export default {},"UpdateValidationRuleInput": {"id": [- 525+ 533],"update": [- 574+ 583],"__typename": [1@@ -14118,7 +14266,7 @@ export default {1],"errorFieldMetadataId": [- 525+ 533],"expression": [1@@ -14141,10 +14289,10 @@ export default {},"UpdateViewFieldGroupInput": {"id": [- 525+ 533],"update": [- 576+ 585],"__typename": [1@@ -14169,10 +14317,10 @@ export default {},"UpdateViewFieldInput": {"id": [- 525+ 533],"update": [- 578+ 587],"__typename": [1@@ -14192,7 +14340,7 @@ export default {6],"viewFieldGroupId": [- 525+ 533],"__typename": [1@@ -14200,19 +14348,19 @@ export default {},"UpdateViewFilterGroupInput": {"id": [- 525+ 533],"logicalOperator": [- 643+ 652],"parentViewFilterGroupId": [- 525+ 533],"positionInViewFilterGroup": [6],"viewId": [- 525+ 533],"__typename": [1@@ -14220,10 +14368,10 @@ export default {},"UpdateViewFilterInput": {"id": [- 525+ 533],"update": [- 581+ 590],"__typename": [1@@ -14231,25 +14379,25 @@ export default {},"UpdateViewFilterInputUpdates": {"fieldMetadataId": [- 525+ 533],"operand": [- 644+ 653],"positionInViewFilterGroup": [6],"relationTargetFieldMetadataId": [- 525+ 533],"subFieldName": [1],"value": [- 315+ 323],"viewFilterGroupId": [- 525+ 533],"__typename": [1@@ -14257,10 +14405,10 @@ export default {},"UpdateViewGroupInput": {"id": [- 525+ 533],"update": [- 583+ 592],"__typename": [1@@ -14268,7 +14416,7 @@ export default {},"UpdateViewGroupInputUpdates": {"fieldMetadataId": [- 525+ 533],"fieldValue": [1@@ -14288,13 +14436,13 @@ export default {1],"calendarEndFieldMetadataId": [- 525+ 533],"calendarFieldMetadataId": [- 525+ 533],"calendarLayout": [- 637+ 646],"groupLoadLimit": [10@@ -14303,7 +14451,7 @@ export default {1],"id": [- 525+ 533],"isCompact": [4@@ -14312,19 +14460,19 @@ export default {27],"kanbanAggregateOperationFieldMetadataId": [- 525+ 533],"kanbanColumnWidth": [10],"mainGroupByFieldMetadataId": [- 525+ 533],"name": [1],"openRecordIn": [- 647+ 656],"position": [6@@ -14333,13 +14481,13 @@ export default {4],"translations": [- 364+ 372],"type": [- 650+ 659],"visibility": [- 651+ 660],"__typename": [1@@ -14347,10 +14495,10 @@ export default {},"UpdateViewSortInput": {"id": [- 525+ 533],"update": [- 586+ 595],"__typename": [1@@ -14358,7 +14506,7 @@ export default {},"UpdateViewSortInputUpdates": {"direction": [- 649+ 658],"subFieldName": [1@@ -14369,10 +14517,10 @@ export default {},"UpdateWebhookInput": {"id": [- 525+ 533],"update": [- 588+ 597],"__typename": [1@@ -14386,7 +14534,7 @@ export default {1],"roleId": [- 525+ 533],"secret": [1@@ -14437,7 +14585,7 @@ export default {1],"aiModelIdByTier": [- 315+ 323],"allowImpersonation": [4@@ -14446,7 +14594,7 @@ export default {1],"defaultRoleId": [- 525+ 533],"displayName": [1@@ -14506,7 +14654,7 @@ export default {6],"workspaceDiscoverability": [- 665+ 675],"__typename": [1@@ -14514,10 +14662,10 @@ export default {},"UpdateWorkspaceMemberSettingsInput": {"update": [- 315+ 323],"workspaceMemberId": [- 525+ 533],"__typename": [1@@ -14529,7 +14677,7 @@ export default {274],"roleId": [- 525+ 533],"__typename": [1@@ -14537,7 +14685,7 @@ export default {},"UpsertFieldsWidgetFieldInput": {"fieldMetadataId": [- 525+ 533],"isVisible": [4@@ -14546,7 +14694,7 @@ export default {6],"viewFieldId": [- 525+ 533],"__typename": [1@@ -14554,10 +14702,10 @@ export default {},"UpsertFieldsWidgetGroupInput": {"fields": [- 595+ 604],"id": [- 525+ 533],"isVisible": [4@@ -14574,13 +14722,13 @@ export default {},"UpsertFieldsWidgetInput": {"fields": [- 595+ 604],"groups": [- 596+ 605],"widgetId": [- 525+ 533],"__typename": [1@@ -14588,10 +14736,10 @@ export default {},"UpsertObjectPermissionsInput": {"objectPermissions": [- 385+ 393],"roleId": [- 525+ 533],"__typename": [1@@ -14602,7 +14750,7 @@ export default {1],"roleId": [- 525+ 533],"__typename": [1@@ -14610,16 +14758,16 @@ export default {},"UpsertRowLevelPermissionPredicatesInput": {"objectMetadataId": [- 525+ 533],"predicateGroups": [- 453+ 461],"predicates": [- 455+ 463],"roleId": [- 525+ 533],"__typename": [1@@ -14627,10 +14775,10 @@ export default {},"UpsertRowLevelPermissionPredicatesResult": {"predicateGroups": [- 452+ 460],"predicates": [- 451+ 459],"__typename": [1@@ -14638,22 +14786,22 @@ export default {},"UpsertViewWidgetInput": {"view": [- 606+ 615],"viewFields": [- 603+ 612],"viewFilterGroups": [- 604+ 613],"viewFilters": [- 605+ 614],"viewSorts": [- 607+ 616],"widgetId": [- 525+ 533],"__typename": [1@@ -14664,7 +14812,7 @@ export default {27],"fieldMetadataId": [- 525+ 533],"isVisible": [4@@ -14676,7 +14824,7 @@ export default {6],"viewFieldId": [- 525+ 533],"__typename": [1@@ -14684,13 +14832,13 @@ export default {},"UpsertViewWidgetViewFilterGroupInput": {"id": [- 525+ 533],"logicalOperator": [- 643+ 652],"parentViewFilterGroupId": [- 525+ 533],"positionInViewFilterGroup": [6@@ -14701,28 +14849,28 @@ export default {},"UpsertViewWidgetViewFilterInput": {"fieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"operand": [- 644+ 653],"positionInViewFilterGroup": [6],"relationTargetFieldMetadataId": [- 525+ 533],"subFieldName": [1],"value": [- 315+ 323],"viewFilterGroupId": [- 525+ 533],"__typename": [1@@ -14730,34 +14878,34 @@ export default {},"UpsertViewWidgetViewSettingsInput": {"calendarEndFieldMetadataId": [- 525+ 533],"calendarFieldMetadataId": [- 525+ 533],"calendarLayout": [- 637+ 646],"kanbanAggregateOperation": [27],"kanbanAggregateOperationFieldMetadataId": [- 525+ 533],"kanbanColumnWidth": [10],"mainGroupByFieldMetadataId": [- 525+ 533],"openRecordIn": [- 647+ 656],"shouldHideEmptyGroups": [4],"type": [- 650+ 659],"__typename": [1@@ -14765,13 +14913,13 @@ export default {},"UpsertViewWidgetViewSortInput": {"direction": [- 649+ 658],"fieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"__typename": [1@@ -14785,22 +14933,22 @@ export default {211],"timeSeries": [- 621+ 630],"usageByApplication": [- 610+ 619],"usageByModel": [- 610+ 619],"usageByOperationType": [- 610+ 619],"usageByUser": [- 610+ 619],"userDailyUsage": [- 623+ 632],"__typename": [1@@ -14808,7 +14956,7 @@ export default {},"UsageAnalyticsInput": {"operationTypes": [- 613+ 622],"periodEnd": [211@@ -14851,7 +14999,7 @@ export default {211],"id": [- 525+ 533],"limitKind": [1@@ -14860,7 +15008,7 @@ export default {98],"operationType": [- 613+ 622],"periodCount": [10@@ -14869,7 +15017,7 @@ export default {1],"resourceType": [- 620+ 629],"spenderId": [1@@ -14878,7 +15026,7 @@ export default {1],"unit": [- 622+ 631],"updatedAt": [211@@ -14889,10 +15037,10 @@ export default {},"UsageLimitOperationDefinition": {"allowedUnits": [- 622+ 631],"operationType": [- 613+ 622],"__typename": [1@@ -14901,7 +15049,7 @@ export default {"UsageOperationType": {},"UsageQuotaDefinition": {"allowedOperations": [- 612+ 621],"allowedSpenderTypes": [1@@ -14910,10 +15058,10 @@ export default {1],"operatorOnlyScopes": [- 616+ 625],"resourceType": [- 620+ 629],"__typename": [1@@ -14921,7 +15069,7 @@ export default {},"UsageQuotaDefinitions": {"definitions": [- 614+ 623],"hasAllowancePeriod": [4@@ -14935,7 +15083,7 @@ export default {},"UsageQuotaOperatorOnlyScope": {"operationType": [- 613+ 622],"periodUnit": [1@@ -14944,7 +15092,7 @@ export default {1],"unit": [- 622+ 631],"__typename": [1@@ -14966,13 +15114,13 @@ export default {},"UsageQuotaScopeInput": {"operationType": [- 613+ 622],"periodUnit": [1],"resourceType": [- 620+ 629],"spenderId": [1@@ -14981,7 +15129,7 @@ export default {1],"unit": [- 622+ 631],"__typename": [1@@ -14992,7 +15140,7 @@ export default {98],"id": [- 525+ 533],"isEnforced": [4@@ -15001,7 +15149,7 @@ export default {98],"operationType": [- 613+ 622],"periodEnd": [211@@ -15016,7 +15164,7 @@ export default {98],"resourceType": [- 620+ 629],"spenderId": [1@@ -15028,7 +15176,7 @@ export default {1],"unit": [- 622+ 631],"__typename": [1@@ -15052,7 +15200,7 @@ export default {"UsageUnit": {},"UsageUserDaily": {"dailyUsage": [- 621+ 630],"userWorkspaceId": [1@@ -15075,10 +15223,10 @@ export default {211],"currentUserWorkspace": [- 628+ 637],"currentWorkspace": [- 659+ 669],"deletedAt": [211@@ -15099,7 +15247,7 @@ export default {4],"id": [- 525+ 533],"isEmailVerified": [4@@ -15114,10 +15262,10 @@ export default {1],"onboardingStatus": [- 391+ 399],"previousOnboardingStatus": [- 391+ 399],"supportUserHash": [1@@ -15126,19 +15274,19 @@ export default {211],"userVars": [- 316+ 324],"userWorkspaces": [- 628+ 637],"workspaceMember": [- 668+ 678],"workspaceMembers": [- 668+ 678],"workspaces": [- 628+ 637],"__typename": [1@@ -15164,7 +15312,7 @@ export default {1],"options": [- 315+ 323],"type": [1@@ -15194,7 +15342,7 @@ export default {211],"id": [- 525+ 533],"ipAddress": [1@@ -15215,7 +15363,7 @@ export default {1],"workspaceId": [- 525+ 533],"__typename": [1@@ -15229,7 +15377,7 @@ export default {211],"id": [- 525+ 533],"isImpersonating": [4@@ -15238,25 +15386,25 @@ export default {1],"objectPermissions": [- 384+ 392],"objectsPermissions": [- 384+ 392],"permissionFlags": [- 408+ 416],"twoFactorAuthenticationMethodSummary": [- 521+ 529],"updatedAt": [211],"user": [- 624+ 633],"userId": [- 525+ 533],"__typename": [1@@ -15264,7 +15412,7 @@ export default {},"ValidateApprovedAccessDomainInput": {"approvedAccessDomainId": [- 525+ 533],"validationToken": [1@@ -15281,7 +15429,7 @@ export default {4],"id": [- 525+ 533],"__typename": [1@@ -15292,7 +15440,7 @@ export default {1],"errorFieldMetadataId": [- 525+ 533],"expression": [1@@ -15301,7 +15449,7 @@ export default {1],"id": [- 525+ 533],"isActive": [4@@ -15313,7 +15461,7 @@ export default {1],"objectMetadataId": [- 525+ 533],"__typename": [1@@ -15344,7 +15492,7 @@ export default {83],"workspaceUrls": [- 677+ 687],"__typename": [1@@ -15374,22 +15522,22 @@ export default {1],"applicationId": [- 525+ 533],"calendarEndFieldMetadataId": [- 525+ 533],"calendarFieldMetadataId": [- 525+ 533],"calendarLayout": [- 637+ 646],"createdAt": [211],"createdByUserWorkspaceId": [- 525+ 533],"deletedAt": [211@@ -15401,7 +15549,7 @@ export default {1],"id": [- 525+ 533],"isActive": [4@@ -15419,25 +15567,25 @@ export default {27],"kanbanAggregateOperationFieldMetadataId": [- 525+ 533],"kanbanColumnWidth": [10],"key": [- 646+ 655],"mainGroupByFieldMetadataId": [- 525+ 533],"name": [1],"objectMetadataId": [- 525+ 533],"openRecordIn": [- 647+ 656],"position": [6@@ -15446,37 +15594,37 @@ export default {4],"type": [- 650+ 659],"universalIdentifier": [- 525+ 533],"updatedAt": [211],"viewFieldGroups": [- 640+ 649],"viewFields": [- 639+ 648],"viewFilterGroups": [- 642+ 651],"viewFilters": [- 641+ 650],"viewGroups": [- 645+ 654],"viewSorts": [- 648+ 657],"visibility": [- 651+ 660],"workspaceId": [- 525+ 533],"__typename": [1@@ -15485,7 +15633,7 @@ export default {"ViewCalendarLayout": {},"ViewConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -15496,7 +15644,7 @@ export default {27],"applicationId": [- 525+ 533],"createdAt": [211@@ -15505,10 +15653,10 @@ export default {211],"fieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"isActive": [4@@ -15529,19 +15677,19 @@ export default {6],"universalIdentifier": [- 525+ 533],"updatedAt": [211],"viewFieldGroupId": [- 525+ 533],"viewId": [- 525+ 533],"workspaceId": [- 525+ 533],"__typename": [1@@ -15555,7 +15703,7 @@ export default {211],"id": [- 525+ 533],"isActive": [4@@ -15576,13 +15724,13 @@ export default {211],"viewFields": [- 639+ 648],"viewId": [- 525+ 533],"workspaceId": [- 525+ 533],"__typename": [1@@ -15596,19 +15744,19 @@ export default {211],"fieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"operand": [- 644+ 653],"positionInViewFilterGroup": [6],"relationTargetFieldMetadataId": [- 525+ 533],"subFieldName": [1@@ -15617,16 +15765,16 @@ export default {211],"value": [- 315+ 323],"viewFilterGroupId": [- 525+ 533],"viewId": [- 525+ 533],"workspaceId": [- 525+ 533],"__typename": [1@@ -15640,13 +15788,13 @@ export default {211],"id": [- 525+ 533],"logicalOperator": [- 643+ 652],"parentViewFilterGroupId": [- 525+ 533],"positionInViewFilterGroup": [6@@ -15655,10 +15803,10 @@ export default {211],"viewId": [- 525+ 533],"workspaceId": [- 525+ 533],"__typename": [1@@ -15677,7 +15825,7 @@ export default {1],"id": [- 525+ 533],"isVisible": [4@@ -15689,10 +15837,10 @@ export default {211],"viewId": [- 525+ 533],"workspaceId": [- 525+ 533],"__typename": [1@@ -15708,13 +15856,13 @@ export default {211],"direction": [- 649+ 658],"fieldMetadataId": [- 525+ 533],"id": [- 525+ 533],"subFieldName": [1@@ -15723,10 +15871,10 @@ export default {211],"viewId": [- 525+ 533],"workspaceId": [- 525+ 533],"__typename": [1@@ -15737,7 +15885,7 @@ export default {"ViewVisibility": {},"Webhook": {"applicationId": [- 525+ 533],"createdAt": [211@@ -15749,13 +15897,13 @@ export default {1],"id": [- 525+ 533],"operations": [1],"role": [- 448+ 456],"secret": [1@@ -15817,46 +15965,46 @@ export default {287],"on_IframeConfiguration": [- 297+ 305],"on_LineChartConfiguration": [- 319+ 327],"on_MessageCampaignBodyConfiguration": [- 343+ 351],"on_MessageCampaignDetailsConfiguration": [- 344+ 352],"on_NotesConfiguration": [- 375+ 383],"on_PieChartConfiguration": [- 409+ 417],"on_RecordTableConfiguration": [- 438+ 446],"on_StandaloneRichTextConfiguration": [- 492+ 500],"on_TasksConfiguration": [- 502+ 510],"on_TimelineConfiguration": [- 506+ 514],"on_ViewConfiguration": [- 638+ 647],"on_WorkflowConfiguration": [- 656+ 666],"on_WorkflowRunConfiguration": [- 657+ 667],"on_WorkflowVersionConfiguration": [- 658+ 668],"__typename": [1@@ -15864,9 +16012,10 @@ export default {},"WidgetConfigurationType": {},"WidgetType": {},+ "WorkflowActionType": {},"WorkflowConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -15874,7 +16023,7 @@ export default {},"WorkflowRunConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -15882,7 +16031,7 @@ export default {},"WorkflowVersionConfiguration": {"configurationType": [- 654+ 663],"__typename": [1@@ -15890,7 +16039,7 @@ export default {},"Workspace": {"activationStatus": [- 660+ 670],"aiAdditionalInstructions": [1@@ -15905,7 +16054,7 @@ export default {1],"aiModelIdByTier": [- 315+ 323],"allowImpersonation": [4@@ -15935,7 +16084,7 @@ export default {1],"defaultRole": [- 448+ 456],"deletedAt": [211@@ -15959,10 +16108,10 @@ export default {4],"id": [- 525+ 533],"iframeMediaPermissions": [- 298+ 306],"installedApplications": [46@@ -16016,7 +16165,7 @@ export default {1],"logoFileId": [- 525+ 533],"metadataVersion": [6@@ -16031,22 +16180,22 @@ export default {211],"viewFields": [- 639+ 648],"viewFilterGroups": [- 642+ 651],"viewFilters": [- 641+ 650],"viewGroups": [- 645+ 654],"viewSorts": [- 648+ 657],"views": [- 636+ 645],"workspaceCustomApplication": [46@@ -16055,13 +16204,13 @@ export default {1],"workspaceDiscoverability": [- 665+ 675],"workspaceMembersCount": [6],"workspaceUrls": [- 677+ 687],"__typename": [1@@ -16085,19 +16234,19 @@ export default {"WorkspaceCompanyEnrichmentOutcome": {},"WorkspaceCompanyEnrichmentResult": {"enrichment": [- 315+ 323],"isBookCallOnboardingStepPending": [4],"outcome": [- 662+ 672],"personEnrichment": [- 315+ 323],"personOutcome": [- 675+ 685],"__typename": [1@@ -16123,10 +16272,10 @@ export default {211],"id": [- 525+ 533],"roleId": [- 525+ 533],"__typename": [1@@ -16151,10 +16300,10 @@ export default {1],"dateFormat": [- 670+ 680],"id": [- 525+ 533],"locale": [1@@ -16163,16 +16312,16 @@ export default {289],"numberFormat": [- 671+ 681],"openRecordIn": [- 394+ 402],"roles": [- 448+ 456],"timeFormat": [- 672+ 682],"timeZone": [1@@ -16184,10 +16333,10 @@ export default {1],"userId": [- 525+ 533],"userWorkspaceId": [- 525+ 533],"__typename": [1@@ -16195,13 +16344,13 @@ export default {},"WorkspaceMemberApplicationVariables": {"userWorkspaceId": [- 525+ 533],"variables": [- 625+ 634],"workspaceMemberId": [- 525+ 533],"__typename": [1@@ -16212,7 +16361,7 @@ export default {"WorkspaceMemberTimeFormatEnum": {},"WorkspaceMigration": {"actions": [- 315+ 323],"applicationUniversalIdentifier": [1@@ -16226,7 +16375,7 @@ export default {1],"id": [- 525+ 533],"__typename": [1@@ -16247,10 +16396,10 @@ export default {},"WorkspaceUrlsAndId": {"id": [- 525+ 533],"workspaceUrls": [- 677+ 687],"__typename": [1diff --git a/packages/twenty-front/src/generated-admin/schema.ts b/packages/twenty-front/src/generated-admin/schema.tsindex 51f2b414d25..029eebc724c 100644--- a/packages/twenty-front/src/generated-admin/schema.ts+++ b/packages/twenty-front/src/generated-admin/schema.ts@@ -542,6 +542,7 @@ export enum FeatureFlagKey {IS_APP_PREFERENCES_ENABLED = 'IS_APP_PREFERENCES_ENABLED',IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED = 'IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED',IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED = 'IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED',+ IS_GETTING_STARTED_ENABLED = 'IS_GETTING_STARTED_ENABLED',IS_MCP_SERVERS_ENABLED = 'IS_MCP_SERVERS_ENABLED',IS_PRIVATE_RECORD_ENABLED = 'IS_PRIVATE_RECORD_ENABLED',IS_RECORD_CREATION_FORM_ENABLED = 'IS_RECORD_CREATION_FORM_ENABLED',diff --git a/packages/twenty-front/src/generated-metadata/schema.ts b/packages/twenty-front/src/generated-metadata/schema.tsindex 0ac61673c04..e68e7a0788a 100644--- a/packages/twenty-front/src/generated-metadata/schema.ts+++ b/packages/twenty-front/src/generated-metadata/schema.ts@@ -2451,6 +2451,7 @@ export enum FeatureFlagKey {IS_APP_PREFERENCES_ENABLED = 'IS_APP_PREFERENCES_ENABLED',IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED = 'IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED',IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED = 'IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED',+ IS_GETTING_STARTED_ENABLED = 'IS_GETTING_STARTED_ENABLED',IS_MCP_SERVERS_ENABLED = 'IS_MCP_SERVERS_ENABLED',IS_PRIVATE_RECORD_ENABLED = 'IS_PRIVATE_RECORD_ENABLED',IS_RECORD_CREATION_FORM_ENABLED = 'IS_RECORD_CREATION_FORM_ENABLED',@@ -2735,6 +2736,70 @@ export type GetAuthorizationUrlForSsoInput = {workspaceInviteHash?: InputMaybe<Scalars['String']['input']>;};+export type GettingStartedProgress = {+ __typename?: 'GettingStartedProgress';+ completedStepActionKeys: Array<GettingStartedStepActionKey>;+ isHidden: Scalars['Boolean']['output'];+ selectedStepActionKey?: Maybe<GettingStartedStepActionKey>;+ snoozedUntil?: Maybe<Scalars['String']['output']>;+ steps: Array<GettingStartedStepDefinition>;+};++export enum GettingStartedStepActionKey {+ CONNECT_MAILBOX = 'CONNECT_MAILBOX',+ CUSTOMIZE_DATA_MODEL = 'CUSTOMIZE_DATA_MODEL',+ FOLLOW_UP_DEALS = 'FOLLOW_UP_DEALS',+ HANDOVER_DEALS = 'HANDOVER_DEALS',+ IMPORT_DATA = 'IMPORT_DATA',+ INSTALL_APP = 'INSTALL_APP',+ INVITE_TEAM = 'INVITE_TEAM'+}++export type GettingStartedStepDefinition = {+ __typename?: 'GettingStartedStepDefinition';+ actionKey: GettingStartedStepActionKey;+ description: Scalars['String']['output'];+ doneTitle: Scalars['String']['output'];+ icon: Scalars['String']['output'];+ iconColor: Scalars['String']['output'];+ kind: GettingStartedStepKind;+ prompt?: Maybe<Scalars['String']['output']>;+ promptLabel?: Maybe<Scalars['String']['output']>;+ title: Scalars['String']['output'];+};++export enum GettingStartedStepKind {+ CUSTOM = 'CUSTOM',+ PROMPT = 'PROMPT',+ WORKFLOW = 'WORKFLOW'+}++export type GettingStartedWorkflow = {+ __typename?: 'GettingStartedWorkflow';+ versionId: Scalars['String']['output'];+ workflowId: Scalars['String']['output'];+};++export type GettingStartedWorkflowPreview = {+ __typename?: 'GettingStartedWorkflowPreview';+ actions: Array<GettingStartedWorkflowPreviewAction>;+ stepActionKey: GettingStartedStepActionKey;+ trigger: GettingStartedWorkflowPreviewTrigger;+};++export type GettingStartedWorkflowPreviewAction = {+ __typename?: 'GettingStartedWorkflowPreviewAction';+ title: Scalars['String']['output'];+ type: WorkflowActionType;+};++export type GettingStartedWorkflowPreviewTrigger = {+ __typename?: 'GettingStartedWorkflowPreviewTrigger';+ databaseEventAction?: Maybe<Scalars['String']['output']>;+ title: Scalars['String']['output'];+ type: Scalars['String']['output'];+};+export type GrantApplicationCapabilitiesInput = {applicationId: Scalars['UUID']['input'];capabilities: Array<Scalars['String']['input']>;@@ -3566,6 +3631,7 @@ export type Mutation = {installMarketplaceApp: Scalars['Boolean']['output'];markAgentChatThreadAsDoneInChannel: Scalars['Boolean']['output'];moveAgentChatThreadToChannel: Scalars['Boolean']['output'];+ prepareGettingStartedWorkflow: GettingStartedWorkflow;refreshEnterpriseValidityToken: Scalars['Boolean']['output'];releaseEnterpriseServerBinding: EnterpriseLicenseInfoDto;removeAgentChatMessageReaction: Array<AgentMessageReactionSummary>;@@ -3644,6 +3710,7 @@ export type Mutation = {updateCommandMenuItem: CommandMenuItem;updateEmailGroupChannel: MessageChannel;updateFrontComponent: FrontComponent;+ updateGettingStarted: GettingStartedProgress;updateLabPublicFeatureFlag: FeatureFlag;updateManyNavigationMenuItems: Array<NavigationMenuItem>;updateManyObjects: Array<Object>;@@ -4491,6 +4558,11 @@ export type MutationMoveAgentChatThreadToChannelArgs = {};+export type MutationPrepareGettingStartedWorkflowArgs = {+ stepActionKey: GettingStartedStepActionKey;+};++export type MutationRemoveAgentChatMessageReactionArgs = {emoji: Scalars['String']['input'];messageId: Scalars['UUID']['input'];@@ -4886,6 +4958,11 @@ export type MutationUpdateFrontComponentArgs = {};+export type MutationUpdateGettingStartedArgs = {+ input: UpdateGettingStartedInput;+};++export type MutationUpdateLabPublicFeatureFlagArgs = {input: UpdateLabPublicFeatureFlagInput;};@@ -5857,6 +5934,8 @@ export type Query = {getViewSorts: Array<ViewSort>;getViews: Array<View>;getWorkspaceCreationDefaults: WorkspaceCreationDefaultsDto;+ gettingStartedProgress: GettingStartedProgress;+ gettingStartedWorkflowPreviews: Array<GettingStartedWorkflowPreview>;githubClaimAuthorizationUrl: Scalars['String']['output'];isApplicationStopped: Scalars['Boolean']['output'];lineChartData: LineChartData;@@ -7379,6 +7458,13 @@ export type UpdateFrontComponentInputUpdates = {name?: InputMaybe<Scalars['String']['input']>;};+export type UpdateGettingStartedInput = {+ completedStepActionKey?: InputMaybe<GettingStartedStepActionKey>;+ isHidden?: InputMaybe<Scalars['Boolean']['input']>;+ selectedStepActionKey?: InputMaybe<GettingStartedStepActionKey>;+ snoozedUntil?: InputMaybe<Scalars['String']['input']>;+};+export type UpdateLabPublicFeatureFlagInput = {publicFeatureFlag: Scalars['String']['input'];value: Scalars['Boolean']['input'];@@ -8481,6 +8567,31 @@ export enum WidgetType {WORKFLOW_VERSION = 'WORKFLOW_VERSION'}+export enum WorkflowActionType {+ AI_AGENT = 'AI_AGENT',+ CLASSIFY = 'CLASSIFY',+ CODE = 'CODE',+ CREATE_CALENDAR_EVENT = 'CREATE_CALENDAR_EVENT',+ CREATE_RECORD = 'CREATE_RECORD',+ DELAY = 'DELAY',+ DELETE_RECORD = 'DELETE_RECORD',+ DRAFT_EMAIL = 'DRAFT_EMAIL',+ EMPTY = 'EMPTY',+ FILTER = 'FILTER',+ FIND_RECORDS = 'FIND_RECORDS',+ FORM = 'FORM',+ HTTP_REQUEST = 'HTTP_REQUEST',+ IF_ELSE = 'IF_ELSE',+ ITERATOR = 'ITERATOR',+ LOGIC_FUNCTION = 'LOGIC_FUNCTION',+ PICK_RECORD = 'PICK_RECORD',+ SEND_CHAT_MESSAGE = 'SEND_CHAT_MESSAGE',+ SEND_EMAIL = 'SEND_EMAIL',+ UPDATE_RECORD = 'UPDATE_RECORD',+ UPSERT_RECORD = 'UPSERT_RECORD',+ WAIT_FOR_EVENT = 'WAIT_FOR_EVENT'+}+export type WorkflowConfiguration = {__typename?: 'WorkflowConfiguration';configurationType: WidgetConfigurationType;diff --git a/packages/twenty-front/src/modules/settings/admin-panel/constants/SettingsAdminFeatureFlagMetadata.ts b/packages/twenty-front/src/modules/settings/admin-panel/constants/SettingsAdminFeatureFlagMetadata.tsindex 7fd43d91b62..586e75d6b9f 100644--- a/packages/twenty-front/src/modules/settings/admin-panel/constants/SettingsAdminFeatureFlagMetadata.ts+++ b/packages/twenty-front/src/modules/settings/admin-panel/constants/SettingsAdminFeatureFlagMetadata.ts@@ -56,4 +56,8 @@ export const SETTINGS_ADMIN_FEATURE_FLAG_METADATA: Record<label: msg`Record rules through relations`,description: msg`Let record-level permission rules compare a field of a related record.`,},+ [FeatureFlagKey.IS_GETTING_STARTED_ENABLED]: {+ label: msg`Getting started`,+ description: msg`Show the Getting started page and sidebar card, and open it on landing during the trial.`,+ },};diff --git a/packages/twenty-server/src/engine/core-modules/core-engine.module.ts b/packages/twenty-server/src/engine/core-modules/core-engine.module.tsindex 839f1f0c5d4..cf5de4c7e49 100644--- a/packages/twenty-server/src/engine/core-modules/core-engine.module.ts+++ b/packages/twenty-server/src/engine/core-modules/core-engine.module.ts@@ -40,6 +40,8 @@ import { exceptionHandlerModuleFactory } from 'src/engine/core-modules/exceptionimport { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';import { FileStorageModule } from 'src/engine/core-modules/file-storage/file-storage.module';import { GeoMapModule } from 'src/engine/core-modules/geo-map/geo-map-module';+import { GettingStartedWorkflowModule } from 'src/engine/core-modules/getting-started/getting-started-workflow.module';+import { GettingStartedModule } from 'src/engine/core-modules/getting-started/getting-started.module';import { HealthModule } from 'src/engine/core-modules/health/health.module';import { I18nModule } from 'src/engine/core-modules/i18n/i18n.module';import { ImapSmtpCaldavModule } from 'src/engine/core-modules/imap-smtp-caldav-connection/imap-smtp-caldav-connection.module';@@ -121,6 +123,8 @@ import { FileApiModule } from './file/file-api.module';CloudflareModule,DnsManagerModule,WorkflowApiModule,+ GettingStartedModule,+ GettingStartedWorkflowModule,AiToolCallAnswerModule,WorkspaceEventEmitterModule,ActorModule,diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-handover-workflow.constant.ts b/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-handover-workflow.constant.tsnew file mode 100644index 00000000000..21b7becc440--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-handover-workflow.constant.ts@@ -0,0 +1,156 @@+import { msg } from '@lingui/core/macro';+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';+import { StepLogicalOperator, ViewFilterOperand } from 'twenty-shared/types';++import { type GettingStartedWorkflow } from 'src/engine/core-modules/getting-started/types/getting-started-workflow.type';+import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';++const FIND_ACCOUNT_STEP_UNIVERSAL_IDENTIFIER =+ '19eff5f8-356f-4cf2-a24f-309474f5b54e';+const FIND_ACCOUNT_OWNER_STEP_UNIVERSAL_IDENTIFIER =+ '9e9e0da4-017b-4ed0-be7d-e7c21239599a';+const CREATE_KICKOFF_TASK_STEP_UNIVERSAL_IDENTIFIER =+ '02fc0ba0-64ca-4468-a290-1601d03576f6';+const EMAIL_ACCOUNT_OWNER_STEP_UNIVERSAL_IDENTIFIER =+ '30b080b5-ef02-4092-8f84-2a5f1cd123b9';+const STAGE_FILTER_GROUP_ID = 'd2c2f73a-0622-4215-ac54-7beabcf19792';+const CREATE_KICKOFF_TASK_STEP_TITLE = msg`Create a kickoff task`;+const EMAIL_ACCOUNT_OWNER_STEP_TITLE = msg`Email the account owner`;++export const GETTING_STARTED_HANDOVER_WORKFLOW: GettingStartedWorkflow = {+ triggerTitle: msg`A deal is won`,+ stepTitles: {+ [CREATE_KICKOFF_TASK_STEP_UNIVERSAL_IDENTIFIER]:+ CREATE_KICKOFF_TASK_STEP_TITLE,+ [EMAIL_ACCOUNT_OWNER_STEP_UNIVERSAL_IDENTIFIER]:+ EMAIL_ACCOUNT_OWNER_STEP_TITLE,+ },+ manifest: {+ universalIdentifier: '4cdbbe38-e004-4485-a7f0-a19a8de5f151',+ name: 'Hand over won deals',+ version: {+ trigger: {+ universalIdentifier: '484efebd-6e9a-42dc-ace1-655e5d0e1396',+ type: 'DATABASE_EVENT',+ nextStepIds: [FIND_ACCOUNT_STEP_UNIVERSAL_IDENTIFIER],+ settings: {+ objectUniversalIdentifier:+ STANDARD_OBJECTS.opportunity.universalIdentifier,+ action: 'updated',+ fieldUniversalIdentifiers: [+ STANDARD_OBJECTS.opportunity.fields.stage.universalIdentifier,+ ],+ filter: {+ stepFilterGroups: [+ {+ id: STAGE_FILTER_GROUP_ID,+ logicalOperator: StepLogicalOperator.AND,+ },+ ],+ stepFilters: [+ {+ id: '3f1ecce3-2db2-4dfc-9246-825a0e64577d',+ type: 'SELECT',+ stepOutputKey: '{{trigger.properties.after.stage}}',+ operand: ViewFilterOperand.IS,+ value: '["CUSTOMER"]',+ stepFilterGroupId: STAGE_FILTER_GROUP_ID,+ fieldMetadataUniversalIdentifier:+ STANDARD_OBJECTS.opportunity.fields.stage.universalIdentifier,+ },+ ],+ },+ },+ },+ steps: [+ {+ universalIdentifier: FIND_ACCOUNT_STEP_UNIVERSAL_IDENTIFIER,+ name: 'Find account',+ type: 'FIND_RECORDS',+ nextStepIds: [FIND_ACCOUNT_OWNER_STEP_UNIVERSAL_IDENTIFIER],+ input: {+ objectUniversalIdentifier:+ STANDARD_OBJECTS.company.universalIdentifier,+ limit: 1,+ filter: {+ recordFilters: [+ {+ id: 'b5aa322d-0a22-4c05-924a-46ae957ff926',+ fieldMetadataUniversalIdentifier:+ STANDARD_OBJECTS.company.fields.id.universalIdentifier,+ operand: ViewFilterOperand.IS,+ value: '["{{trigger.properties.after.companyId}}"]',+ },+ ],+ },+ },+ },+ {+ universalIdentifier: FIND_ACCOUNT_OWNER_STEP_UNIVERSAL_IDENTIFIER,+ name: 'Find account owner',+ type: 'FIND_RECORDS',+ nextStepIds: [CREATE_KICKOFF_TASK_STEP_UNIVERSAL_IDENTIFIER],+ input: {+ objectUniversalIdentifier:+ STANDARD_OBJECTS.workspaceMember.universalIdentifier,+ limit: 1,+ filter: {+ recordFilters: [+ {+ id: 'ebe9c24c-79c6-410e-aeba-a1c142fb08f9',+ fieldMetadataUniversalIdentifier:+ STANDARD_OBJECTS.workspaceMember.fields.id+ .universalIdentifier,+ operand: ViewFilterOperand.IS,+ value: `["{{${FIND_ACCOUNT_STEP_UNIVERSAL_IDENTIFIER}.first.accountOwnerId}}"]`,+ },+ ],+ },+ },+ },+ {+ universalIdentifier: CREATE_KICKOFF_TASK_STEP_UNIVERSAL_IDENTIFIER,+ name: i18nLabel(CREATE_KICKOFF_TASK_STEP_TITLE),+ type: 'CREATE_RECORD',+ nextStepIds: [EMAIL_ACCOUNT_OWNER_STEP_UNIVERSAL_IDENTIFIER],+ input: {+ objectUniversalIdentifier:+ STANDARD_OBJECTS.task.universalIdentifier,+ objectRecord: {+ title: 'Kick off {{trigger.properties.after.name}}',+ status: 'TODO',+ assigneeId: `{{${FIND_ACCOUNT_OWNER_STEP_UNIVERSAL_IDENTIFIER}.first.id}}`,+ },+ },+ },+ {+ universalIdentifier: EMAIL_ACCOUNT_OWNER_STEP_UNIVERSAL_IDENTIFIER,+ name: i18nLabel(EMAIL_ACCOUNT_OWNER_STEP_TITLE),+ type: 'SEND_EMAIL',+ nextStepIds: [],+ input: {+ connectedAccountId: '',+ recipients: {+ to: `{{${FIND_ACCOUNT_OWNER_STEP_UNIVERSAL_IDENTIFIER}.first.userEmail}}`,+ },+ subject: 'Deal won: {{trigger.properties.after.name}}',+ body: JSON.stringify({+ type: 'doc',+ content: [+ {+ type: 'paragraph',+ content: [+ {+ type: 'text',+ text: 'The deal {{trigger.properties.after.name}} has been won. A kickoff task has been created for you in Twenty.',+ },+ ],+ },+ ],+ }),+ },+ },+ ],+ },+ },+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-small-team-max-employee-count.constant.ts b/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-small-team-max-employee-count.constant.tsnew file mode 100644index 00000000000..9b71ea75d6e--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-small-team-max-employee-count.constant.ts@@ -0,0 +1 @@+export const GETTING_STARTED_SMALL_TEAM_MAX_EMPLOYEE_COUNT = 10;diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-step-action-keys-by-profile.constant.ts b/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-step-action-keys-by-profile.constant.tsnew file mode 100644index 00000000000..25d8ed6f4a2--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-step-action-keys-by-profile.constant.ts@@ -0,0 +1,32 @@+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import { type GettingStartedProfile } from 'src/engine/core-modules/getting-started/types/getting-started-profile.type';++export const GETTING_STARTED_STEP_ACTION_KEYS_BY_PROFILE: Record<+ GettingStartedProfile,+ GettingStartedStepActionKey[]+> = {+ PERSONAL: [+ GettingStartedStepActionKey.IMPORT_DATA,+ GettingStartedStepActionKey.CONNECT_MAILBOX,+ GettingStartedStepActionKey.CUSTOMIZE_DATA_MODEL,+ GettingStartedStepActionKey.FOLLOW_UP_DEALS,+ GettingStartedStepActionKey.INSTALL_APP,+ ],+ SMALL_TEAM: [+ GettingStartedStepActionKey.CONNECT_MAILBOX,+ GettingStartedStepActionKey.IMPORT_DATA,+ GettingStartedStepActionKey.CUSTOMIZE_DATA_MODEL,+ GettingStartedStepActionKey.FOLLOW_UP_DEALS,+ GettingStartedStepActionKey.INVITE_TEAM,+ GettingStartedStepActionKey.INSTALL_APP,+ ],+ TEAM: [+ GettingStartedStepActionKey.CONNECT_MAILBOX,+ GettingStartedStepActionKey.IMPORT_DATA,+ GettingStartedStepActionKey.CUSTOMIZE_DATA_MODEL,+ GettingStartedStepActionKey.INVITE_TEAM,+ GettingStartedStepActionKey.HANDOVER_DEALS,+ GettingStartedStepActionKey.FOLLOW_UP_DEALS,+ GettingStartedStepActionKey.INSTALL_APP,+ ],+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-step-content.constant.ts b/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-step-content.constant.tsnew file mode 100644index 00000000000..8ce56752f32--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-step-content.constant.ts@@ -0,0 +1,69 @@+import { msg } from '@lingui/core/macro';++import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import { type GettingStartedStepContent } from 'src/engine/core-modules/getting-started/types/getting-started-step-content.type';+import { getGettingStartedDataModelPrompt } from 'src/engine/core-modules/getting-started/utils/get-getting-started-data-model-prompt.util';++export const GETTING_STARTED_STEP_CONTENT: Record<+ GettingStartedStepActionKey,+ GettingStartedStepContent+> = {+ [GettingStartedStepActionKey.CONNECT_MAILBOX]: {+ title: msg`Connect your mailbox`,+ doneTitle: msg`Mailbox connected`,+ description: msg`Companies and people fill in from your emails and meetings.`,+ icon: 'IconAt',+ iconColor: 'blue',+ },+ [GettingStartedStepActionKey.IMPORT_DATA]: {+ title: msg`Import your data`,+ doneTitle: msg`Spreadsheet uploaded`,+ description: msg`Bring your companies, contacts and deals from any CRM export.`,+ icon: 'IconFileImport',+ iconColor: 'gray',+ },+ [GettingStartedStepActionKey.CUSTOMIZE_DATA_MODEL]: {+ title: msg`Tailor your workspace`,+ doneTitle: msg`Setup request sent`,+ description: msg`An agent shapes your objects and fields around how you work.`,+ icon: 'IconHierarchy',+ iconColor: 'green',+ prompt: {+ label: msg`Setup instructions`,+ getText: getGettingStartedDataModelPrompt,+ },+ },+ [GettingStartedStepActionKey.INSTALL_APP]: {+ title: msg`Install an app`,+ doneTitle: msg`App installed`,+ description: msg`Add tools to your workspace.`,+ icon: 'IconApps',+ iconColor: 'turquoise',+ },+ [GettingStartedStepActionKey.INVITE_TEAM]: {+ title: msg`Invite your team`,+ doneTitle: msg`Invitations sent`,+ description: msg`Bring your team into Twenty.`,+ icon: 'IconUsers',+ iconColor: 'orange',+ },+ [GettingStartedStepActionKey.HANDOVER_DEALS]: {+ title: msg`Hand over won deals`,+ doneTitle: msg`Workflow enabled`,+ description: msg`Start the handover when a deal is won.`,+ icon: 'IconSettingsAutomation',+ iconColor: 'gray',+ },+ [GettingStartedStepActionKey.FOLLOW_UP_DEALS]: {+ title: msg`Follow up on closing deals`,+ doneTitle: msg`Follow-up request sent`,+ description: msg`An agent drafts a follow-up for every deal about to close.`,+ icon: 'IconSparkles',+ iconColor: 'purple',+ prompt: {+ label: msg`Follow-up instructions`,+ getText: () =>+ msg`Every Monday, draft a follow-up email for each deal closing in the next 30 days.`,+ },+ },+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-step-permission-flags.constant.ts b/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-step-permission-flags.constant.tsnew file mode 100644index 00000000000..d7a2103515d--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-step-permission-flags.constant.ts@@ -0,0 +1,23 @@+import { PermissionFlagType } from 'twenty-shared/constants';++import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';++export const GETTING_STARTED_STEP_PERMISSION_FLAGS: Record<+ GettingStartedStepActionKey,+ PermissionFlagType[]+> = {+ [GettingStartedStepActionKey.CONNECT_MAILBOX]: [+ PermissionFlagType.CONNECTED_ACCOUNTS,+ ],+ [GettingStartedStepActionKey.IMPORT_DATA]: [PermissionFlagType.IMPORT_CSV],+ [GettingStartedStepActionKey.CUSTOMIZE_DATA_MODEL]: [+ PermissionFlagType.DATA_MODEL,+ PermissionFlagType.AI,+ ],+ [GettingStartedStepActionKey.INSTALL_APP]: [PermissionFlagType.APPLICATIONS],+ [GettingStartedStepActionKey.INVITE_TEAM]: [+ PermissionFlagType.WORKSPACE_MEMBERS,+ ],+ [GettingStartedStepActionKey.HANDOVER_DEALS]: [PermissionFlagType.WORKFLOWS],+ [GettingStartedStepActionKey.FOLLOW_UP_DEALS]: [PermissionFlagType.AI],+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-workflows.constant.ts b/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-workflows.constant.tsnew file mode 100644index 00000000000..93d98a3bf97--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/constants/getting-started-workflows.constant.ts@@ -0,0 +1,10 @@+import { GETTING_STARTED_HANDOVER_WORKFLOW } from 'src/engine/core-modules/getting-started/constants/getting-started-handover-workflow.constant';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import { type GettingStartedWorkflow } from 'src/engine/core-modules/getting-started/types/getting-started-workflow.type';++export const GETTING_STARTED_WORKFLOWS: Partial<+ Record<GettingStartedStepActionKey, GettingStartedWorkflow>+> = {+ [GettingStartedStepActionKey.HANDOVER_DEALS]:+ GETTING_STARTED_HANDOVER_WORKFLOW,+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-progress.dto.ts b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-progress.dto.tsnew file mode 100644index 00000000000..60f32bb80d2--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-progress.dto.ts@@ -0,0 +1,22 @@+import { Field, ObjectType } from '@nestjs/graphql';++import { GettingStartedStepDefinitionDTO } from 'src/engine/core-modules/getting-started/dtos/getting-started-step-definition.dto';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';++@ObjectType('GettingStartedProgress')+export class GettingStartedProgressDTO {+ @Field(() => [GettingStartedStepDefinitionDTO])+ steps: GettingStartedStepDefinitionDTO[];++ @Field(() => [GettingStartedStepActionKey])+ completedStepActionKeys: GettingStartedStepActionKey[];++ @Field(() => GettingStartedStepActionKey, { nullable: true })+ selectedStepActionKey: GettingStartedStepActionKey | null;++ @Field(() => String, { nullable: true })+ snoozedUntil: string | null;++ @Field(() => Boolean)+ isHidden: boolean;+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-step-definition.dto.ts b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-step-definition.dto.tsnew file mode 100644index 00000000000..e1ab2cb1ee4--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-step-definition.dto.ts@@ -0,0 +1,34 @@+import { Field, ObjectType } from '@nestjs/graphql';++import { GettingStartedStepKind } from 'src/engine/core-modules/getting-started/enums/getting-started-step-kind.enum';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';++@ObjectType('GettingStartedStepDefinition')+export class GettingStartedStepDefinitionDTO {+ @Field(() => GettingStartedStepActionKey)+ actionKey: GettingStartedStepActionKey;++ @Field(() => GettingStartedStepKind)+ kind: GettingStartedStepKind;++ @Field(() => String)+ title: string;++ @Field(() => String)+ doneTitle: string;++ @Field(() => String)+ description: string;++ @Field(() => String)+ icon: string;++ @Field(() => String)+ iconColor: string;++ @Field(() => String, { nullable: true })+ promptLabel: string | null;++ @Field(() => String, { nullable: true })+ prompt: string | null;+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview-action.dto.ts b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview-action.dto.tsnew file mode 100644index 00000000000..711cb2c8b77--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview-action.dto.ts@@ -0,0 +1,12 @@+import { Field, ObjectType } from '@nestjs/graphql';++import { WorkflowActionType } from 'twenty-shared/workflow';++@ObjectType('GettingStartedWorkflowPreviewAction')+export class GettingStartedWorkflowPreviewActionDTO {+ @Field(() => WorkflowActionType)+ type: WorkflowActionType;++ @Field(() => String)+ title: string;+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview-trigger.dto.ts b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview-trigger.dto.tsnew file mode 100644index 00000000000..fa61c90e233--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview-trigger.dto.ts@@ -0,0 +1,13 @@+import { Field, ObjectType } from '@nestjs/graphql';++@ObjectType('GettingStartedWorkflowPreviewTrigger')+export class GettingStartedWorkflowPreviewTriggerDTO {+ @Field(() => String)+ type: string;++ @Field(() => String, { nullable: true })+ databaseEventAction: string | null;++ @Field(() => String)+ title: string;+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview.dto.ts b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview.dto.tsnew file mode 100644index 00000000000..0d58322c868--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview.dto.ts@@ -0,0 +1,17 @@+import { Field, ObjectType } from '@nestjs/graphql';++import { GettingStartedWorkflowPreviewActionDTO } from 'src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview-action.dto';+import { GettingStartedWorkflowPreviewTriggerDTO } from 'src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview-trigger.dto';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';++@ObjectType('GettingStartedWorkflowPreview')+export class GettingStartedWorkflowPreviewDTO {+ @Field(() => GettingStartedStepActionKey)+ stepActionKey: GettingStartedStepActionKey;++ @Field(() => GettingStartedWorkflowPreviewTriggerDTO)+ trigger: GettingStartedWorkflowPreviewTriggerDTO;++ @Field(() => [GettingStartedWorkflowPreviewActionDTO])+ actions: GettingStartedWorkflowPreviewActionDTO[];+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-workflow.dto.ts b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-workflow.dto.tsnew file mode 100644index 00000000000..03bb6e54387--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/getting-started-workflow.dto.ts@@ -0,0 +1,10 @@+import { Field, ObjectType } from '@nestjs/graphql';++@ObjectType('GettingStartedWorkflow')+export class GettingStartedWorkflowDTO {+ @Field(() => String)+ workflowId: string;++ @Field(() => String)+ versionId: string;+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/dtos/update-getting-started.input.ts b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/update-getting-started.input.tsnew file mode 100644index 00000000000..7a93ef6828c--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/dtos/update-getting-started.input.ts@@ -0,0 +1,28 @@+import { Field, InputType } from '@nestjs/graphql';++import { IsBoolean, IsEnum, IsISO8601, IsOptional } from 'class-validator';++import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';++@InputType()+export class UpdateGettingStartedInput {+ @Field(() => GettingStartedStepActionKey, { nullable: true })+ @IsOptional()+ @IsEnum(GettingStartedStepActionKey)+ selectedStepActionKey?: GettingStartedStepActionKey | null;++ @Field(() => String, { nullable: true })+ @IsOptional()+ @IsISO8601()+ snoozedUntil?: string | null;++ @Field(() => Boolean, { nullable: true })+ @IsOptional()+ @IsBoolean()+ isHidden?: boolean | null;++ @Field(() => GettingStartedStepActionKey, { nullable: true })+ @IsOptional()+ @IsEnum(GettingStartedStepActionKey)+ completedStepActionKey?: GettingStartedStepActionKey | null;+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum.ts b/packages/twenty-server/src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum.tsnew file mode 100644index 00000000000..77b526a5fee--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum.ts@@ -0,0 +1,15 @@+import { registerEnumType } from '@nestjs/graphql';++export enum GettingStartedStepActionKey {+ CONNECT_MAILBOX = 'CONNECT_MAILBOX',+ IMPORT_DATA = 'IMPORT_DATA',+ CUSTOMIZE_DATA_MODEL = 'CUSTOMIZE_DATA_MODEL',+ INSTALL_APP = 'INSTALL_APP',+ INVITE_TEAM = 'INVITE_TEAM',+ HANDOVER_DEALS = 'HANDOVER_DEALS',+ FOLLOW_UP_DEALS = 'FOLLOW_UP_DEALS',+}++registerEnumType(GettingStartedStepActionKey, {+ name: 'GettingStartedStepActionKey',+});diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/enums/getting-started-step-kind.enum.ts b/packages/twenty-server/src/engine/core-modules/getting-started/enums/getting-started-step-kind.enum.tsnew file mode 100644index 00000000000..6479bea3bbd--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/enums/getting-started-step-kind.enum.ts@@ -0,0 +1,9 @@+import { registerEnumType } from '@nestjs/graphql';++export enum GettingStartedStepKind {+ CUSTOM = 'CUSTOM',+ PROMPT = 'PROMPT',+ WORKFLOW = 'WORKFLOW',+}++registerEnumType(GettingStartedStepKind, { name: 'GettingStartedStepKind' });diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/filters/getting-started-graphql-api-exception.filter.ts b/packages/twenty-server/src/engine/core-modules/getting-started/filters/getting-started-graphql-api-exception.filter.tsnew file mode 100644index 00000000000..06a9491ad27--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/filters/getting-started-graphql-api-exception.filter.ts@@ -0,0 +1,22 @@+import { Catch, type ExceptionFilter } from '@nestjs/common';++import { assertUnreachable } from 'twenty-shared/utils';++import {+ GettingStartedException,+ GettingStartedExceptionCode,+} from 'src/engine/core-modules/getting-started/getting-started.exception';+import { UserInputError } from 'src/engine/core-modules/graphql/utils/graphql-errors.util';++@Catch(GettingStartedException)+export class GettingStartedGraphqlApiExceptionFilter implements ExceptionFilter {+ catch(exception: GettingStartedException) {+ switch (exception.code) {+ case GettingStartedExceptionCode.INVALID_STEP:+ throw new UserInputError(exception);+ default: {+ assertUnreachable(exception.code);+ }+ }+ }+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/getting-started-workflow.module.ts b/packages/twenty-server/src/engine/core-modules/getting-started/getting-started-workflow.module.tsnew file mode 100644index 00000000000..39d92160398--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/getting-started-workflow.module.ts@@ -0,0 +1,26 @@+import { Module } from '@nestjs/common';++import { CacheLockModule } from 'src/engine/core-modules/cache-lock/cache-lock.module';+import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';+import { GettingStartedWorkflowResolver } from 'src/engine/core-modules/getting-started/getting-started-workflow.resolver';+import { GettingStartedWorkflowWorkspaceService } from 'src/engine/core-modules/getting-started/services/getting-started-workflow.workspace-service';+import { UserVarsModule } from 'src/engine/core-modules/user/user-vars/user-vars.module';+import { CoreWorkflowServicesModule } from 'src/engine/core-modules/workflow/core-workflow-services.module';+import { WorkspaceManyOrAllFlatEntityMapsCacheModule } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.module';+import { PermissionsModule } from 'src/engine/permissions/permissions.module';++@Module({+ imports: [+ CacheLockModule,+ CoreWorkflowServicesModule,+ FeatureFlagModule,+ PermissionsModule,+ UserVarsModule,+ WorkspaceManyOrAllFlatEntityMapsCacheModule,+ ],+ providers: [+ GettingStartedWorkflowWorkspaceService,+ GettingStartedWorkflowResolver,+ ],+})+export class GettingStartedWorkflowModule {}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/getting-started-workflow.resolver.ts b/packages/twenty-server/src/engine/core-modules/getting-started/getting-started-workflow.resolver.tsnew file mode 100644index 00000000000..ac43926dba2--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/getting-started-workflow.resolver.ts@@ -0,0 +1,98 @@+import { UseFilters, UseGuards } from '@nestjs/common';+import { Args, Context, Mutation, Query } from '@nestjs/graphql';++import { PermissionFlagType } from 'twenty-shared/constants';+import { FeatureFlagKey } from 'twenty-shared/types';+import { isDefined } from 'twenty-shared/utils';++import { MetadataResolver } from 'src/engine/api/graphql/graphql-config/decorators/metadata-resolver.decorator';+import { GETTING_STARTED_WORKFLOWS } from 'src/engine/core-modules/getting-started/constants/getting-started-workflows.constant';+import { GettingStartedWorkflowPreviewDTO } from 'src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview.dto';+import { GettingStartedWorkflowDTO } from 'src/engine/core-modules/getting-started/dtos/getting-started-workflow.dto';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import { GettingStartedGraphqlApiExceptionFilter } from 'src/engine/core-modules/getting-started/filters/getting-started-graphql-api-exception.filter';+import { GettingStartedWorkflowWorkspaceService } from 'src/engine/core-modules/getting-started/services/getting-started-workflow.workspace-service';+import { buildGettingStartedWorkflowPreview } from 'src/engine/core-modules/getting-started/utils/build-getting-started-workflow-preview.util';+import { PreventNestToAutoLogGraphqlErrorsFilter } from 'src/engine/core-modules/graphql/filters/prevent-nest-to-auto-log-graphql-errors.filter';+import { I18nService } from 'src/engine/core-modules/i18n/i18n.service';+import { type I18nContext } from 'src/engine/core-modules/i18n/types/i18n-context.type';+import { WorkflowQueryValidationGraphqlApiExceptionFilter } from 'src/engine/core-modules/workflow/filters/workflow-query-validation-graphql-api-exception.filter';+import { WorkflowTriggerGraphqlApiExceptionFilter } from 'src/engine/core-modules/workflow/filters/workflow-trigger-graphql-api-exception.filter';+import { WorkflowVersionValidationGraphqlApiExceptionFilter } from 'src/engine/core-modules/workflow/filters/workflow-version-validation-graphql-api-exception.filter';+import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';+import { AuthUserWorkspaceId } from 'src/engine/decorators/auth/auth-user-workspace-id.decorator';+import { AuthWorkspace } from 'src/engine/decorators/auth/auth-workspace.decorator';+import { AuthPrincipalGuard } from 'src/engine/guards/auth-principal.guard';+import { BillingEnabledGuard } from 'src/engine/guards/billing-enabled.guard';+import { FeatureFlagGuard } from 'src/engine/guards/feature-flag.guard';+import { SettingsPermissionGuard } from 'src/engine/guards/settings-permission.guard';+import { PermissionsGraphqlApiExceptionFilter } from 'src/engine/permissions/utils/permissions-graphql-api-exception.filter';++@MetadataResolver()+@UseGuards(+ AuthPrincipalGuard({+ userSession: {+ standard: true,+ impersonated: true,+ playground: false,+ workspaceAgnostic: false,+ },+ apiKey: false,+ oauthClient: false,+ application: false,+ }),+ BillingEnabledGuard,+ FeatureFlagGuard(FeatureFlagKey.IS_GETTING_STARTED_ENABLED),+ SettingsPermissionGuard(PermissionFlagType.WORKFLOWS),+)+@UseFilters(+ GettingStartedGraphqlApiExceptionFilter,+ PermissionsGraphqlApiExceptionFilter,+ PreventNestToAutoLogGraphqlErrorsFilter,+ WorkflowQueryValidationGraphqlApiExceptionFilter,+ WorkflowTriggerGraphqlApiExceptionFilter,+ WorkflowVersionValidationGraphqlApiExceptionFilter,+)+export class GettingStartedWorkflowResolver {+ constructor(+ private readonly gettingStartedWorkflowWorkspaceService: GettingStartedWorkflowWorkspaceService,+ private readonly i18nService: I18nService,+ ) {}++ @Query(() => [GettingStartedWorkflowPreviewDTO])+ gettingStartedWorkflowPreviews(+ @Context() context: I18nContext,+ ): GettingStartedWorkflowPreviewDTO[] {+ const i18nInstance = this.i18nService.getI18nInstance(context.req.locale);++ return Object.values(GettingStartedStepActionKey).flatMap(+ (stepActionKey) => {+ const gettingStartedWorkflow = GETTING_STARTED_WORKFLOWS[stepActionKey];++ return isDefined(gettingStartedWorkflow)+ ? [+ buildGettingStartedWorkflowPreview({+ stepActionKey,+ gettingStartedWorkflow,+ translate: (descriptor) => i18nInstance._(descriptor),+ }),+ ]+ : [];+ },+ );+ }++ @Mutation(() => GettingStartedWorkflowDTO)+ async prepareGettingStartedWorkflow(+ @AuthWorkspace() workspace: WorkspaceEntity,+ @AuthUserWorkspaceId() userWorkspaceId: string,+ @Args('stepActionKey', { type: () => GettingStartedStepActionKey })+ stepActionKey: GettingStartedStepActionKey,+ ): Promise<GettingStartedWorkflowDTO> {+ return this.gettingStartedWorkflowWorkspaceService.prepareWorkflowOrThrow({+ workspaceId: workspace.id,+ userWorkspaceId,+ stepActionKey,+ });+ }+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/getting-started.exception.ts b/packages/twenty-server/src/engine/core-modules/getting-started/getting-started.exception.tsnew file mode 100644index 00000000000..8f8823c971d--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/getting-started.exception.ts@@ -0,0 +1,34 @@+import { type MessageDescriptor } from '@lingui/core';+import { msg } from '@lingui/core/macro';+import { assertUnreachable } from 'twenty-shared/utils';++import { CustomException } from 'src/utils/custom-exception';++export enum GettingStartedExceptionCode {+ INVALID_STEP = 'INVALID_STEP',+}++const getGettingStartedExceptionUserFriendlyMessage = (+ code: GettingStartedExceptionCode,+) => {+ switch (code) {+ case GettingStartedExceptionCode.INVALID_STEP:+ return msg`This step has no workflow.`;+ default:+ assertUnreachable(code);+ }+};++export class GettingStartedException extends CustomException<GettingStartedExceptionCode> {+ constructor(+ message: string,+ code: GettingStartedExceptionCode,+ { userFriendlyMessage }: { userFriendlyMessage?: MessageDescriptor } = {},+ ) {+ super(message, code, {+ userFriendlyMessage:+ userFriendlyMessage ??+ getGettingStartedExceptionUserFriendlyMessage(code),+ });+ }+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/getting-started.module.ts b/packages/twenty-server/src/engine/core-modules/getting-started/getting-started.module.tsnew file mode 100644index 00000000000..b3fea8a8c67--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/getting-started.module.ts@@ -0,0 +1,32 @@+import { Module } from '@nestjs/common';+import { TypeOrmModule } from '@nestjs/typeorm';++import { MarketplaceModule } from 'src/engine/core-modules/application/application-marketplace/marketplace.module';+import { ApplicationEntity } from 'src/engine/core-modules/application/application.entity';+import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';+import { GettingStartedResolver } from 'src/engine/core-modules/getting-started/getting-started.resolver';+import { GettingStartedService } from 'src/engine/core-modules/getting-started/services/getting-started.service';+import { KeyValuePairModule } from 'src/engine/core-modules/key-value-pair/key-value-pair.module';+import { UserVarsModule } from 'src/engine/core-modules/user/user-vars/user-vars.module';+import { ConnectedAccountMetadataModule } from 'src/engine/metadata-modules/connected-account/connected-account-metadata.module';+import { PermissionsModule } from 'src/engine/permissions/permissions.module';+import { provideWorkspaceScopedRepository } from 'src/engine/twenty-orm/workspace-scoped-repository/provide-workspace-scoped-repository';++@Module({+ imports: [+ UserVarsModule,+ ConnectedAccountMetadataModule,+ FeatureFlagModule,+ KeyValuePairModule,+ MarketplaceModule,+ PermissionsModule,+ TypeOrmModule.forFeature([ApplicationEntity]),+ ],+ providers: [+ GettingStartedService,+ GettingStartedResolver,+ provideWorkspaceScopedRepository(ApplicationEntity),+ ],+ exports: [GettingStartedService],+})+export class GettingStartedModule {}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/getting-started.resolver.ts b/packages/twenty-server/src/engine/core-modules/getting-started/getting-started.resolver.tsnew file mode 100644index 00000000000..a102b5b7b64--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/getting-started.resolver.ts@@ -0,0 +1,108 @@+import { UseFilters, UseGuards, UsePipes } from '@nestjs/common';+import { Args, Context, Mutation, Query } from '@nestjs/graphql';++import { FeatureFlagKey } from 'twenty-shared/types';++import { MetadataResolver } from 'src/engine/api/graphql/graphql-config/decorators/metadata-resolver.decorator';+import { type AuthContextUser } from 'src/engine/core-modules/auth/types/auth-context.type';+import { GettingStartedProgressDTO } from 'src/engine/core-modules/getting-started/dtos/getting-started-progress.dto';+import { UpdateGettingStartedInput } from 'src/engine/core-modules/getting-started/dtos/update-getting-started.input';+import { GettingStartedService } from 'src/engine/core-modules/getting-started/services/getting-started.service';+import { type GettingStartedProgress } from 'src/engine/core-modules/getting-started/types/getting-started-progress.type';+import { buildGettingStartedStepDefinition } from 'src/engine/core-modules/getting-started/utils/build-getting-started-step-definition.util';+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 { I18nService } from 'src/engine/core-modules/i18n/i18n.service';+import { type I18nContext } from 'src/engine/core-modules/i18n/types/i18n-context.type';+import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';+import { AuthUserWorkspaceId } from 'src/engine/decorators/auth/auth-user-workspace-id.decorator';+import { AuthUser } from 'src/engine/decorators/auth/auth-user.decorator';+import { AuthWorkspace } from 'src/engine/decorators/auth/auth-workspace.decorator';+import { AuthPrincipalGuard } from 'src/engine/guards/auth-principal.guard';+import { BillingEnabledGuard } from 'src/engine/guards/billing-enabled.guard';+import { FeatureFlagGuard } from 'src/engine/guards/feature-flag.guard';+import { NoPermissionGuard } from 'src/engine/guards/no-permission.guard';++@MetadataResolver()+@UseGuards(+ AuthPrincipalGuard({+ userSession: {+ standard: true,+ impersonated: true,+ playground: false,+ workspaceAgnostic: false,+ },+ apiKey: false,+ oauthClient: false,+ application: false,+ }),+ BillingEnabledGuard,+ FeatureFlagGuard(FeatureFlagKey.IS_GETTING_STARTED_ENABLED),+ NoPermissionGuard,+)+@UsePipes(ResolverValidationPipe)+@UseFilters(PreventNestToAutoLogGraphqlErrorsFilter)+export class GettingStartedResolver {+ constructor(+ private readonly gettingStartedService: GettingStartedService,+ private readonly i18nService: I18nService,+ ) {}++ @Query(() => GettingStartedProgressDTO)+ async gettingStartedProgress(+ @AuthUser() user: AuthContextUser,+ @AuthWorkspace() workspace: WorkspaceEntity,+ @AuthUserWorkspaceId() userWorkspaceId: string,+ @Context() context: I18nContext,+ ): Promise<GettingStartedProgressDTO> {+ const progress = await this.gettingStartedService.getProgress({+ userId: user.id,+ userEmail: user.email,+ workspaceId: workspace.id,+ userWorkspaceId,+ });++ return this.buildProgressDTO({ progress, locale: context.req.locale });+ }++ @Mutation(() => GettingStartedProgressDTO)+ async updateGettingStarted(+ @AuthUser() user: AuthContextUser,+ @AuthWorkspace() workspace: WorkspaceEntity,+ @AuthUserWorkspaceId() userWorkspaceId: string,+ @Args('input') input: UpdateGettingStartedInput,+ @Context() context: I18nContext,+ ): Promise<GettingStartedProgressDTO> {+ const progress = await this.gettingStartedService.updateProgress({+ userId: user.id,+ userEmail: user.email,+ workspaceId: workspace.id,+ userWorkspaceId,+ input,+ });++ return this.buildProgressDTO({ progress, locale: context.req.locale });+ }++ private buildProgressDTO({+ progress,+ locale,+ }: {+ progress: GettingStartedProgress;+ locale: I18nContext['req']['locale'];+ }): GettingStartedProgressDTO {+ const i18nInstance = this.i18nService.getI18nInstance(locale);+ const { companyEnrichment, stepActionKeys, ...progressFields } = progress;++ return {+ ...progressFields,+ steps: stepActionKeys.map((stepActionKey) =>+ buildGettingStartedStepDefinition({+ stepActionKey,+ companyEnrichment,+ translate: (descriptor) => i18nInstance._(descriptor),+ }),+ ),+ };+ }+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/services/getting-started-workflow.workspace-service.ts b/packages/twenty-server/src/engine/core-modules/getting-started/services/getting-started-workflow.workspace-service.tsnew file mode 100644index 00000000000..8e834e46445--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/services/getting-started-workflow.workspace-service.ts@@ -0,0 +1,129 @@+import { Injectable } from '@nestjs/common';++import { isDefined } from 'twenty-shared/utils';++import { CacheLockService } from 'src/engine/core-modules/cache-lock/cache-lock.service';+import { GETTING_STARTED_WORKFLOWS } from 'src/engine/core-modules/getting-started/constants/getting-started-workflows.constant';+import { type GettingStartedWorkflowDTO } from 'src/engine/core-modules/getting-started/dtos/getting-started-workflow.dto';+import { type GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import {+ GettingStartedException,+ GettingStartedExceptionCode,+} from 'src/engine/core-modules/getting-started/getting-started.exception';+import {+ GETTING_STARTED_WORKFLOW_USER_VARIABLE_KEY_PREFIX,+ type GettingStartedKeyValueTypeMap,+} from 'src/engine/core-modules/getting-started/types/getting-started-key-value-type-map.type';+import { type GettingStartedWorkflow } from 'src/engine/core-modules/getting-started/types/getting-started-workflow.type';+import { buildGettingStartedWorkflowContent } from 'src/engine/core-modules/getting-started/utils/build-getting-started-workflow-content.util';+import { UserVarsService } from 'src/engine/core-modules/user/user-vars/services/user-vars.service';+import { CoreWorkflowListService } from 'src/engine/core-modules/workflow/services/core-workflow-list.service';+import { CoreWorkflowMutationWorkspaceService } from 'src/engine/core-modules/workflow/services/core-workflow-mutation.workspace-service';+import { WorkspaceManyOrAllFlatEntityMapsCacheService } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.service';++@Injectable()+export class GettingStartedWorkflowWorkspaceService {+ constructor(+ private readonly userVarsService: UserVarsService<GettingStartedKeyValueTypeMap>,+ private readonly cacheLockService: CacheLockService,+ private readonly coreWorkflowListService: CoreWorkflowListService,+ private readonly coreWorkflowMutationWorkspaceService: CoreWorkflowMutationWorkspaceService,+ private readonly flatEntityMapsCacheService: WorkspaceManyOrAllFlatEntityMapsCacheService,+ ) {}++ async prepareWorkflowOrThrow({+ workspaceId,+ userWorkspaceId,+ stepActionKey,+ }: {+ workspaceId: string;+ userWorkspaceId: string;+ stepActionKey: GettingStartedStepActionKey;+ }): Promise<GettingStartedWorkflowDTO> {+ const gettingStartedWorkflow = GETTING_STARTED_WORKFLOWS[stepActionKey];++ if (!isDefined(gettingStartedWorkflow)) {+ throw new GettingStartedException(+ `Step ${stepActionKey} has no workflow`,+ GettingStartedExceptionCode.INVALID_STEP,+ );+ }++ return this.cacheLockService.withLock(+ async () => {+ const savedWorkflow = await this.userVarsService.get({+ workspaceId,+ key: `${GETTING_STARTED_WORKFLOW_USER_VARIABLE_KEY_PREFIX}${stepActionKey}`,+ });++ const savedCoreWorkflow = isDefined(savedWorkflow)+ ? await this.coreWorkflowListService.findOneById({+ workspaceId,+ userWorkspaceId,+ coreWorkflowId: savedWorkflow.workflowId,+ })+ : null;++ if (isDefined(savedCoreWorkflow)) {+ return savedWorkflow;+ }++ return this.createWorkflowDraft({+ workspaceId,+ userWorkspaceId,+ stepActionKey,+ gettingStartedWorkflow,+ });+ },+ `getting-started-workflow:${workspaceId}:${stepActionKey}`,+ { ttl: 30_000 },+ );+ }++ private async createWorkflowDraft({+ workspaceId,+ userWorkspaceId,+ stepActionKey,+ gettingStartedWorkflow,+ }: {+ workspaceId: string;+ userWorkspaceId: string;+ stepActionKey: GettingStartedStepActionKey;+ gettingStartedWorkflow: GettingStartedWorkflow;+ }): Promise<GettingStartedWorkflowDTO> {+ const { flatObjectMetadataMaps, flatFieldMetadataMaps } =+ await this.flatEntityMapsCacheService.getOrRecomputeManyOrAllFlatEntityMaps(+ {+ workspaceId,+ flatMapsKeys: ['flatObjectMetadataMaps', 'flatFieldMetadataMaps'],+ },+ );++ const { coreWorkflow, coreWorkflowVersionId } =+ await this.coreWorkflowMutationWorkspaceService.createWorkflowWithContent(+ {+ workspaceId,+ userWorkspaceId,+ ...buildGettingStartedWorkflowContent({+ gettingStartedWorkflow,+ flatObjectMetadataMaps,+ flatFieldMetadataMaps,+ }),+ edges: [],+ },+ );++ const workflow = {+ workflowId: coreWorkflow.id,+ versionId: coreWorkflowVersionId,+ };++ await this.userVarsService.set({+ workspaceId,+ key: `${GETTING_STARTED_WORKFLOW_USER_VARIABLE_KEY_PREFIX}${stepActionKey}`,+ value: workflow,+ });++ return workflow;+ }+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/services/getting-started.service.ts b/packages/twenty-server/src/engine/core-modules/getting-started/services/getting-started.service.tsnew file mode 100644index 00000000000..8386f996a3a--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/services/getting-started.service.ts@@ -0,0 +1,351 @@+import { Injectable } from '@nestjs/common';++import { isNonEmptyString, isUndefined } from '@sniptt/guards';+import { GETTING_STARTED_APP_UNIVERSAL_IDENTIFIERS } from 'twenty-shared/application';+import { EmailOperation } from 'twenty-shared/types';+import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';+import { type WorkspaceCompanyEnrichment } from 'twenty-shared/workspace';+import { In } from 'typeorm';++import { MarketplaceQueryService } from 'src/engine/core-modules/application/application-marketplace/marketplace-query.service';+import { ApplicationEntity } from 'src/engine/core-modules/application/application.entity';+import {+ COMPANY_ENRICHMENT_ATTEMPT_KEY,+ type CompanyEnrichmentAttemptKeyValueTypeMap,+} from 'src/engine/core-modules/company-enrichment/types/company-enrichment-attempt-key-value.type';+import {+ COMPANY_ENRICHMENT_KEY,+ type CompanyEnrichmentKeyValueTypeMap,+} from 'src/engine/core-modules/company-enrichment/types/company-enrichment-key-value.type';+import { GETTING_STARTED_STEP_ACTION_KEYS_BY_PROFILE } from 'src/engine/core-modules/getting-started/constants/getting-started-step-action-keys-by-profile.constant';+import { type UpdateGettingStartedInput } from 'src/engine/core-modules/getting-started/dtos/update-getting-started.input';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import {+ GETTING_STARTED_COMPLETED_STEP_USER_VARIABLE_KEY_PREFIX,+ GETTING_STARTED_HIDDEN_USER_VARIABLE_KEY,+ GETTING_STARTED_SELECTED_STEP_USER_VARIABLE_KEY,+ GETTING_STARTED_SNOOZED_UNTIL_USER_VARIABLE_KEY,+ GETTING_STARTED_STEP_ACTION_KEYS_USER_VARIABLE_KEY,+ type GettingStartedKeyValueTypeMap,+} from 'src/engine/core-modules/getting-started/types/getting-started-key-value-type-map.type';+import { type GettingStartedProgress } from 'src/engine/core-modules/getting-started/types/getting-started-progress.type';+import { filterGettingStartedStepActionKeys } from 'src/engine/core-modules/getting-started/utils/filter-getting-started-step-action-keys.util';+import { getGettingStartedProfile } from 'src/engine/core-modules/getting-started/utils/get-getting-started-profile.util';+import { isCompanyEnrichmentFinal } from 'src/engine/core-modules/getting-started/utils/is-company-enrichment-final.util';+import { isGettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/utils/is-getting-started-step-action-key.util';+import { KeyValuePairType } from 'src/engine/core-modules/key-value-pair/key-value-pair.entity';+import { KeyValuePairService } from 'src/engine/core-modules/key-value-pair/key-value-pair.service';+import { UserVarsService } from 'src/engine/core-modules/user/user-vars/services/user-vars.service';+import { ConnectedAccountMetadataService } from 'src/engine/metadata-modules/connected-account/connected-account-metadata.service';+import { PermissionsService } from 'src/engine/permissions/permissions.service';+import { InjectWorkspaceScopedRepository } from 'src/engine/twenty-orm/workspace-scoped-repository/inject-workspace-scoped-repository.decorator';+import { WorkspaceScopedRepository } from 'src/engine/twenty-orm/workspace-scoped-repository/workspace-scoped-repository';++type WorkspaceEnrichmentKeyValueTypeMap = CompanyEnrichmentKeyValueTypeMap &+ CompanyEnrichmentAttemptKeyValueTypeMap;++type CompanyEnrichmentAttempt =+ CompanyEnrichmentAttemptKeyValueTypeMap[typeof COMPANY_ENRICHMENT_ATTEMPT_KEY];++type GettingStartedScope = {+ userId: string;+ userEmail: string;+ workspaceId: string;+ userWorkspaceId: string;+};++@Injectable()+export class GettingStartedService {+ constructor(+ private readonly userVarsService: UserVarsService<GettingStartedKeyValueTypeMap>,+ private readonly connectedAccountMetadataService: ConnectedAccountMetadataService,+ private readonly permissionsService: PermissionsService,+ private readonly marketplaceQueryService: MarketplaceQueryService,+ private readonly keyValuePairService: KeyValuePairService<WorkspaceEnrichmentKeyValueTypeMap>,+ @InjectWorkspaceScopedRepository(ApplicationEntity)+ private readonly applicationRepository: WorkspaceScopedRepository<ApplicationEntity>,+ ) {}++ async getProgress({+ userId,+ userEmail,+ workspaceId,+ userWorkspaceId,+ }: GettingStartedScope): Promise<GettingStartedProgress> {+ const [+ userVars,+ { permissionFlags },+ ownSendingMailbox,+ [companyEnrichmentKeyValuePair],+ [companyEnrichmentAttemptKeyValuePair],+ featuredApps,+ ] = await Promise.all([+ this.userVarsService.getAll({ userId, workspaceId }),+ this.permissionsService.getUserWorkspacePermissions({+ userWorkspaceId,+ workspaceId,+ }),+ this.findOwnSendingMailbox({ workspaceId, userWorkspaceId }),+ this.keyValuePairService.get<typeof COMPANY_ENRICHMENT_KEY>({+ userId: null,+ workspaceId,+ type: KeyValuePairType.CONFIG_VARIABLE,+ key: COMPANY_ENRICHMENT_KEY,+ }),+ this.keyValuePairService.get<typeof COMPANY_ENRICHMENT_ATTEMPT_KEY>({+ userId: null,+ workspaceId,+ type: KeyValuePairType.CONFIG_VARIABLE,+ key: COMPANY_ENRICHMENT_ATTEMPT_KEY,+ }),+ this.marketplaceQueryService.findManyMarketplaceApps({+ universalIdentifiers: [...GETTING_STARTED_APP_UNIVERSAL_IDENTIFIERS],+ isListed: true,+ }),+ ]);++ const companyEnrichment = companyEnrichmentKeyValuePair?.value ?? null;++ const assignedStepActionKeys = await this.getOrSaveAssignedStepActionKeys({+ userId,+ userEmail,+ workspaceId,+ savedStepActionKeys: userVars.get(+ GETTING_STARTED_STEP_ACTION_KEYS_USER_VARIABLE_KEY,+ ),+ companyEnrichment,+ companyEnrichmentAttempt:+ companyEnrichmentAttemptKeyValuePair?.value ?? null,+ });++ const stepActionKeys = filterGettingStartedStepActionKeys({+ stepActionKeys: assignedStepActionKeys,+ permissionFlags,+ hasSendingMailbox: isDefined(ownSendingMailbox),+ hasFeaturedApp: isNonEmptyArray(featuredApps),+ });++ const isSavedAsCompleted = (stepActionKey: GettingStartedStepActionKey) =>+ isDefined(+ userVars.get(+ `${GETTING_STARTED_COMPLETED_STEP_USER_VARIABLE_KEY_PREFIX}${stepActionKey}`,+ ),+ );++ const alreadyDoneStepActionKeys = await this.findAlreadyDoneStepActionKeys({+ workspaceId,+ userWorkspaceId,+ stepActionKeys: stepActionKeys.filter(+ (stepActionKey) => !isSavedAsCompleted(stepActionKey),+ ),+ });++ await Promise.all(+ alreadyDoneStepActionKeys.map((stepActionKey) =>+ this.completeStep({ userId, workspaceId, stepActionKey }),+ ),+ );++ const completedStepActionKeys = stepActionKeys.filter(+ (stepActionKey) =>+ isSavedAsCompleted(stepActionKey) ||+ alreadyDoneStepActionKeys.includes(stepActionKey),+ );++ const savedSelectedStepActionKey = userVars.get(+ GETTING_STARTED_SELECTED_STEP_USER_VARIABLE_KEY,+ );+ const snoozedUntil = userVars.get(+ GETTING_STARTED_SNOOZED_UNTIL_USER_VARIABLE_KEY,+ );++ return {+ stepActionKeys,+ companyEnrichment,+ completedStepActionKeys,+ selectedStepActionKey:+ stepActionKeys.find(+ (stepActionKey) => stepActionKey === savedSelectedStepActionKey,+ ) ?? null,+ snoozedUntil: isNonEmptyString(snoozedUntil) ? snoozedUntil : null,+ isHidden: userVars.get(GETTING_STARTED_HIDDEN_USER_VARIABLE_KEY) ?? false,+ };+ }++ async updateProgress({+ userId,+ userEmail,+ workspaceId,+ userWorkspaceId,+ input,+ }: GettingStartedScope & {+ input: UpdateGettingStartedInput;+ }): Promise<GettingStartedProgress> {+ if (isDefined(input.selectedStepActionKey)) {+ await this.userVarsService.set({+ userId,+ workspaceId,+ key: GETTING_STARTED_SELECTED_STEP_USER_VARIABLE_KEY,+ value: input.selectedStepActionKey,+ });+ }++ if (!isUndefined(input.snoozedUntil)) {+ await this.userVarsService.set({+ userId,+ workspaceId,+ key: GETTING_STARTED_SNOOZED_UNTIL_USER_VARIABLE_KEY,+ value: input.snoozedUntil,+ });+ }++ if (isDefined(input.isHidden)) {+ await this.userVarsService.set({+ userId,+ workspaceId,+ key: GETTING_STARTED_HIDDEN_USER_VARIABLE_KEY,+ value: input.isHidden,+ });+ }++ if (isDefined(input.completedStepActionKey)) {+ await this.completeStep({+ userId,+ workspaceId,+ stepActionKey: input.completedStepActionKey,+ });+ }++ return this.getProgress({+ userId,+ userEmail,+ workspaceId,+ userWorkspaceId,+ });+ }++ async completeStep({+ userId,+ workspaceId,+ stepActionKey,+ }: {+ userId: string;+ workspaceId: string;+ stepActionKey: GettingStartedStepActionKey;+ }): Promise<void> {+ await this.userVarsService.setIfNotExists({+ userId,+ workspaceId,+ key: `${GETTING_STARTED_COMPLETED_STEP_USER_VARIABLE_KEY_PREFIX}${stepActionKey}`,+ value: { completedAt: new Date().toISOString() },+ });+ }++ private async getOrSaveAssignedStepActionKeys({+ userId,+ userEmail,+ workspaceId,+ savedStepActionKeys,+ companyEnrichment,+ companyEnrichmentAttempt,+ }: {+ userId: string;+ userEmail: string;+ workspaceId: string;+ savedStepActionKeys: string[] | undefined;+ companyEnrichment: WorkspaceCompanyEnrichment | null;+ companyEnrichmentAttempt: CompanyEnrichmentAttempt | null;+ }): Promise<GettingStartedStepActionKey[]> {+ if (isDefined(savedStepActionKeys)) {+ return savedStepActionKeys.filter(isGettingStartedStepActionKey);+ }++ const profile = getGettingStartedProfile({ userEmail, companyEnrichment });+ const stepActionKeys = GETTING_STARTED_STEP_ACTION_KEYS_BY_PROFILE[profile];++ if (+ profile === 'PERSONAL' ||+ isCompanyEnrichmentFinal({ companyEnrichment, companyEnrichmentAttempt })+ ) {+ await this.userVarsService.setIfNotExists({+ userId,+ workspaceId,+ key: GETTING_STARTED_STEP_ACTION_KEYS_USER_VARIABLE_KEY,+ value: stepActionKeys,+ });+ }++ return stepActionKeys;+ }++ private async findAlreadyDoneStepActionKeys({+ workspaceId,+ userWorkspaceId,+ stepActionKeys,+ }: {+ workspaceId: string;+ userWorkspaceId: string;+ stepActionKeys: GettingStartedStepActionKey[];+ }): Promise<GettingStartedStepActionKey[]> {+ const [hasConnectedMailbox, hasInstalledFeaturedApp] = await Promise.all([+ stepActionKeys.includes(GettingStartedStepActionKey.CONNECT_MAILBOX)+ ? this.hasOwnDraftingMailbox({ workspaceId, userWorkspaceId })+ : false,+ stepActionKeys.includes(GettingStartedStepActionKey.INSTALL_APP)+ ? this.hasInstalledFeaturedApp(workspaceId)+ : false,+ ]);++ return stepActionKeys.filter(+ (stepActionKey) =>+ (stepActionKey === GettingStartedStepActionKey.CONNECT_MAILBOX &&+ hasConnectedMailbox) ||+ (stepActionKey === GettingStartedStepActionKey.INSTALL_APP &&+ hasInstalledFeaturedApp),+ );+ }++ private async findOwnSendingMailbox({+ workspaceId,+ userWorkspaceId,+ }: {+ workspaceId: string;+ userWorkspaceId: string;+ }) {+ const mailboxes =+ await this.connectedAccountMetadataService.findMailboxesUsableByCaller({+ workspaceId,+ userWorkspaceId,+ operation: EmailOperation.SEND,+ });++ return mailboxes.find((mailbox) => mailbox.scope === 'USER');+ }++ private async hasOwnDraftingMailbox({+ workspaceId,+ userWorkspaceId,+ }: {+ workspaceId: string;+ userWorkspaceId: string;+ }): Promise<boolean> {+ const mailboxes =+ await this.connectedAccountMetadataService.findMailboxesUsableByCaller({+ workspaceId,+ userWorkspaceId,+ operation: EmailOperation.DRAFT,+ });++ return mailboxes.some(+ (mailbox) => mailbox.userWorkspaceId === userWorkspaceId,+ );+ }++ private hasInstalledFeaturedApp(workspaceId: string): Promise<boolean> {+ return this.applicationRepository.exists(workspaceId, {+ where: {+ universalIdentifier: In(GETTING_STARTED_APP_UNIVERSAL_IDENTIFIERS),+ },+ });+ }+}diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-key-value-type-map.type.ts b/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-key-value-type-map.type.tsnew file mode 100644index 00000000000..1628f78ca05--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-key-value-type-map.type.ts@@ -0,0 +1,32 @@+import { type GettingStartedWorkflowDTO } from 'src/engine/core-modules/getting-started/dtos/getting-started-workflow.dto';+import { type GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';++export const GETTING_STARTED_STEP_ACTION_KEYS_USER_VARIABLE_KEY =+ 'GETTING_STARTED_STEP_ACTION_KEYS';+export const GETTING_STARTED_COMPLETED_STEP_USER_VARIABLE_KEY_PREFIX =+ 'GETTING_STARTED_COMPLETED_';+export const GETTING_STARTED_SELECTED_STEP_USER_VARIABLE_KEY =+ 'GETTING_STARTED_SELECTED_STEP';+export const GETTING_STARTED_SNOOZED_UNTIL_USER_VARIABLE_KEY =+ 'GETTING_STARTED_SNOOZED_UNTIL';+export const GETTING_STARTED_HIDDEN_USER_VARIABLE_KEY =+ 'GETTING_STARTED_HIDDEN';+export const GETTING_STARTED_WORKFLOW_USER_VARIABLE_KEY_PREFIX =+ 'GETTING_STARTED_WORKFLOW_';++export type GettingStartedKeyValueTypeMap = {+ [+ Key in `${typeof GETTING_STARTED_COMPLETED_STEP_USER_VARIABLE_KEY_PREFIX}${GettingStartedStepActionKey}`+ ]: {+ completedAt: string;+ };+} & {+ [+ Key in `${typeof GETTING_STARTED_WORKFLOW_USER_VARIABLE_KEY_PREFIX}${GettingStartedStepActionKey}`+ ]: GettingStartedWorkflowDTO;+} & {+ [GETTING_STARTED_STEP_ACTION_KEYS_USER_VARIABLE_KEY]: string[];+ [GETTING_STARTED_SELECTED_STEP_USER_VARIABLE_KEY]: GettingStartedStepActionKey;+ [GETTING_STARTED_SNOOZED_UNTIL_USER_VARIABLE_KEY]: string | null;+ [GETTING_STARTED_HIDDEN_USER_VARIABLE_KEY]: boolean;+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-profile.type.ts b/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-profile.type.tsnew file mode 100644index 00000000000..aa0fec14720--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-profile.type.ts@@ -0,0 +1 @@+export type GettingStartedProfile = 'PERSONAL' | 'SMALL_TEAM' | 'TEAM';diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-progress.type.ts b/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-progress.type.tsnew file mode 100644index 00000000000..15bc0a8bb30--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-progress.type.ts@@ -0,0 +1,12 @@+import { type GettingStartedProgressDTO } from 'src/engine/core-modules/getting-started/dtos/getting-started-progress.dto';+import { type WorkspaceCompanyEnrichment } from 'twenty-shared/workspace';++import { type GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';++export type GettingStartedProgress = Omit<+ GettingStartedProgressDTO,+ 'steps'+> & {+ stepActionKeys: GettingStartedStepActionKey[];+ companyEnrichment: WorkspaceCompanyEnrichment | null;+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-step-content.type.ts b/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-step-content.type.tsnew file mode 100644index 00000000000..7760f78c26b--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-step-content.type.ts@@ -0,0 +1,16 @@+import { type MessageDescriptor } from '@lingui/core';+import { type WorkspaceCompanyEnrichment } from 'twenty-shared/workspace';++export type GettingStartedStepContent = {+ title: MessageDescriptor;+ doneTitle: MessageDescriptor;+ description: MessageDescriptor;+ icon: string;+ iconColor: string;+ prompt?: {+ label: MessageDescriptor;+ getText: (+ companyEnrichment: WorkspaceCompanyEnrichment | null,+ ) => MessageDescriptor;+ };+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-workflow.type.ts b/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-workflow.type.tsnew file mode 100644index 00000000000..4624880beab--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/types/getting-started-workflow.type.ts@@ -0,0 +1,8 @@+import { type MessageDescriptor } from '@lingui/core';+import { type WorkflowManifest } from 'twenty-shared/application';++export type GettingStartedWorkflow = {+ manifest: WorkflowManifest;+ triggerTitle: MessageDescriptor;+ stepTitles: Partial<Record<string, MessageDescriptor>>;+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/build-getting-started-step-definition.util.spec.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/build-getting-started-step-definition.util.spec.tsnew file mode 100644index 00000000000..ed948e0e1e8--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/build-getting-started-step-definition.util.spec.ts@@ -0,0 +1,104 @@+import { setupI18n } from '@lingui/core';+import { compileMessage } from '@lingui/message-utils/compileMessage';++import { GettingStartedStepKind } from 'src/engine/core-modules/getting-started/enums/getting-started-step-kind.enum';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import { buildGettingStartedStepDefinition } from 'src/engine/core-modules/getting-started/utils/build-getting-started-step-definition.util';++const translate = (descriptor: { message?: string }) =>+ descriptor.message ?? '';++const i18n = setupI18n();++i18n.setMessagesCompiler(compileMessage);+i18n.load('en', {});+i18n.activate('en');++describe('buildGettingStartedStepDefinition', () => {+ it('should define a step with a workflow template as a workflow step', () => {+ expect(+ buildGettingStartedStepDefinition({+ stepActionKey: GettingStartedStepActionKey.HANDOVER_DEALS,+ companyEnrichment: null,+ translate,+ }),+ ).toEqual({+ actionKey: GettingStartedStepActionKey.HANDOVER_DEALS,+ kind: GettingStartedStepKind.WORKFLOW,+ title: 'Hand over won deals',+ doneTitle: 'Workflow enabled',+ description: 'Start the handover when a deal is won.',+ icon: 'IconSettingsAutomation',+ iconColor: 'gray',+ promptLabel: null,+ prompt: null,+ });+ });++ it('should define a step with a prompt as a prompt step', () => {+ expect(+ buildGettingStartedStepDefinition({+ stepActionKey: GettingStartedStepActionKey.FOLLOW_UP_DEALS,+ companyEnrichment: null,+ translate,+ }),+ ).toMatchObject({+ kind: GettingStartedStepKind.PROMPT,+ promptLabel: 'Follow-up instructions',+ prompt:+ 'Every Monday, draft a follow-up email for each deal closing in the next 30 days.',+ });+ });++ it('should fill the data model prompt from the company enrichment', () => {+ expect(+ buildGettingStartedStepDefinition({+ stepActionKey: GettingStartedStepActionKey.CUSTOMIZE_DATA_MODEL,+ companyEnrichment: {+ domain: 'acme.com',+ enrichedAt: '2026-10-29T12:00:00.000Z',+ name: 'Acme',+ website: 'acme.com',+ industry: 'computer software',+ employeeCount: 40,+ size: null,+ founded: null,+ headline: null,+ summary: null,+ tags: [],+ locality: null,+ region: null,+ country: null,+ },+ translate: (descriptor) => i18n._(descriptor),+ }).prompt,+ ).toBe(+ "We're Acme, a company in computer software. Look at the data I imported and suggest the objects, fields and views we need to run our business. Ask me before creating anything.",+ );+ });++ it('should fall back to a generic data model prompt without enrichment', () => {+ expect(+ buildGettingStartedStepDefinition({+ stepActionKey: GettingStartedStepActionKey.CUSTOMIZE_DATA_MODEL,+ companyEnrichment: null,+ translate: (descriptor) => i18n._(descriptor),+ }).prompt,+ ).toBe(+ 'Look at the data I imported and suggest the objects, fields and views I need to run my business. Ask me what I want to track before creating anything.',+ );+ });++ it('should define any other step as a custom step', () => {+ expect(+ buildGettingStartedStepDefinition({+ stepActionKey: GettingStartedStepActionKey.CONNECT_MAILBOX,+ companyEnrichment: null,+ translate,+ }),+ ).toMatchObject({+ kind: GettingStartedStepKind.CUSTOM,+ prompt: null,+ });+ });+});diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/build-getting-started-workflow-content.util.spec.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/build-getting-started-workflow-content.util.spec.tsnew file mode 100644index 00000000000..804c44cfd05--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/build-getting-started-workflow-content.util.spec.ts@@ -0,0 +1,123 @@+import { PermissionFlagType } from 'twenty-shared/constants';+import { isDefined } from 'twenty-shared/utils';++import { GETTING_STARTED_STEP_PERMISSION_FLAGS } from 'src/engine/core-modules/getting-started/constants/getting-started-step-permission-flags.constant';+import { GETTING_STARTED_WORKFLOWS } from 'src/engine/core-modules/getting-started/constants/getting-started-workflows.constant';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import { buildGettingStartedWorkflowContent } from 'src/engine/core-modules/getting-started/utils/build-getting-started-workflow-content.util';+import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant';+import { evaluateStepFilters } from 'src/modules/workflow/workflow-executor/workflow-actions/filter/utils/evaluate-step-filters.util';++const { flatObjectMetadataMaps, flatFieldMetadataMaps } =+ computeTwentyStandardApplicationAllFlatEntityMaps({+ now: '2026-01-01T00:00:00Z',+ workspaceId: '20202020-1111-4111-8111-111111111111',+ twentyStandardApplicationId: '20202020-2222-4222-8222-222222222222',+ }).allFlatEntityMaps;++const GETTING_STARTED_WORKFLOW_ENTRIES = Object.values(+ GettingStartedStepActionKey,+).flatMap((stepActionKey) => {+ const gettingStartedWorkflow = GETTING_STARTED_WORKFLOWS[stepActionKey];++ return isDefined(gettingStartedWorkflow)+ ? [{ stepActionKey, gettingStartedWorkflow }]+ : [];+});++describe('buildGettingStartedWorkflowContent', () => {+ it.each(GETTING_STARTED_WORKFLOW_ENTRIES)(+ 'should build the $stepActionKey workflow from the standard metadata',+ ({ stepActionKey, gettingStartedWorkflow }) => {+ const { trigger, steps } = buildGettingStartedWorkflowContent({+ gettingStartedWorkflow,+ flatObjectMetadataMaps,+ flatFieldMetadataMaps,+ });++ expect(trigger.name).toBe(gettingStartedWorkflow.triggerTitle.message);+ expect(steps.map((workflowStep) => workflowStep.id)).toEqual(+ gettingStartedWorkflow.manifest.version.steps.map(+ (manifestStep) => manifestStep.universalIdentifier,+ ),+ );+ expect(GETTING_STARTED_STEP_PERMISSION_FLAGS[stepActionKey]).toEqual([+ PermissionFlagType.WORKFLOWS,+ ]);+ },+ );++ it.each(GETTING_STARTED_WORKFLOW_ENTRIES)(+ 'should chain the $stepActionKey steps in order and title only its own steps',+ ({ gettingStartedWorkflow }) => {+ const { trigger, steps } = gettingStartedWorkflow.manifest.version;+ const stepUniversalIdentifiers = steps.map(+ (manifestStep) => manifestStep.universalIdentifier,+ );++ expect(trigger.nextStepIds).toEqual(stepUniversalIdentifiers.slice(0, 1));+ steps.forEach((manifestStep, index) => {+ expect(manifestStep.nextStepIds).toEqual(+ stepUniversalIdentifiers.slice(index + 1, index + 2),+ );+ });+ const titledStepUniversalIdentifiers = Object.keys(+ gettingStartedWorkflow.stepTitles,+ );++ expect(titledStepUniversalIdentifiers.length).toBeGreaterThan(0);+ titledStepUniversalIdentifiers.forEach(+ (titledStepUniversalIdentifier) => {+ expect(+ steps.find(+ (manifestStep) =>+ manifestStep.universalIdentifier ===+ titledStepUniversalIdentifier,+ )?.name,+ ).toBe(+ gettingStartedWorkflow.stepTitles[titledStepUniversalIdentifier]+ ?.message,+ );+ },+ );+ },+ );++ it.each([+ { before: 'PROPOSAL', after: 'CUSTOMER', expected: true },+ { before: 'PROPOSAL', after: 'PROPOSAL', expected: false },+ ])(+ 'should start the handover from $before to $after: $expected',+ ({ before, after, expected }) => {+ const handoverWorkflow =+ GETTING_STARTED_WORKFLOWS[GettingStartedStepActionKey.HANDOVER_DEALS];++ if (!isDefined(handoverWorkflow)) {+ throw new Error('The handover step has no workflow');+ }++ const { trigger } = handoverWorkflow.manifest.version;++ if (trigger.type !== 'DATABASE_EVENT') {+ throw new Error('The handover workflow starts on a record event');+ }++ const { filter } = trigger.settings;++ expect(+ evaluateStepFilters({+ stepFilterGroups: filter?.stepFilterGroups ?? [],+ stepFilters: filter?.stepFilters ?? [],+ context: {+ trigger: {+ properties: {+ before: { stage: before },+ after: { stage: after },+ },+ },+ },+ }),+ ).toBe(expected);+ },+ );+});diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/build-getting-started-workflow-preview.util.spec.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/build-getting-started-workflow-preview.util.spec.tsnew file mode 100644index 00000000000..bdebf3cd858--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/build-getting-started-workflow-preview.util.spec.ts@@ -0,0 +1,34 @@+import { WorkflowActionType } from 'twenty-shared/workflow';++import { GETTING_STARTED_HANDOVER_WORKFLOW } from 'src/engine/core-modules/getting-started/constants/getting-started-handover-workflow.constant';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import { buildGettingStartedWorkflowPreview } from 'src/engine/core-modules/getting-started/utils/build-getting-started-workflow-preview.util';++describe('buildGettingStartedWorkflowPreview', () => {+ it('should list the trigger and the titled steps in order', () => {+ expect(+ buildGettingStartedWorkflowPreview({+ stepActionKey: GettingStartedStepActionKey.HANDOVER_DEALS,+ gettingStartedWorkflow: GETTING_STARTED_HANDOVER_WORKFLOW,+ translate: (descriptor) => descriptor.message ?? '',+ }),+ ).toEqual({+ stepActionKey: GettingStartedStepActionKey.HANDOVER_DEALS,+ trigger: {+ type: 'DATABASE_EVENT',+ databaseEventAction: 'updated',+ title: 'A deal is won',+ },+ actions: [+ {+ type: WorkflowActionType.CREATE_RECORD,+ title: 'Create a kickoff task',+ },+ {+ type: WorkflowActionType.SEND_EMAIL,+ title: 'Email the account owner',+ },+ ],+ });+ });+});diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/filter-getting-started-step-action-keys.util.spec.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/filter-getting-started-step-action-keys.util.spec.tsnew file mode 100644index 00000000000..229ec8e6297--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/filter-getting-started-step-action-keys.util.spec.ts@@ -0,0 +1,117 @@+import { PermissionFlagType } from 'twenty-shared/constants';++import { GETTING_STARTED_STEP_ACTION_KEYS_BY_PROFILE } from 'src/engine/core-modules/getting-started/constants/getting-started-step-action-keys-by-profile.constant';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import { filterGettingStartedStepActionKeys } from 'src/engine/core-modules/getting-started/utils/filter-getting-started-step-action-keys.util';++const ALL_PERMISSION_FLAGS = Object.fromEntries(+ Object.values(PermissionFlagType).map((permissionFlag) => [+ permissionFlag,+ true,+ ]),+);++describe('filterGettingStartedStepActionKeys', () => {+ it.each([+ {+ profile: 'PERSONAL' as const,+ expected: [+ GettingStartedStepActionKey.IMPORT_DATA,+ GettingStartedStepActionKey.CONNECT_MAILBOX,+ GettingStartedStepActionKey.CUSTOMIZE_DATA_MODEL,+ GettingStartedStepActionKey.FOLLOW_UP_DEALS,+ GettingStartedStepActionKey.INSTALL_APP,+ ],+ },+ {+ profile: 'SMALL_TEAM' as const,+ expected: [+ GettingStartedStepActionKey.CONNECT_MAILBOX,+ GettingStartedStepActionKey.IMPORT_DATA,+ GettingStartedStepActionKey.CUSTOMIZE_DATA_MODEL,+ GettingStartedStepActionKey.FOLLOW_UP_DEALS,+ GettingStartedStepActionKey.INVITE_TEAM,+ GettingStartedStepActionKey.INSTALL_APP,+ ],+ },+ {+ profile: 'TEAM' as const,+ expected: [+ GettingStartedStepActionKey.CONNECT_MAILBOX,+ GettingStartedStepActionKey.IMPORT_DATA,+ GettingStartedStepActionKey.CUSTOMIZE_DATA_MODEL,+ GettingStartedStepActionKey.INVITE_TEAM,+ GettingStartedStepActionKey.HANDOVER_DEALS,+ GettingStartedStepActionKey.FOLLOW_UP_DEALS,+ GettingStartedStepActionKey.INSTALL_APP,+ ],+ },+ ])(+ 'should keep the $profile steps in order with every permission and a mailbox',+ ({ profile, expected }) => {+ expect(+ filterGettingStartedStepActionKeys({+ stepActionKeys: GETTING_STARTED_STEP_ACTION_KEYS_BY_PROFILE[profile],+ permissionFlags: ALL_PERMISSION_FLAGS,+ hasSendingMailbox: true,+ hasFeaturedApp: true,+ }),+ ).toEqual(expected);+ },+ );++ it('should leave out a step the user has no permission for', () => {+ const stepActionKeys = filterGettingStartedStepActionKeys({+ stepActionKeys: GETTING_STARTED_STEP_ACTION_KEYS_BY_PROFILE.TEAM,+ permissionFlags: {+ ...ALL_PERMISSION_FLAGS,+ [PermissionFlagType.IMPORT_CSV]: false,+ },+ hasSendingMailbox: true,+ hasFeaturedApp: true,+ });++ expect(stepActionKeys).not.toContain(+ GettingStartedStepActionKey.IMPORT_DATA,+ );+ expect(stepActionKeys).toContain(+ GettingStartedStepActionKey.CONNECT_MAILBOX,+ );+ });++ it('should leave out the data model step without the AI permission', () => {+ expect(+ filterGettingStartedStepActionKeys({+ stepActionKeys: GETTING_STARTED_STEP_ACTION_KEYS_BY_PROFILE.TEAM,+ permissionFlags: {+ ...ALL_PERMISSION_FLAGS,+ [PermissionFlagType.AI]: false,+ },+ hasSendingMailbox: true,+ hasFeaturedApp: true,+ }),+ ).not.toContain(GettingStartedStepActionKey.CUSTOMIZE_DATA_MODEL);+ });++ it('should leave out the handover step without a mailbox that can send', () => {+ expect(+ filterGettingStartedStepActionKeys({+ stepActionKeys: GETTING_STARTED_STEP_ACTION_KEYS_BY_PROFILE.TEAM,+ permissionFlags: ALL_PERMISSION_FLAGS,+ hasSendingMailbox: false,+ hasFeaturedApp: true,+ }),+ ).not.toContain(GettingStartedStepActionKey.HANDOVER_DEALS);+ });++ it('should leave out the install app step when no featured app is in the catalog', () => {+ expect(+ filterGettingStartedStepActionKeys({+ stepActionKeys: GETTING_STARTED_STEP_ACTION_KEYS_BY_PROFILE.PERSONAL,+ permissionFlags: ALL_PERMISSION_FLAGS,+ hasSendingMailbox: true,+ hasFeaturedApp: false,+ }),+ ).not.toContain(GettingStartedStepActionKey.INSTALL_APP);+ });+});diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/get-getting-started-profile.util.spec.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/get-getting-started-profile.util.spec.tsnew file mode 100644index 00000000000..c3e8398acf4--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/get-getting-started-profile.util.spec.ts@@ -0,0 +1,64 @@+import { type WorkspaceCompanyEnrichment } from 'twenty-shared/workspace';++import { getGettingStartedProfile } from 'src/engine/core-modules/getting-started/utils/get-getting-started-profile.util';++const buildCompanyEnrichment = (+ employeeCount: number | null,+): WorkspaceCompanyEnrichment => ({+ domain: 'acme.com',+ enrichedAt: '2026-10-29T12:00:00.000Z',+ name: 'Acme',+ website: 'acme.com',+ industry: 'computer software',+ employeeCount,+ size: null,+ founded: null,+ headline: null,+ summary: null,+ tags: [],+ locality: null,+ region: null,+ country: null,+});++describe('getGettingStartedProfile', () => {+ it.each([+ {+ description: 'a personal email, whatever the enrichment',+ userEmail: '[email protected]',+ companyEnrichment: buildCompanyEnrichment(500),+ expected: 'PERSONAL',+ },+ {+ description: 'a work email at a company of 10 people',+ userEmail: '[email protected]',+ companyEnrichment: buildCompanyEnrichment(10),+ expected: 'SMALL_TEAM',+ },+ {+ description: 'a work email at a company of 11 people',+ userEmail: '[email protected]',+ companyEnrichment: buildCompanyEnrichment(11),+ expected: 'TEAM',+ },+ {+ description: 'a work email without an employee count',+ userEmail: '[email protected]',+ companyEnrichment: buildCompanyEnrichment(null),+ expected: 'TEAM',+ },+ {+ description: 'a work email without enrichment',+ userEmail: '[email protected]',+ companyEnrichment: null,+ expected: 'TEAM',+ },+ ])(+ 'should pick $expected for $description',+ ({ userEmail, companyEnrichment, expected }) => {+ expect(getGettingStartedProfile({ userEmail, companyEnrichment })).toBe(+ expected,+ );+ },+ );+});diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/is-company-enrichment-final.util.spec.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/is-company-enrichment-final.util.spec.tsnew file mode 100644index 00000000000..e71f4118b5b--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/__tests__/is-company-enrichment-final.util.spec.ts@@ -0,0 +1,79 @@+import { type WorkspaceCompanyEnrichment } from 'twenty-shared/workspace';++import { isCompanyEnrichmentFinal } from 'src/engine/core-modules/getting-started/utils/is-company-enrichment-final.util';++const COMPANY_ENRICHMENT: WorkspaceCompanyEnrichment = {+ domain: 'acme.com',+ enrichedAt: '2026-10-29T12:00:00.000Z',+ name: 'Acme',+ website: 'acme.com',+ industry: 'computer software',+ employeeCount: 8,+ size: null,+ founded: null,+ headline: null,+ summary: null,+ tags: [],+ locality: null,+ region: null,+ country: null,+};++describe('isCompanyEnrichmentFinal', () => {+ it('should not be final before any attempt', () => {+ expect(+ isCompanyEnrichmentFinal({+ companyEnrichment: null,+ companyEnrichmentAttempt: null,+ }),+ ).toBe(false);+ });++ it('should not be final after a transient error', () => {+ expect(+ isCompanyEnrichmentFinal({+ companyEnrichment: null,+ companyEnrichmentAttempt: { outcome: 'transientError' },+ }),+ ).toBe(false);+ });++ it('should not be final when a match has no stored result yet', () => {+ expect(+ isCompanyEnrichmentFinal({+ companyEnrichment: null,+ companyEnrichmentAttempt: { outcome: 'matched' },+ }),+ ).toBe(false);+ });++ it('should be final when a match has its stored result', () => {+ expect(+ isCompanyEnrichmentFinal({+ companyEnrichment: COMPANY_ENRICHMENT,+ companyEnrichmentAttempt: { outcome: 'matched' },+ }),+ ).toBe(true);+ });++ it('should be final when the result is stored but the attempt is missing', () => {+ expect(+ isCompanyEnrichmentFinal({+ companyEnrichment: COMPANY_ENRICHMENT,+ companyEnrichmentAttempt: null,+ }),+ ).toBe(true);+ });++ it.each(['notFound', 'permanentError'] as const)(+ 'should be final after a %s outcome',+ (outcome) => {+ expect(+ isCompanyEnrichmentFinal({+ companyEnrichment: null,+ companyEnrichmentAttempt: { outcome },+ }),+ ).toBe(true);+ },+ );+});diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/build-getting-started-step-definition.util.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/build-getting-started-step-definition.util.tsnew file mode 100644index 00000000000..cc331ef40db--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/build-getting-started-step-definition.util.ts@@ -0,0 +1,40 @@+import { type MessageDescriptor } from '@lingui/core';+import { isDefined } from 'twenty-shared/utils';+import { type WorkspaceCompanyEnrichment } from 'twenty-shared/workspace';++import { GETTING_STARTED_STEP_CONTENT } from 'src/engine/core-modules/getting-started/constants/getting-started-step-content.constant';+import { GETTING_STARTED_WORKFLOWS } from 'src/engine/core-modules/getting-started/constants/getting-started-workflows.constant';+import { type GettingStartedStepDefinitionDTO } from 'src/engine/core-modules/getting-started/dtos/getting-started-step-definition.dto';+import { GettingStartedStepKind } from 'src/engine/core-modules/getting-started/enums/getting-started-step-kind.enum';+import { type GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';++export const buildGettingStartedStepDefinition = ({+ stepActionKey,+ companyEnrichment,+ translate,+}: {+ stepActionKey: GettingStartedStepActionKey;+ companyEnrichment: WorkspaceCompanyEnrichment | null;+ translate: (descriptor: MessageDescriptor) => string;+}): GettingStartedStepDefinitionDTO => {+ const { title, doneTitle, description, icon, iconColor, prompt } =+ GETTING_STARTED_STEP_CONTENT[stepActionKey];++ return {+ actionKey: stepActionKey,+ kind: isDefined(GETTING_STARTED_WORKFLOWS[stepActionKey])+ ? GettingStartedStepKind.WORKFLOW+ : isDefined(prompt)+ ? GettingStartedStepKind.PROMPT+ : GettingStartedStepKind.CUSTOM,+ title: translate(title),+ doneTitle: translate(doneTitle),+ description: translate(description),+ icon,+ iconColor,+ promptLabel: isDefined(prompt) ? translate(prompt.label) : null,+ prompt: isDefined(prompt)+ ? translate(prompt.getText(companyEnrichment))+ : null,+ };+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/build-getting-started-workflow-content.util.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/build-getting-started-workflow-content.util.tsnew file mode 100644index 00000000000..49efdb78ead--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/build-getting-started-workflow-content.util.ts@@ -0,0 +1,72 @@+import { workflowManifestSchema } from 'twenty-shared/application';+import { isDefined } from 'twenty-shared/utils';++import { fromWorkflowStepManifestToActionOrThrow } from 'src/engine/core-modules/application/application-manifest/converters/from-workflow-step-manifest-to-action-or-throw.util';+import { fromWorkflowTriggerManifestToTriggerOrThrow } from 'src/engine/core-modules/application/application-manifest/converters/from-workflow-trigger-manifest-to-trigger-or-throw.util';+import { type WorkflowManifestReferences } from 'src/engine/core-modules/application/application-manifest/types/workflow-manifest-references.type';+import { type GettingStartedWorkflow } from 'src/engine/core-modules/getting-started/types/getting-started-workflow.type';+import { type FlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/types/flat-entity-maps.type';+import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';+import { type FlatObjectMetadata } from 'src/engine/metadata-modules/flat-object-metadata/types/flat-object-metadata.type';+import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';+import { type WorkflowAction } from 'src/modules/workflow/workflow-executor/workflow-actions/types/workflow-action.type';+import { type WorkflowTrigger } from 'src/modules/workflow/workflow-trigger/types/workflow-trigger.type';++export const buildGettingStartedWorkflowContent = ({+ gettingStartedWorkflow: { manifest, triggerTitle },+ flatObjectMetadataMaps,+ flatFieldMetadataMaps,+}: {+ gettingStartedWorkflow: Pick<+ GettingStartedWorkflow,+ 'manifest' | 'triggerTitle'+ >;+ flatObjectMetadataMaps: Pick<+ FlatEntityMaps<FlatObjectMetadata>,+ 'byUniversalIdentifier'+ >;+ flatFieldMetadataMaps: Pick<+ FlatEntityMaps<FlatFieldMetadata>,+ 'byUniversalIdentifier'+ >;+}): { name: string; trigger: WorkflowTrigger; steps: WorkflowAction[] } => {+ const { name, version } = workflowManifestSchema.parse(manifest);++ const references: WorkflowManifestReferences = {+ logicFunctionIdByUniversalIdentifier: new Map(),+ objectByUniversalIdentifier: new Map(+ Object.values(flatObjectMetadataMaps.byUniversalIdentifier)+ .filter(isDefined)+ .map((flatObjectMetadata) => [+ flatObjectMetadata.universalIdentifier,+ flatObjectMetadata,+ ]),+ ),+ fieldByUniversalIdentifier: new Map(+ Object.values(flatFieldMetadataMaps.byUniversalIdentifier)+ .filter(isDefined)+ .map((flatFieldMetadata) => [+ flatFieldMetadata.universalIdentifier,+ {+ ...flatFieldMetadata,+ objectUniversalIdentifier:+ flatFieldMetadata.objectMetadataUniversalIdentifier,+ },+ ]),+ ),+ };++ return {+ name,+ trigger: {+ ...fromWorkflowTriggerManifestToTriggerOrThrow({+ trigger: version.trigger,+ references,+ }),+ name: i18nLabel(triggerTitle),+ },+ steps: version.steps.map((step, index) =>+ fromWorkflowStepManifestToActionOrThrow({ step, index, references }),+ ),+ };+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/build-getting-started-workflow-preview.util.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/build-getting-started-workflow-preview.util.tsnew file mode 100644index 00000000000..96778d232e4--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/build-getting-started-workflow-preview.util.ts@@ -0,0 +1,41 @@+import { type MessageDescriptor } from '@lingui/core';+import { isDefined } from 'twenty-shared/utils';+import { WorkflowActionType } from 'twenty-shared/workflow';++import { type GettingStartedWorkflowPreviewDTO } from 'src/engine/core-modules/getting-started/dtos/getting-started-workflow-preview.dto';+import { type GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import { type GettingStartedWorkflow } from 'src/engine/core-modules/getting-started/types/getting-started-workflow.type';++export const buildGettingStartedWorkflowPreview = ({+ stepActionKey,+ gettingStartedWorkflow: { manifest, triggerTitle, stepTitles },+ translate,+}: {+ stepActionKey: GettingStartedStepActionKey;+ gettingStartedWorkflow: GettingStartedWorkflow;+ translate: (descriptor: MessageDescriptor) => string;+}): GettingStartedWorkflowPreviewDTO => {+ const { trigger, steps } = manifest.version;++ return {+ stepActionKey,+ trigger: {+ type: trigger.type,+ databaseEventAction:+ trigger.type === 'DATABASE_EVENT' ? trigger.settings.action : null,+ title: translate(triggerTitle),+ },+ actions: steps.flatMap((workflowStep) => {+ const stepTitle = stepTitles[workflowStep.universalIdentifier];++ return isDefined(stepTitle)+ ? [+ {+ type: WorkflowActionType[workflowStep.type],+ title: translate(stepTitle),+ },+ ]+ : [];+ }),+ };+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/filter-getting-started-step-action-keys.util.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/filter-getting-started-step-action-keys.util.tsnew file mode 100644index 00000000000..37460ee70f2--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/filter-getting-started-step-action-keys.util.ts@@ -0,0 +1,33 @@+import { type PermissionFlagType } from 'twenty-shared/constants';+import { isDefined } from 'twenty-shared/utils';++import { GETTING_STARTED_STEP_PERMISSION_FLAGS } from 'src/engine/core-modules/getting-started/constants/getting-started-step-permission-flags.constant';+import { GETTING_STARTED_WORKFLOWS } from 'src/engine/core-modules/getting-started/constants/getting-started-workflows.constant';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import { hasEmailStepWithoutSender } from 'src/engine/core-modules/getting-started/utils/has-email-step-without-sender.util';++export const filterGettingStartedStepActionKeys = ({+ stepActionKeys,+ permissionFlags,+ hasSendingMailbox,+ hasFeaturedApp,+}: {+ stepActionKeys: GettingStartedStepActionKey[];+ permissionFlags: Partial<Record<PermissionFlagType, boolean>>;+ hasSendingMailbox: boolean;+ hasFeaturedApp: boolean;+}): GettingStartedStepActionKey[] =>+ stepActionKeys.filter((stepActionKey) => {+ const gettingStartedWorkflow = GETTING_STARTED_WORKFLOWS[stepActionKey];++ return (+ (hasFeaturedApp ||+ stepActionKey !== GettingStartedStepActionKey.INSTALL_APP) &&+ GETTING_STARTED_STEP_PERMISSION_FLAGS[stepActionKey].every(+ (permissionFlag) => permissionFlags[permissionFlag] === true,+ ) &&+ (hasSendingMailbox ||+ !isDefined(gettingStartedWorkflow) ||+ !hasEmailStepWithoutSender(gettingStartedWorkflow.manifest))+ );+ });diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/get-getting-started-data-model-prompt.util.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/get-getting-started-data-model-prompt.util.tsnew file mode 100644index 00000000000..db392809b76--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/get-getting-started-data-model-prompt.util.ts@@ -0,0 +1,20 @@+import { msg } from '@lingui/core/macro';+import { type MessageDescriptor } from '@lingui/core';+import { isNonEmptyString } from '@sniptt/guards';+import { type WorkspaceCompanyEnrichment } from 'twenty-shared/workspace';++export const getGettingStartedDataModelPrompt = (+ companyEnrichment: Pick<+ WorkspaceCompanyEnrichment,+ 'name' | 'industry'+ > | null,+): MessageDescriptor => {+ const companyName = companyEnrichment?.name;+ const industry = companyEnrichment?.industry;++ if (isNonEmptyString(companyName) && isNonEmptyString(industry)) {+ return msg`We're ${companyName}, a company in ${industry}. Look at the data I imported and suggest the objects, fields and views we need to run our business. Ask me before creating anything.`;+ }++ return msg`Look at the data I imported and suggest the objects, fields and views I need to run my business. Ask me what I want to track before creating anything.`;+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/get-getting-started-profile.util.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/get-getting-started-profile.util.tsnew file mode 100644index 00000000000..80ce35daa64--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/get-getting-started-profile.util.ts@@ -0,0 +1,25 @@+import { isDefined } from 'twenty-shared/utils';+import { type WorkspaceCompanyEnrichment } from 'twenty-shared/workspace';++import { GETTING_STARTED_SMALL_TEAM_MAX_EMPLOYEE_COUNT } from 'src/engine/core-modules/getting-started/constants/getting-started-small-team-max-employee-count.constant';+import { type GettingStartedProfile } from 'src/engine/core-modules/getting-started/types/getting-started-profile.type';+import { isWorkEmail } from 'src/utils/is-work-email';++export const getGettingStartedProfile = ({+ userEmail,+ companyEnrichment,+}: {+ userEmail: string;+ companyEnrichment: Pick<WorkspaceCompanyEnrichment, 'employeeCount'> | null;+}): GettingStartedProfile => {+ if (!isWorkEmail(userEmail)) {+ return 'PERSONAL';+ }++ const employeeCount = companyEnrichment?.employeeCount;++ return isDefined(employeeCount) &&+ employeeCount <= GETTING_STARTED_SMALL_TEAM_MAX_EMPLOYEE_COUNT+ ? 'SMALL_TEAM'+ : 'TEAM';+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/has-email-step-without-sender.util.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/has-email-step-without-sender.util.tsnew file mode 100644index 00000000000..76a230ba781--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/has-email-step-without-sender.util.ts@@ -0,0 +1,10 @@+import { isNonEmptyString } from '@sniptt/guards';+import { type WorkflowManifest } from 'twenty-shared/application';++export const hasEmailStepWithoutSender = (manifest: WorkflowManifest) =>+ manifest.version.steps.some(+ (step) =>+ (step.type === 'SEND_EMAIL' || step.type === 'DRAFT_EMAIL') &&+ !isNonEmptyString(step.input.connectedAccountId) &&+ !isNonEmptyString(step.input.connectedAccountHandle),+ );diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/is-company-enrichment-final.util.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/is-company-enrichment-final.util.tsnew file mode 100644index 00000000000..90c711f0d64--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/is-company-enrichment-final.util.ts@@ -0,0 +1,31 @@+import { isDefined } from 'twenty-shared/utils';+import { type WorkspaceCompanyEnrichment } from 'twenty-shared/workspace';++import {+ type COMPANY_ENRICHMENT_ATTEMPT_KEY,+ type CompanyEnrichmentAttemptKeyValueTypeMap,+} from 'src/engine/core-modules/company-enrichment/types/company-enrichment-attempt-key-value.type';++export const isCompanyEnrichmentFinal = ({+ companyEnrichment,+ companyEnrichmentAttempt,+}: {+ companyEnrichment: WorkspaceCompanyEnrichment | null;+ companyEnrichmentAttempt: Pick<+ CompanyEnrichmentAttemptKeyValueTypeMap[typeof COMPANY_ENRICHMENT_ATTEMPT_KEY],+ 'outcome'+ > | null;+}): boolean => {+ if (isDefined(companyEnrichment)) {+ return true;+ }++ if (+ !isDefined(companyEnrichmentAttempt) ||+ companyEnrichmentAttempt.outcome === 'transientError'+ ) {+ return false;+ }++ return companyEnrichmentAttempt.outcome !== 'matched';+};diff --git a/packages/twenty-server/src/engine/core-modules/getting-started/utils/is-getting-started-step-action-key.util.ts b/packages/twenty-server/src/engine/core-modules/getting-started/utils/is-getting-started-step-action-key.util.tsnew file mode 100644index 00000000000..973b9a62c39--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/getting-started/utils/is-getting-started-step-action-key.util.ts@@ -0,0 +1,6 @@+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';++export const isGettingStartedStepActionKey = (+ value: string,+): value is GettingStartedStepActionKey =>+ Object.values<string>(GettingStartedStepActionKey).includes(value);diff --git a/packages/twenty-server/src/engine/core-modules/key-value-pair/key-value-pair.service.ts b/packages/twenty-server/src/engine/core-modules/key-value-pair/key-value-pair.service.tsindex 248ec5fabad..f2cc5430433 100644--- a/packages/twenty-server/src/engine/core-modules/key-value-pair/key-value-pair.service.ts+++ b/packages/twenty-server/src/engine/core-modules/key-value-pair/key-value-pair.service.ts@@ -28,8 +28,10 @@ export class KeyValuePairService<applicationId?: string | null;type: KeyValuePairType;key?: Extract<K, string>;- }): Promise<Array<KeyValueTypesMap[K]>> {- const keyValuePairs = (await this.keyValuePairRepository.find({+ }): Promise<+ Array<Omit<KeyValuePairEntity, 'value'> & { value: KeyValueTypesMap[K] }>+ > {+ const keyValuePairs = await this.keyValuePairRepository.find({where: {...(userId === undefined? {}@@ -47,11 +49,12 @@ export class KeyValuePairService<: { applicationId }),type,},- })) as Array<KeyValueTypesMap[K]>;+ });return keyValuePairs.map((keyValuePair) => ({...keyValuePair,- value: keyValuePair.value ?? keyValuePair.textValueDeprecated,+ value: (keyValuePair.value ??+ keyValuePair.textValueDeprecated) as KeyValueTypesMap[K],}));}diff --git a/packages/twenty-server/src/engine/core-modules/workspace-invitation/services/workspace-invitation.service.ts b/packages/twenty-server/src/engine/core-modules/workspace-invitation/services/workspace-invitation.service.tsindex a55f7847c9f..9aab066c1e9 100644--- a/packages/twenty-server/src/engine/core-modules/workspace-invitation/services/workspace-invitation.service.ts+++ b/packages/twenty-server/src/engine/core-modules/workspace-invitation/services/workspace-invitation.service.ts@@ -30,6 +30,8 @@ import {import { WorkspaceDomainsService } from 'src/engine/core-modules/domain/workspace-domains/services/workspace-domains.service';import { EmailService } from 'src/engine/core-modules/email/email.service';import { FileUrlService } from 'src/engine/core-modules/file/file-url/file-url.service';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import { GettingStartedService } from 'src/engine/core-modules/getting-started/services/getting-started.service';import { I18nService } from 'src/engine/core-modules/i18n/i18n.service';import { OnboardingService } from 'src/engine/core-modules/onboarding/onboarding.service';import { ThrottlerService } from 'src/engine/core-modules/throttler/throttler.service';@@ -61,6 +63,7 @@ export class WorkspaceInvitationService {private readonly i18nService: I18nService,private readonly throttlerService: ThrottlerService,private readonly fileUrlService: FileUrlService,+ private readonly gettingStartedService: GettingStartedService,) {}async validatePersonalInvitation({@@ -407,14 +410,24 @@ export class WorkspaceInvitationService {}}+ const hasSentInvitations = invitationResults.some(+ (invitationResult) => invitationResult.status === 'fulfilled',+ );+await this.onboardingService.completeOnboardingInviteTeamStep({userId: sender.userId,workspaceId: workspace.id,- hasSentInvitations: invitationResults.some(- (invitationResult) => invitationResult.status === 'fulfilled',- ),+ hasSentInvitations,});+ if (hasSentInvitations && this.twentyConfigService.isBillingEnabled()) {+ await this.gettingStartedService.completeStep({+ userId: sender.userId,+ workspaceId: workspace.id,+ stepActionKey: GettingStartedStepActionKey.INVITE_TEAM,+ });+ }+const i18n = this.i18nService.getI18nInstance(sender.locale);const result = invitationResults.reduce<{diff --git a/packages/twenty-server/src/engine/core-modules/workspace-invitation/workspace-invitation.module.ts b/packages/twenty-server/src/engine/core-modules/workspace-invitation/workspace-invitation.module.tsindex 4e4ae50a91e..85beed96305 100644--- a/packages/twenty-server/src/engine/core-modules/workspace-invitation/workspace-invitation.module.ts+++ b/packages/twenty-server/src/engine/core-modules/workspace-invitation/workspace-invitation.module.ts@@ -4,6 +4,7 @@ import { TypeOrmModule } from '@nestjs/typeorm';import { AppTokenEntity } from 'src/engine/core-modules/app-token/app-token.entity';import { WorkspaceDomainsModule } from 'src/engine/core-modules/domain/workspace-domains/workspace-domains.module';import { FileModule } from 'src/engine/core-modules/file/file.module';+import { GettingStartedModule } from 'src/engine/core-modules/getting-started/getting-started.module';import { OnboardingModule } from 'src/engine/core-modules/onboarding/onboarding.module';import { ThrottlerModule } from 'src/engine/core-modules/throttler/throttler.module';import { UserWorkspaceEntity } from 'src/engine/core-modules/user-workspace/user-workspace.entity';@@ -18,6 +19,7 @@ import { RoleAssignmentValidationModule } from 'src/engine/permissions/role-assiTypeOrmModule.forFeature([AppTokenEntity, UserWorkspaceEntity]),RoleAssignmentValidationModule,FileModule,+ GettingStartedModule,OnboardingModule,PermissionsModule,ThrottlerModule,diff --git a/packages/twenty-server/src/engine/guards/billing-enabled.guard.ts b/packages/twenty-server/src/engine/guards/billing-enabled.guard.tsnew file mode 100644index 00000000000..da676a2629a--- /dev/null+++ b/packages/twenty-server/src/engine/guards/billing-enabled.guard.ts@@ -0,0 +1,16 @@+import {+ type CanActivate,+ type ExecutionContext,+ Injectable,+} from '@nestjs/common';++import { TwentyConfigService } from 'src/engine/core-modules/twenty-config/twenty-config.service';++@Injectable()+export class BillingEnabledGuard implements CanActivate {+ constructor(private readonly twentyConfigService: TwentyConfigService) {}++ canActivate(_context: ExecutionContext): boolean {+ return this.twentyConfigService.isBillingEnabled();+ }+}diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-feature-flags.util.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-feature-flags.util.tsindex 50b09cfbb17..3b92e19e9c5 100644--- a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-feature-flags.util.ts+++ b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-feature-flags.util.ts@@ -12,6 +12,7 @@ const DEFAULT_SEEDED_FEATURE_FLAGS: Partial<Record<FeatureFlagKey, boolean>> = {[FeatureFlagKey.IS_PRIVATE_RECORD_ENABLED]: true,[FeatureFlagKey.IS_RELATED_RECORD_PATHS_ENABLED]: false,[FeatureFlagKey.IS_ROW_LEVEL_PERMISSION_RELATION_HOP_ENABLED]: false,+ [FeatureFlagKey.IS_GETTING_STARTED_ENABLED]: true,};type SeedFeatureFlagsArgs = {diff --git a/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap b/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snapindex a7e20608de9..d66a163ff49 100644--- a/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap+++ b/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap@@ -359,6 +359,10 @@ exports[`endpoint permission declarations should match the auth principals, perm"FrontComponentSharedDependenciesController.getBuiltSharedDependencies {"applicationTarget":{"argName":"applicationId","kind":"applicationId","requireApplicationRegistrationOwnership":false,"source":"routeParam"},"authPrincipalGuards":[{"apiKey":true,"application":{"withAgent":false,"withUser":true,"withoutUser":true},"oauthClient":{"withUser":true,"withoutUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":[],"requiredPermissionFlags":[]}","GeoMapResolver.getAddressDetails {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":{"withAgent":false,"withUser":true,"withoutUser":true},"oauthClient":{"withUser":true,"withoutUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":[],"requiredPermissionFlags":[]}","GeoMapResolver.getAutoCompleteAddress {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":{"withAgent":false,"withUser":true,"withoutUser":true},"oauthClient":{"withUser":true,"withoutUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":[],"requiredPermissionFlags":[]}",+ "GettingStartedResolver.gettingStartedProgress {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":false,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":["IS_GETTING_STARTED_ENABLED"],"requiredPermissionFlags":[]}",+ "GettingStartedResolver.updateGettingStarted {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":false,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":["IS_GETTING_STARTED_ENABLED"],"requiredPermissionFlags":[]}",+ "GettingStartedWorkflowResolver.gettingStartedWorkflowPreviews {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":false,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":["IS_GETTING_STARTED_ENABLED"],"requiredPermissionFlags":["WORKFLOWS"]}",+ "GettingStartedWorkflowResolver.prepareGettingStartedWorkflow {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":false,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":["IS_GETTING_STARTED_ENABLED"],"requiredPermissionFlags":["WORKFLOWS"]}","GoogleAPIsAuthController.googleAuth {"applicationTarget":null,"authPrincipalGuards":[],"requiredFeatureFlags":[],"requiredPermissionFlags":[]}","GoogleAPIsAuthController.googleAuthGetAccessToken {"applicationTarget":null,"authPrincipalGuards":[],"requiredFeatureFlags":[],"requiredPermissionFlags":[]}","GoogleAuthController.googleAuth {"applicationTarget":null,"authPrincipalGuards":[],"requiredFeatureFlags":[],"requiredPermissionFlags":[]}",diff --git a/packages/twenty-server/test/integration/metadata/suites/getting-started/getting-started.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/getting-started/getting-started.integration-spec.tsnew file mode 100644index 00000000000..4545f46bd79--- /dev/null+++ b/packages/twenty-server/test/integration/metadata/suites/getting-started/getting-started.integration-spec.ts@@ -0,0 +1,440 @@+import { gql } from 'graphql-tag';+import {+ deleteCoreWorkflows,+ findCoreWorkflowVersion,+} from 'test/integration/graphql/suites/workflow/utils/core-workflow.util';+import { makeMetadataApiRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';+import { getAppInjectablesByClassName } from 'test/integration/utils/get-app-injectables-by-class-name.util';+import { isDefined } from 'twenty-shared/utils';++import { type UpdateGettingStartedInput } from 'src/engine/core-modules/getting-started/dtos/update-getting-started.input';+import { GettingStartedStepActionKey } from 'src/engine/core-modules/getting-started/enums/getting-started-step-action-key.enum';+import { SEED_APPLE_WORKSPACE_ID } from 'src/engine/workspace-manager/dev-seeder/core/constants/seeder-workspaces.constant';+import { USER_WORKSPACE_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/utils/seed-user-workspaces.util';+import { USER_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/utils/seed-users.util';++const GETTING_STARTED_PROGRESS_QUERY = gql`+ query GettingStartedProgress {+ gettingStartedProgress {+ steps {+ actionKey+ kind+ }+ completedStepActionKeys+ }+ }+`;++const UPDATE_GETTING_STARTED_MUTATION = gql`+ mutation UpdateGettingStarted($input: UpdateGettingStartedInput!) {+ updateGettingStarted(input: $input) {+ completedStepActionKeys+ selectedStepActionKey+ snoozedUntil+ isHidden+ }+ }+`;++const PREPARE_GETTING_STARTED_WORKFLOW_MUTATION = gql`+ mutation PrepareGettingStartedWorkflow(+ $stepActionKey: GettingStartedStepActionKey!+ ) {+ prepareGettingStartedWorkflow(stepActionKey: $stepActionKey) {+ workflowId+ versionId+ }+ }+`;++const GETTING_STARTED_WORKFLOW_PREVIEWS_QUERY = gql`+ query GettingStartedWorkflowPreviews {+ gettingStartedWorkflowPreviews {+ stepActionKey+ trigger {+ type+ databaseEventAction+ title+ }+ actions {+ type+ title+ }+ }+ }+`;++const deleteGettingStartedUserVars = () =>+ globalThis.testDataSource.query(+ `DELETE FROM core."keyValuePair" WHERE "workspaceId" = $1 AND ("userId" = $2 OR "userId" IS NULL) AND "key" LIKE 'GETTING_STARTED_%'`,+ [SEED_APPLE_WORKSPACE_ID, USER_DATA_SEED_IDS.JANE],+ );++const findWorkspaceUserVar = async (key: string) => {+ const [keyValuePair] = await globalThis.testDataSource.query(+ `SELECT "value" FROM core."keyValuePair" WHERE "workspaceId" = $1 AND "userId" IS NULL AND "key" = $2`,+ [SEED_APPLE_WORKSPACE_ID, key],+ );++ return keyValuePair?.value;+};++const findJaneUserVar = async (key: string) => {+ const [keyValuePair] = await globalThis.testDataSource.query(+ `SELECT "value" FROM core."keyValuePair" WHERE "workspaceId" = $1 AND "userId" = $2 AND "key" = $3`,+ [SEED_APPLE_WORKSPACE_ID, USER_DATA_SEED_IDS.JANE, key],+ );++ return keyValuePair?.value;+};++const updateGettingStarted = (input: UpdateGettingStartedInput) =>+ makeMetadataApiRequest({+ query: UPDATE_GETTING_STARTED_MUTATION,+ variables: { input },+ });++const insertKeyValuePair = ({+ userId,+ key,+ value,+ type,+}: {+ userId: string | null;+ key: string;+ value: unknown;+ type: 'USER_VARIABLE' | 'CONFIG_VARIABLE';+}) =>+ globalThis.testDataSource.query(+ `INSERT INTO core."keyValuePair" ("workspaceId", "userId", "key", "value", "type") VALUES ($1, $2, $3, $4, $5)`,+ [SEED_APPLE_WORKSPACE_ID, userId, key, JSON.stringify(value), type],+ );++const deleteCompanyEnrichmentAttempt = () =>+ globalThis.testDataSource.query(+ `DELETE FROM core."keyValuePair" WHERE "workspaceId" = $1 AND "userId" IS NULL AND "key" = 'COMPANY_ENRICHMENT_ATTEMPT'`,+ [SEED_APPLE_WORKSPACE_ID],+ );++const prepareGettingStartedWorkflow = (stepActionKey: string) =>+ makeMetadataApiRequest({+ query: PREPARE_GETTING_STARTED_WORKFLOW_MUTATION,+ variables: { stepActionKey },+ });++const findCompletedStepActionKeys = async (): Promise<string[]> => {+ const response = await makeMetadataApiRequest({+ query: GETTING_STARTED_PROGRESS_QUERY,+ });++ expect(response.body.errors).toBeUndefined();++ return response.body.data.gettingStartedProgress.completedStepActionKeys;+};++describe('gettingStarted (e2e)', () => {+ let billingEnabledGuardSpies: jest.SpyInstance[] = [];++ const setIsBillingEnabled = (isBillingEnabled: boolean) =>+ billingEnabledGuardSpies.forEach((spy) =>+ spy.mockReturnValue(isBillingEnabled),+ );++ beforeAll(async () => {+ billingEnabledGuardSpies = getAppInjectablesByClassName<{+ canActivate: () => boolean;+ }>('BillingEnabledGuard').map((billingEnabledGuard) =>+ jest.spyOn(billingEnabledGuard, 'canActivate'),+ );+ setIsBillingEnabled(true);+ await deleteGettingStartedUserVars();+ });++ afterAll(async () => {+ billingEnabledGuardSpies.forEach((spy) => spy.mockRestore());+ await deleteGettingStartedUserVars();+ });++ it('refuses every getting started request when billing is disabled', async () => {+ setIsBillingEnabled(false);++ try {+ const responses = await Promise.all([+ makeMetadataApiRequest({ query: GETTING_STARTED_PROGRESS_QUERY }),+ makeMetadataApiRequest({+ query: GETTING_STARTED_WORKFLOW_PREVIEWS_QUERY,+ }),+ ]);++ responses.forEach((response) =>+ expect(response.body.errors?.[0]?.extensions?.code).toBe('FORBIDDEN'),+ );+ } finally {+ setIsBillingEnabled(true);+ }+ });++ describe('gettingStartedProgress', () => {+ it('lists the steps in order, without the app step on an empty catalog, and completes the connected mailbox step', async () => {+ const response = await makeMetadataApiRequest({+ query: GETTING_STARTED_PROGRESS_QUERY,+ });++ expect(response.body.errors).toBeUndefined();++ const { steps, completedStepActionKeys } =+ response.body.data.gettingStartedProgress;++ expect(steps).toEqual([+ { actionKey: 'CONNECT_MAILBOX', kind: 'CUSTOM' },+ { actionKey: 'IMPORT_DATA', kind: 'CUSTOM' },+ { actionKey: 'CUSTOMIZE_DATA_MODEL', kind: 'PROMPT' },+ { actionKey: 'INVITE_TEAM', kind: 'CUSTOM' },+ { actionKey: 'HANDOVER_DEALS', kind: 'WORKFLOW' },+ { actionKey: 'FOLLOW_UP_DEALS', kind: 'PROMPT' },+ ]);+ expect(completedStepActionKeys).toContain('CONNECT_MAILBOX');+ expect(+ await findJaneUserVar('GETTING_STARTED_COMPLETED_CONNECT_MAILBOX'),+ ).toEqual({ completedAt: expect.any(String) });+ });++ it('leaves out the handover step without a mailbox that can send', async () => {+ const activeMailboxes: { id: string }[] =+ await globalThis.testDataSource.query(+ `SELECT "id" FROM core."connectedAccount" WHERE "userWorkspaceId" = $1 AND "archivedAt" IS NULL`,+ [USER_WORKSPACE_DATA_SEED_IDS.JANE],+ );+ const activeMailboxIds = activeMailboxes.map(({ id }) => id);++ await globalThis.testDataSource.query(+ `UPDATE core."connectedAccount" SET "archivedAt" = NOW() WHERE "id" = ANY($1)`,+ [activeMailboxIds],+ );++ try {+ const response = await makeMetadataApiRequest({+ query: GETTING_STARTED_PROGRESS_QUERY,+ });++ expect(response.body.errors).toBeUndefined();+ expect(+ response.body.data.gettingStartedProgress.steps,+ ).not.toContainEqual(+ expect.objectContaining({ actionKey: 'HANDOVER_DEALS' }),+ );+ } finally {+ await globalThis.testDataSource.query(+ `UPDATE core."connectedAccount" SET "archivedAt" = NULL WHERE "id" = ANY($1)`,+ [activeMailboxIds],+ );+ }+ });+ });++ describe('assigned step action keys', () => {+ beforeEach(deleteCompanyEnrichmentAttempt);++ afterEach(async () => {+ await deleteGettingStartedUserVars();+ await deleteCompanyEnrichmentAttempt();+ });++ it('saves the assigned list once the company enrichment is final', async () => {+ await insertKeyValuePair({+ userId: null,+ key: 'COMPANY_ENRICHMENT_ATTEMPT',+ value: {+ domain: 'apple.dev',+ outcome: 'notFound',+ attemptedAt: '2026-10-30T00:00:00.000Z',+ },+ type: 'CONFIG_VARIABLE',+ });++ const response = await makeMetadataApiRequest({+ query: GETTING_STARTED_PROGRESS_QUERY,+ });++ expect(response.body.errors).toBeUndefined();+ expect(await findJaneUserVar('GETTING_STARTED_STEP_ACTION_KEYS')).toEqual(+ [+ 'CONNECT_MAILBOX',+ 'IMPORT_DATA',+ 'CUSTOMIZE_DATA_MODEL',+ 'INVITE_TEAM',+ 'HANDOVER_DEALS',+ 'FOLLOW_UP_DEALS',+ 'INSTALL_APP',+ ],+ );+ });++ it('does not save the list after a transient enrichment error', async () => {+ await insertKeyValuePair({+ userId: null,+ key: 'COMPANY_ENRICHMENT_ATTEMPT',+ value: {+ domain: 'apple.dev',+ outcome: 'transientError',+ httpStatus: 503,+ message: 'Service unavailable',+ attemptedAt: '2026-10-30T00:00:00.000Z',+ },+ type: 'CONFIG_VARIABLE',+ });++ const response = await makeMetadataApiRequest({+ query: GETTING_STARTED_PROGRESS_QUERY,+ });++ expect(response.body.errors).toBeUndefined();+ expect(+ await findJaneUserVar('GETTING_STARTED_STEP_ACTION_KEYS'),+ ).toBeUndefined();+ });++ it('keeps the saved list in its order and drops unknown keys', async () => {+ await insertKeyValuePair({+ userId: USER_DATA_SEED_IDS.JANE,+ key: 'GETTING_STARTED_STEP_ACTION_KEYS',+ value: ['FOLLOW_UP_DEALS', 'REMOVED_STEP', 'IMPORT_DATA'],+ type: 'USER_VARIABLE',+ });++ const response = await makeMetadataApiRequest({+ query: GETTING_STARTED_PROGRESS_QUERY,+ });++ expect(response.body.errors).toBeUndefined();+ expect(response.body.data.gettingStartedProgress.steps).toEqual([+ { actionKey: 'FOLLOW_UP_DEALS', kind: 'PROMPT' },+ { actionKey: 'IMPORT_DATA', kind: 'CUSTOM' },+ ]);+ });+ });++ describe('updateGettingStarted', () => {+ it('persists the selected step, the snooze and the hide', async () => {+ const response = await updateGettingStarted({+ selectedStepActionKey: GettingStartedStepActionKey.INVITE_TEAM,+ snoozedUntil: '2099-01-01T00:00:00.000Z',+ isHidden: true,+ });++ expect(response.body.errors).toBeUndefined();+ expect(response.body.data.updateGettingStarted).toMatchObject({+ selectedStepActionKey: 'INVITE_TEAM',+ snoozedUntil: '2099-01-01T00:00:00.000Z',+ isHidden: true,+ });+ });++ it('completes a step', async () => {+ const response = await updateGettingStarted({+ completedStepActionKey: GettingStartedStepActionKey.INVITE_TEAM,+ });++ expect(response.body.errors).toBeUndefined();+ expect(+ response.body.data.updateGettingStarted.completedStepActionKeys,+ ).toContain('INVITE_TEAM');+ });++ it('keeps the first completion when a step is completed twice', async () => {+ await updateGettingStarted({+ completedStepActionKey: GettingStartedStepActionKey.FOLLOW_UP_DEALS,+ });++ const firstCompletion = await findJaneUserVar(+ 'GETTING_STARTED_COMPLETED_FOLLOW_UP_DEALS',+ );++ const secondResponse = await updateGettingStarted({+ completedStepActionKey: GettingStartedStepActionKey.FOLLOW_UP_DEALS,+ });++ expect(secondResponse.body.errors).toBeUndefined();+ expect(firstCompletion).toEqual({ completedAt: expect.any(String) });+ expect(+ await findJaneUserVar('GETTING_STARTED_COMPLETED_FOLLOW_UP_DEALS'),+ ).toEqual(firstCompletion);+ });+ });++ describe('gettingStartedWorkflowPreviews', () => {+ it('lists the handover trigger and its visible steps', async () => {+ const response = await makeMetadataApiRequest({+ query: GETTING_STARTED_WORKFLOW_PREVIEWS_QUERY,+ });++ expect(response.body.errors).toBeUndefined();+ expect(response.body.data.gettingStartedWorkflowPreviews).toEqual([+ {+ stepActionKey: 'HANDOVER_DEALS',+ trigger: {+ type: 'DATABASE_EVENT',+ databaseEventAction: 'updated',+ title: 'A deal is won',+ },+ actions: [+ { type: 'CREATE_RECORD', title: 'Create a kickoff task' },+ { type: 'SEND_EMAIL', title: 'Email the account owner' },+ ],+ },+ ]);+ });+ });++ describe('prepareGettingStartedWorkflow', () => {+ let handoverWorkflowId: string | undefined;++ afterAll(async () => {+ if (isDefined(handoverWorkflowId)) {+ await deleteCoreWorkflows({ coreWorkflowIds: [handoverWorkflowId] });+ }+ });++ it('refuses a step that has no workflow', async () => {+ const response = await prepareGettingStartedWorkflow('FOLLOW_UP_DEALS');++ expect(response.body.errors?.[0]?.extensions?.subCode).toBe(+ 'INVALID_STEP',+ );+ expect(+ await findWorkspaceUserVar('GETTING_STARTED_WORKFLOW_FOLLOW_UP_DEALS'),+ ).toBeUndefined();+ });++ it('reuses the draft and leaves it off', async () => {+ const firstResponse =+ await prepareGettingStartedWorkflow('HANDOVER_DEALS');++ expect(firstResponse.body.errors).toBeUndefined();++ const handover = firstResponse.body.data.prepareGettingStartedWorkflow;++ handoverWorkflowId = handover.workflowId;++ expect(+ await findWorkspaceUserVar('GETTING_STARTED_WORKFLOW_HANDOVER_DEALS'),+ ).toEqual(handover);++ const secondResponse =+ await prepareGettingStartedWorkflow('HANDOVER_DEALS');++ expect(secondResponse.body.data.prepareGettingStartedWorkflow).toEqual(+ handover,+ );++ const draftVersion = await findCoreWorkflowVersion({+ coreWorkflowVersionId: handover.versionId,+ });++ expect(draftVersion.status).toBe('DRAFT');+ expect(await findCompletedStepActionKeys()).not.toContain(+ 'HANDOVER_DEALS',+ );+ });+ });+});diff --git a/packages/twenty-server/test/integration/utils/get-app-injectables-by-class-name.util.ts b/packages/twenty-server/test/integration/utils/get-app-injectables-by-class-name.util.tsnew file mode 100644index 00000000000..98a71652cdc--- /dev/null+++ b/packages/twenty-server/test/integration/utils/get-app-injectables-by-class-name.util.ts@@ -0,0 +1,26 @@+type InjectableWrapper = { instance: unknown };+type ContainerModule = { injectables: Map<unknown, InjectableWrapper> };++export const getAppInjectablesByClassName = <T>(className: string): T[] => {+ if (!global.app) {+ throw new Error(+ 'global.app is not set: integration test globalSetup has not run',+ );+ }++ const container = (+ global.app as unknown as {+ container: { getModules: () => Map<string, ContainerModule> };+ }+ ).container;++ return [...container.getModules().values()].flatMap((containerModule) =>+ [...containerModule.injectables].flatMap(([token, wrapper]) =>+ typeof token === 'function' &&+ token.name === className &&+ Boolean(wrapper.instance)+ ? [wrapper.instance as T]+ : [],+ ),+ );+};diff --git a/packages/twenty-shared/src/application/constants/GettingStartedAppUniversalIdentifiers.ts b/packages/twenty-shared/src/application/constants/GettingStartedAppUniversalIdentifiers.tsnew file mode 100644index 00000000000..5b5c593d7fc--- /dev/null+++ b/packages/twenty-shared/src/application/constants/GettingStartedAppUniversalIdentifiers.ts@@ -0,0 +1,7 @@+import { TWENTY_PUBLIC_APP_UNIVERSAL_IDENTIFIERS } from '@/application/constants/TwentyPublicAppUniversalIdentifiers';++export const GETTING_STARTED_APP_UNIVERSAL_IDENTIFIERS = [+ TWENTY_PUBLIC_APP_UNIVERSAL_IDENTIFIERS.SLACK,+ TWENTY_PUBLIC_APP_UNIVERSAL_IDENTIFIERS.TEAMS,+ TWENTY_PUBLIC_APP_UNIVERSAL_IDENTIFIERS.FATHOM,+] as const;diff --git a/packages/twenty-shared/src/application/index.ts b/packages/twenty-shared/src/application/index.tsindex b4c8860854d..550a501fce6 100644--- a/packages/twenty-shared/src/application/index.ts+++ b/packages/twenty-shared/src/application/index.ts@@ -95,6 +95,7 @@ export { FRONT_COMPONENT_SHARED_DEPENDENCIES_BUILT_PATH } from './constants/Fronexport { FRONT_COMPONENT_SHARED_DEPENDENCIES_IMPORT_SPECIFIER } from './constants/FrontComponentSharedDependenciesImportSpecifier';export { FRONT_COMPONENT_WIDGET_PAGE_LAYOUT_TYPES } from './constants/FrontComponentWidgetPageLayoutTypes';export { GENERATED_DIR } from './constants/GeneratedDirectory';+export { GETTING_STARTED_APP_UNIVERSAL_IDENTIFIERS } from './constants/GettingStartedAppUniversalIdentifiers';export { MINIMUM_UNIVERSAL_IDENTIFIER_UUID_VERSION } from './constants/MinimumUniversalIdentifierUuidVersion';export { NODE_ESM_CJS_BANNER } from './constants/NodeEsmCjsBanner';export { OUTPUT_DIR } from './constants/OutputDirectory';diff --git a/packages/twenty-shared/src/types/FeatureFlagKey.ts b/packages/twenty-shared/src/types/FeatureFlagKey.tsindex 895f451b791..43649959e44 100644--- a/packages/twenty-shared/src/types/FeatureFlagKey.ts+++ b/packages/twenty-shared/src/types/FeatureFlagKey.ts@@ -11,4 +11,5 @@ export enum FeatureFlagKey {IS_PRIVATE_RECORD_ENABLED = 'IS_PRIVATE_RECORD_ENABLED',IS_RELATED_RECORD_PATHS_ENABLED = 'IS_RELATED_RECORD_PATHS_ENABLED',IS_ROW_LEVEL_PERMISSION_RELATION_HOP_ENABLED = 'IS_ROW_LEVEL_PERMISSION_RELATION_HOP_ENABLED',+ IS_GETTING_STARTED_ENABLED = 'IS_GETTING_STARTED_ENABLED',}