The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Let apps embed websites with microphone and camera access (#28944)
Raphaël Bosi0aec106a0e22
diff --git a/packages/twenty-agent-skills/references/concepts/how-apps-work.md b/packages/twenty-agent-skills/references/concepts/how-apps-work.mdindex 67aaffcd630..50d234d6ae0 100644--- a/packages/twenty-agent-skills/references/concepts/how-apps-work.md+++ b/packages/twenty-agent-skills/references/concepts/how-apps-work.md@@ -79,6 +79,8 @@ For microphone or camera capture, declare `requestedCapabilities: ['microphone']Calling `navigator.mediaDevices.getUserMedia()` without a saved grant pauses capture and shows an approval dialog, including for older apps without `requestedCapabilities`. Declining leaves capture blocked before browser permissions are requested. Package updates do not automatically add grants; locally synced development apps receive their declared capabilities. Browser and operating system permissions still apply after workspace approval.+An embedded website such as a phone or video tool needs its exact HTTPS origin declared in `requestedIframeMediaPermissions` in `defineApplication()`, with microphone and camera set separately: `[{ origin: 'https://phone.example.com', microphone: true, camera: false }]`. Declared websites appear during installation for the same workspace-wide approval. Locally synced development apps receive their declared iframe origins automatically. Updates to published apps preserve existing grants and do not automatically grant additional media access. A member who can manage apps can approve new requests from the installed app's **General** tab, under **Embedded website media access** > **Review media access**. This approval uses a native browser confirmation showing the app, website origins, and requested microphone or camera access. After approving, reload open Twenty tabs to apply the updated permissions. Front-component iframes must request the features (`allow="microphone"` or `allow="microphone; camera"`). App-defined `IFRAME` page layout widgets use the owning app's grants instead of workspace security approvals or other apps' grants. Twenty delegates only to granted origins, and only after a member selects the embed's **Enable** control and approves a native browser confirmation showing the app, website origin, and requested microphone or camera access. `srcDoc` iframes and embeds at Twenty's own origin never receive media access.+## App File StructureA typical Twenty app after scaffolding:diff --git a/packages/twenty-agent-skills/references/develop-app/front-components.md b/packages/twenty-agent-skills/references/develop-app/front-components.mdindex 5e4baa4bcb6..750680ff05c 100644--- a/packages/twenty-agent-skills/references/develop-app/front-components.md+++ b/packages/twenty-agent-skills/references/develop-app/front-components.md@@ -62,6 +62,8 @@ Use `openCommandConfirmationModal` from `twenty-sdk/front-component` for confirmThe component runs in a Web Worker with a partial DOM. Prefer CSS flexbox, grid and width-based container queries for layout. Avoid height-based breakpoints, which can oscillate when content determines widget height. `canvas`, `scrollIntoView` and native top-layer APIs are unsupported. Check the current limitations in the front component guide before depending on other browser APIs.+Iframes stay sandboxed. An embedded phone or video tool receives microphone or camera access only through the embed flow in `../concepts/how-apps-work.md`.+## Record Context And DataFor record-page components, read selection from front component context:diff --git a/packages/twenty-agent-skills/references/publish-app/prepare-for-app-store.md b/packages/twenty-agent-skills/references/publish-app/prepare-for-app-store.mdindex 3c80cd30f7b..3a67a685682 100644--- a/packages/twenty-agent-skills/references/publish-app/prepare-for-app-store.md+++ b/packages/twenty-agent-skills/references/publish-app/prepare-for-app-store.md@@ -186,6 +186,8 @@ export default defineApplication({Set `requestedCapabilities` only when the app uses microphone or camera capture. Supported values are `'microphone'` and `'camera'`; request only the devices the app needs and explain their use in the README. The installation screen shows these requests for workspace-wide approval by a member who can manage apps. Omitting a capability does not silently grant access: first use pauses capture for approval, including for older apps without declarations. Browser and operating system permissions remain separate, and package updates do not automatically add grants.+Set `requestedIframeMediaPermissions` only when a front component or an `IFRAME` page layout widget embeds a website that needs the microphone or camera. List up to 20 unique exact HTTPS origins, with `microphone` and `camera` set separately and at least one set to `true`; the installation screen shows each website for the same approval.+Only set `aboutDescription` when the marketplace About tab should differ from the npm README. Otherwise keep one source of truth in `README.md`. The About tab renders markdown text only: images and raw HTML (badges, `<div>` blocks) are not rendered, so keep the marketplace-facing content in plain markdown.If the app requires a specific Twenty server version, set `engines.twenty` in `package.json`. If publishing to npm, add the `twenty-app` keyword.diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphqlindex d354a628930..9cbcacf121e 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql@@ -450,6 +450,7 @@ type Application {defaultRoleId: Stringdescription: StringfrontComponents: [FrontComponent!]!+ grantedIframeMediaPermissions: [IframeMediaPermission!]!healthCheckLogicFunctionId: UUIDid: UUID!isUninstallBlockedByOtherWorkspaceInstallations: Boolean!@@ -460,6 +461,7 @@ type Application {objects: [Object!]!packageJsonChecksum: StringpackageJsonFileId: UUID+ requestedIframeMediaPermissions: [IframeMediaPermission!]!runOnUserPreferences: Boolean!settingsCustomTabFrontComponentId: UUIDsettingsMenuItems: [SettingsMenuItem!]@@ -2546,6 +2548,7 @@ type FormFieldConfiguration {type FrontComponent {applicationGrantedCapabilities: [String!]+ applicationGrantedIframeMediaPermissions: [IframeMediaPermission!]applicationId: UUID!applicationName: StringapplicationTokenPair: ApplicationTokenPair @deprecated(reason: "Use generateFrontComponentApplicationTokenPair")@@ -2712,6 +2715,12 @@ type IframeMediaPermission {origin: String!}+input IframeMediaPermissionInput {+ camera: Boolean!+ microphone: Boolean!+ origin: String!+}+type ImapSmtpCaldavConnectionSuccess {connectedAccountId: String!success: Boolean!@@ -3029,6 +3038,7 @@ type MarketplaceAppDetail {objects: [MarketplaceAppObject!]pricingDescription: StringrequestedCapabilities: [String!]!+ requestedIframeMediaPermissions: [IframeMediaPermission!]!roles: [MarketplaceAppRole!]screenshots: [String!]! @deprecated(reason: "Use galleryImages instead")sourcePackage: String@@ -3319,6 +3329,7 @@ type Mutation {activateWorkspace(data: ActivateWorkspaceInput!): Workspace!addAgentChatMessageReaction(emoji: String!, messageId: UUID!): [AgentMessageReactionSummary!]!addQueryToEventStream(input: AddQuerySubscriptionInput!): Boolean!+ approveApplicationIframeMediaPermissions(applicationId: UUID!, approvedIframeMediaPermissions: [IframeMediaPermissionInput!]!): Application!assignAgentChatThread(assigneeWorkspaceMemberId: UUID, threadId: UUID!): Boolean!assignRoleToAgent(agentId: UUID!, roleId: UUID!): Boolean!assignRoleToApiKey(apiKeyId: UUID!, roleId: UUID!): Boolean!@@ -3908,7 +3919,9 @@ enum PageLayoutType {}type PageLayoutWidget {+ applicationGrantedIframeMediaPermissions: [IframeMediaPermission!]applicationId: UUID!+ applicationName: StringconditionalAvailabilityExpression: StringconditionalDisplay: JSONconfiguration: WidgetConfiguration!diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.tsindex d5feda5e126..8db0010c5ba 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts@@ -354,6 +354,7 @@ export interface Application {defaultRoleId?: Scalars['String']description?: Scalars['String']frontComponents: FrontComponent[]+ grantedIframeMediaPermissions: IframeMediaPermission[]healthCheckLogicFunctionId?: Scalars['UUID']id: Scalars['UUID']isUninstallBlockedByOtherWorkspaceInstallations: Scalars['Boolean']@@ -364,6 +365,7 @@ export interface Application {objects: Object[]packageJsonChecksum?: Scalars['String']packageJsonFileId?: Scalars['UUID']+ requestedIframeMediaPermissions: IframeMediaPermission[]runOnUserPreferences: Scalars['Boolean']settingsCustomTabFrontComponentId?: Scalars['UUID']settingsMenuItems?: SettingsMenuItem[]@@ -1676,6 +1678,7 @@ export interface FormFieldConfiguration {export interface FrontComponent {applicationGrantedCapabilities?: Scalars['String'][]+ applicationGrantedIframeMediaPermissions?: IframeMediaPermission[]applicationId: Scalars['UUID']applicationName?: Scalars['String']/** @deprecated Use generateFrontComponentApplicationTokenPair */@@ -2074,6 +2077,7 @@ export interface MarketplaceAppDetail {objects?: MarketplaceAppObject[]pricingDescription?: Scalars['String']requestedCapabilities: Scalars['String'][]+ requestedIframeMediaPermissions: IframeMediaPermission[]roles?: MarketplaceAppRole[]/** @deprecated Use galleryImages instead */screenshots: Scalars['String'][]@@ -2304,6 +2308,7 @@ export interface Mutation {activateWorkspace: WorkspaceaddAgentChatMessageReaction: AgentMessageReactionSummary[]addQueryToEventStream: Scalars['Boolean']+ approveApplicationIframeMediaPermissions: ApplicationassignAgentChatThread: Scalars['Boolean']assignRoleToAgent: Scalars['Boolean']assignRoleToApiKey: Scalars['Boolean']@@ -2841,7 +2846,9 @@ export type PageLayoutTabLayoutMode = 'CANVAS' | 'GRID' | 'VERTICAL_LIST'export type PageLayoutType = 'DASHBOARD' | 'RECORD_FORM' | 'RECORD_INDEX' | 'RECORD_PAGE' | 'STANDALONE_PAGE'export interface PageLayoutWidget {+ applicationGrantedIframeMediaPermissions?: IframeMediaPermission[]applicationId: Scalars['UUID']+ applicationName?: Scalars['String']conditionalAvailabilityExpression?: Scalars['String']conditionalDisplay?: Scalars['JSON']configuration: WidgetConfiguration@@ -4673,6 +4680,7 @@ export interface ApplicationGenqlSelection{defaultRoleId?: boolean | numberdescription?: boolean | numberfrontComponents?: FrontComponentGenqlSelection+ grantedIframeMediaPermissions?: IframeMediaPermissionGenqlSelectionhealthCheckLogicFunctionId?: boolean | numberid?: boolean | numberisUninstallBlockedByOtherWorkspaceInstallations?: boolean | number@@ -4683,6 +4691,7 @@ export interface ApplicationGenqlSelection{objects?: ObjectGenqlSelectionpackageJsonChecksum?: boolean | numberpackageJsonFileId?: boolean | number+ requestedIframeMediaPermissions?: IframeMediaPermissionGenqlSelectionrunOnUserPreferences?: boolean | numbersettingsCustomTabFrontComponentId?: boolean | numbersettingsMenuItems?: SettingsMenuItemGenqlSelection@@ -6250,6 +6259,7 @@ export interface FormFieldConfigurationGenqlSelection{export interface FrontComponentGenqlSelection{applicationGrantedCapabilities?: boolean | number+ applicationGrantedIframeMediaPermissions?: IframeMediaPermissionGenqlSelectionapplicationId?: boolean | numberapplicationName?: boolean | number/** @deprecated Use generateFrontComponentApplicationTokenPair */@@ -6400,6 +6410,8 @@ export interface IframeMediaPermissionGenqlSelection{__scalar?: boolean | number}+export interface IframeMediaPermissionInput {camera: Scalars['Boolean'],microphone: Scalars['Boolean'],origin: Scalars['String']}+export interface ImapSmtpCaldavConnectionSuccessGenqlSelection{connectedAccountId?: boolean | numbersuccess?: boolean | number@@ -6690,6 +6702,7 @@ export interface MarketplaceAppDetailGenqlSelection{objects?: MarketplaceAppObjectGenqlSelectionpricingDescription?: boolean | numberrequestedCapabilities?: boolean | number+ requestedIframeMediaPermissions?: IframeMediaPermissionGenqlSelectionroles?: MarketplaceAppRoleGenqlSelection/** @deprecated Use galleryImages instead */screenshots?: boolean | number@@ -6910,6 +6923,7 @@ export interface MutationGenqlSelection{activateWorkspace?: (WorkspaceGenqlSelection & { __args: {data: ActivateWorkspaceInput} })addAgentChatMessageReaction?: (AgentMessageReactionSummaryGenqlSelection & { __args: {emoji: Scalars['String'], messageId: Scalars['UUID']} })addQueryToEventStream?: { __args: {input: AddQuerySubscriptionInput} }+ approveApplicationIframeMediaPermissions?: (ApplicationGenqlSelection & { __args: {applicationId: Scalars['UUID'], approvedIframeMediaPermissions: IframeMediaPermissionInput[]} })assignAgentChatThread?: { __args: {assigneeWorkspaceMemberId?: (Scalars['UUID'] | null), threadId: Scalars['UUID']} }assignRoleToAgent?: { __args: {agentId: Scalars['UUID'], roleId: Scalars['UUID']} }assignRoleToApiKey?: { __args: {apiKeyId: Scalars['UUID'], roleId: Scalars['UUID']} }@@ -7461,7 +7475,9 @@ export interface PageLayoutTabGenqlSelection{}export interface PageLayoutWidgetGenqlSelection{+ applicationGrantedIframeMediaPermissions?: IframeMediaPermissionGenqlSelectionapplicationId?: boolean | number+ applicationName?: boolean | numberconditionalAvailabilityExpression?: boolean | numberconditionalDisplay?: boolean | numberconfiguration?: WidgetConfigurationGenqlSelectiondiff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.tsindex e3c88b4477d..7a88aee8e35 100644--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts@@ -55,74 +55,74 @@ export default {300,306,308,- 320,- 327,+ 321,328,329,- 341,- 343,- 359,+ 330,+ 342,+ 344,360,361,362,363,364,- 366,+ 365,367,368,- 371,+ 369,372,- 374,- 377,- 382,- 386,- 395,- 402,+ 373,+ 375,+ 378,+ 383,+ 387,+ 396,403,- 406,- 410,+ 404,+ 407,411,- 416,- 420,- 443,- 445,+ 412,+ 417,+ 421,+ 444,446,- 454,- 466,- 468,- 472,- 477,- 497,- 509,+ 447,+ 455,+ 467,+ 469,+ 473,+ 478,+ 498,510,- 512,- 537,- 539,- 541,- 606,- 626,- 633,- 635,- 639,- 650,- 656,+ 511,+ 513,+ 538,+ 540,+ 542,+ 607,+ 627,+ 634,+ 636,+ 640,+ 651,657,- 659,+ 658,660,- 662,+ 661,663,664,- 667,+ 665,668,669,- 674,- 676,- 679,- 684,+ 670,+ 675,+ 677,+ 680,685,686,- 689,- 690+ 687,+ 690,+ 691],"types": {"ActivateWorkspaceInput": {@@ -139,7 +139,7 @@ export default {1],"operationSignature": [- 327+ 328],"queryId": [1@@ -150,7 +150,7 @@ export default {},"Agent": {"applicationId": [- 537+ 538],"createdAt": [213@@ -162,7 +162,7 @@ export default {1],"id": [- 537+ 538],"isActive": [4@@ -177,7 +177,7 @@ export default {1],"modelConfiguration": [- 327+ 328],"modelId": [1@@ -189,13 +189,13 @@ export default {1],"responseFormat": [- 327+ 328],"roleId": [- 537+ 538],"triggers": [- 327+ 328],"updatedAt": [213@@ -207,7 +207,7 @@ export default {"Boolean": {},"AgentChatChannel": {"applicationId": [- 537+ 538],"color": [1@@ -216,7 +216,7 @@ export default {1],"id": [- 537+ 538],"isAccessible": [4@@ -231,7 +231,7 @@ export default {6],"roleIds": [- 537+ 538],"__typename": [1@@ -247,7 +247,7 @@ export default {1],"id": [- 537+ 538],"label": [1@@ -264,7 +264,7 @@ export default {10],"channelId": [- 537+ 538],"doneCount": [10@@ -304,7 +304,7 @@ export default {4],"threadIds": [- 537+ 538],"__typename": [1@@ -313,7 +313,7 @@ export default {"AgentChatChannelThreadStatus": {},"AgentChatEvent": {"event": [- 327+ 328],"threadId": [1@@ -405,7 +405,7 @@ export default {213],"id": [- 537+ 538],"isSubscribed": [4@@ -423,7 +423,7 @@ export default {213],"threadId": [- 537+ 538],"updatedAt": [213@@ -434,7 +434,7 @@ export default {},"AgentIdInput": {"id": [- 537+ 538],"__typename": [1@@ -442,13 +442,13 @@ export default {},"AgentMessage": {"agentId": [- 537+ 538],"createdAt": [213],"id": [- 537+ 538],"parts": [22@@ -463,19 +463,19 @@ export default {1],"senderUserWorkspaceId": [- 537+ 538],"senderWorkspaceMemberId": [- 537+ 538],"status": [1],"threadId": [- 537+ 538],"turnId": [- 537+ 538],"__typename": [1@@ -492,7 +492,7 @@ export default {1],"fileId": [- 537+ 538],"fileMediaType": [1@@ -501,10 +501,10 @@ export default {1],"id": [- 537+ 538],"messageId": [- 537+ 538],"orderIndex": [10@@ -513,7 +513,7 @@ export default {4],"providerMetadata": [- 327+ 328],"reasoningContent": [1@@ -549,13 +549,13 @@ export default {1],"toolInput": [- 327+ 328],"toolName": [1],"toolOutput": [- 327+ 328],"type": [1@@ -566,7 +566,7 @@ export default {},"AgentMessageReactionSummary": {"agentIds": [- 537+ 538],"emoji": [1@@ -575,7 +575,7 @@ export default {4],"workspaceMemberIds": [- 537+ 538],"__typename": [1@@ -601,7 +601,7 @@ export default {1],"id": [- 537+ 538],"input": [1@@ -625,7 +625,7 @@ export default {25],"threadId": [- 537+ 538],"threadTitle": [1@@ -640,13 +640,13 @@ export default {"AgentTurnStatus": {},"AggregateChartConfiguration": {"aggregateFieldMetadataId": [- 537+ 538],"aggregateOperation": [27],"configurationType": [- 667+ 668],"description": [1@@ -655,7 +655,7 @@ export default {4],"filter": [- 327+ 328],"firstDayOfTheWeek": [10@@ -670,7 +670,7 @@ export default {1],"ratioAggregateConfig": [- 438+ 439],"suffix": [1@@ -778,7 +778,7 @@ export default {213],"id": [- 537+ 538],"name": [1@@ -787,7 +787,7 @@ export default {213],"role": [- 460+ 461],"updatedAt": [213@@ -801,7 +801,7 @@ export default {213],"id": [- 537+ 538],"name": [1@@ -876,7 +876,7 @@ export default {44],"value": [- 327+ 328],"__typename": [1@@ -931,13 +931,13 @@ export default {1],"personId": [- 537+ 538],"role": [- 368+ 369],"workspaceMemberId": [- 537+ 538],"__typename": [1@@ -951,7 +951,7 @@ export default {77],"applicationRegistrationId": [- 537+ 538],"applicationVariables": [80@@ -960,7 +960,7 @@ export default {4],"availablePackages": [- 327+ 328],"canBeUninstalled": [4@@ -972,7 +972,7 @@ export default {213],"defaultLogicFunctionRole": [- 460+ 461],"defaultRoleId": [1@@ -983,20 +983,23 @@ export default {"frontComponents": [288],+ "grantedIframeMediaPermissions": [+ 310+ ],"healthCheckLogicFunctionId": [- 537+ 538],"id": [- 537+ 538],"isUninstallBlockedByOtherWorkspaceInstallations": [4],"logicFunctions": [- 340+ 341],"logoFileId": [- 537+ 538],"logoUrl": [1@@ -1005,22 +1008,25 @@ export default {1],"objects": [- 388+ 389],"packageJsonChecksum": [1],"packageJsonFileId": [- 537+ 538+ ],+ "requestedIframeMediaPermissions": [+ 310],"runOnUserPreferences": [4],"settingsCustomTabFrontComponentId": [- 537+ 538],"settingsMenuItems": [- 496+ 497],"universalIdentifier": [1@@ -1032,7 +1038,7 @@ export default {1],"yarnLockFileId": [- 537+ 538],"__typename": [1@@ -1040,7 +1046,7 @@ export default {},"ApplicationAuthorization": {"applicationId": [- 537+ 538],"applicationName": [1@@ -1052,7 +1058,7 @@ export default {213],"id": [- 537+ 538],"lastAuthorizedAt": [213@@ -1064,7 +1070,7 @@ export default {1],"workspaceId": [- 537+ 538],"__typename": [1@@ -1075,7 +1081,7 @@ export default {1],"id": [- 537+ 538],"__typename": [1@@ -1083,7 +1089,7 @@ export default {},"ApplicationConnectedAccountDTO": {"applicationId": [- 537+ 538],"archivedAt": [213@@ -1095,10 +1101,10 @@ export default {1],"connectionParameters": [- 434+ 435],"connectionProviderId": [- 537+ 538],"createdAt": [213@@ -1110,7 +1116,7 @@ export default {1],"id": [- 537+ 538],"isOwnedByCurrentUser": [4@@ -1137,7 +1143,7 @@ export default {213],"userWorkspaceId": [- 537+ 538],"visibility": [1@@ -1154,7 +1160,7 @@ export default {1],"id": [- 537+ 538],"logoUrl": [1@@ -1197,7 +1203,7 @@ export default {58],"manifest": [- 327+ 328],"__typename": [1@@ -1251,7 +1257,7 @@ export default {},"ApplicationFileCompletionError": {"fileId": [- 537+ 538],"message": [1@@ -1299,7 +1305,7 @@ export default {281],"fileId": [- 537+ 538],"filePath": [1@@ -1509,7 +1515,7 @@ export default {},"ApplicationPreferences": {"applicationId": [- 537+ 538],"connectionProviders": [52@@ -1518,10 +1524,10 @@ export default {4],"settingsMenuItems": [- 496+ 497],"variables": [- 638+ 639],"__typename": [1@@ -1535,7 +1541,7 @@ export default {1],"id": [- 537+ 538],"isConfigured": [4@@ -1565,7 +1571,7 @@ export default {1],"ownerWorkspaceId": [- 537+ 538],"sourcePackage": [1@@ -1604,7 +1610,7 @@ export default {6],"versionDistribution": [- 648+ 649],"__typename": [1@@ -1612,7 +1618,7 @@ export default {},"ApplicationRegistrationSummary": {"id": [- 537+ 538],"latestAvailableVersion": [1@@ -1635,7 +1641,7 @@ export default {1],"id": [- 537+ 538],"isDeprecated": [4@@ -1653,7 +1659,7 @@ export default {1],"options": [- 327+ 328],"type": [1@@ -1684,7 +1690,7 @@ export default {1],"id": [- 537+ 538],"isDeprecated": [4@@ -1702,7 +1708,7 @@ export default {1],"options": [- 327+ 328],"scope": [81@@ -1726,7 +1732,7 @@ export default {1],"id": [- 537+ 538],"isValidated": [4@@ -1763,7 +1769,7 @@ export default {4],"sso": [- 476+ 477],"__typename": [1@@ -1823,7 +1829,7 @@ export default {1],"id": [- 537+ 538],"inviteHash": [1@@ -1838,10 +1844,10 @@ export default {1],"sso": [- 475+ 476],"workspaceUrls": [- 691+ 692],"__typename": [1@@ -1872,7 +1878,7 @@ export default {"AxisNameDisplay": {},"BarChartConfiguration": {"aggregateFieldMetadataId": [- 537+ 538],"aggregateOperation": [27@@ -1884,7 +1890,7 @@ export default {1],"configurationType": [- 667+ 668],"description": [1@@ -1896,7 +1902,7 @@ export default {4],"filter": [- 327+ 328],"firstDayOfTheWeek": [10@@ -1917,10 +1923,10 @@ export default {4],"primaryAxisDateGranularity": [- 402+ 403],"primaryAxisGroupByFieldMetadataId": [- 537+ 538],"primaryAxisGroupBySubFieldName": [1@@ -1938,10 +1944,10 @@ export default {6],"secondaryAxisGroupByDateGranularity": [- 402+ 403],"secondaryAxisGroupByFieldMetadataId": [- 537+ 538],"secondaryAxisGroupBySubFieldName": [1@@ -1964,10 +1970,10 @@ export default {},"BarChartData": {"data": [- 327+ 328],"formattedToRawLookup": [- 327+ 328],"groupMode": [97@@ -2005,10 +2011,10 @@ export default {},"BarChartDataInput": {"configuration": [- 327+ 328],"objectMetadataId": [- 537+ 538],"__typename": [1@@ -2050,10 +2056,10 @@ export default {4],"id": [- 537+ 538],"userCreditsFallback": [- 639+ 640],"__typename": [1@@ -2073,7 +2079,7 @@ export default {4],"status": [- 510+ 511],"__typename": [1@@ -2183,7 +2189,7 @@ export default {127],"recurringInterval": [- 509+ 510],"stripePriceId": [1@@ -2200,7 +2206,7 @@ export default {127],"recurringInterval": [- 509+ 510],"stripePriceId": [1@@ -2347,19 +2353,19 @@ export default {4],"id": [- 537+ 538],"interval": [- 509+ 510],"metadata": [- 327+ 328],"phases": [123],"status": [- 510+ 511],"__typename": [1@@ -2377,7 +2383,7 @@ export default {4],"id": [- 537+ 538],"quantity": [6@@ -2453,7 +2459,7 @@ export default {},"CalendarChannel": {"connectedAccountId": [- 537+ 538],"contactAutoCreationPolicy": [130@@ -2468,7 +2474,7 @@ export default {1],"id": [- 537+ 538],"isContactAutoCreationEnabled": [4@@ -2507,7 +2513,7 @@ export default {"CalendarChannelVisibility": {},"CalendarConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -2515,7 +2521,7 @@ export default {},"CallRecordingSummaryConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -2523,7 +2529,7 @@ export default {},"CallRecordingTranscriptConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -2600,7 +2606,7 @@ export default {"ChartNumberFormat": {},"ChatConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -2608,7 +2614,7 @@ export default {},"ChatStreamCatchupChunks": {"chunks": [- 327+ 328],"error": [146@@ -2633,7 +2639,7 @@ export default {},"ChatThreadsConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -2758,7 +2764,7 @@ export default {6],"modelFamily": [- 382+ 383],"modelFamilyLabel": [1@@ -2767,7 +2773,7 @@ export default {1],"nativeCapabilities": [- 384+ 385],"outputCostPerMillionTokens": [6@@ -2900,13 +2906,13 @@ export default {154],"publicFeatureFlags": [- 432+ 433],"publicFunctionDomain": [1],"sentry": [- 494+ 495],"serverUrl": [1@@ -2915,7 +2921,7 @@ export default {4],"support": [- 511+ 512],"__typename": [1@@ -2948,10 +2954,10 @@ export default {},"CommandMenuItem": {"applicationId": [- 537+ 538],"availabilityObjectMetadataId": [- 537+ 538],"availabilityType": [157@@ -2963,7 +2969,7 @@ export default {1],"coreWorkflowVersionId": [- 537+ 538],"createdAt": [213@@ -2975,7 +2981,7 @@ export default {288],"frontComponentId": [- 537+ 538],"hotKeys": [1@@ -2984,7 +2990,7 @@ export default {1],"id": [- 537+ 538],"isActive": [4@@ -2996,10 +3002,10 @@ export default {1],"navigationTargetObjectMetadataId": [- 537+ 538],"pageLayoutId": [- 537+ 538],"payload": [158@@ -3011,13 +3017,13 @@ export default {1],"universalIdentifier": [- 537+ 538],"updatedAt": [213],"workflowVersionId": [- 537+ 538],"__typename": [1@@ -3026,10 +3032,10 @@ export default {"CommandMenuItemAvailabilityType": {},"CommandMenuItemPayload": {"on_ObjectMetadataCommandMenuItemPayload": [- 394+ 395],"on_PathCommandMenuItemPayload": [- 418+ 419],"__typename": [1@@ -3048,7 +3054,7 @@ export default {},"ConnectedAccountPublicDTO": {"applicationId": [- 537+ 538],"archivedAt": [213@@ -3060,10 +3066,10 @@ export default {1],"connectionParameters": [- 434+ 435],"connectionProviderId": [- 537+ 538],"createdAt": [213@@ -3075,7 +3081,7 @@ export default {1],"id": [- 537+ 538],"lastCredentialsRefreshedAt": [213@@ -3099,7 +3105,7 @@ export default {213],"userWorkspaceId": [- 537+ 538],"visibility": [1@@ -3111,19 +3117,19 @@ export default {"ConnectedAccountScope": {},"ConnectedImapSmtpCaldavAccount": {"connectionParameters": [- 312+ 313],"handle": [1],"id": [- 537+ 538],"provider": [1],"userWorkspaceId": [- 537+ 538],"__typename": [1@@ -3162,7 +3168,7 @@ export default {1],"roleIds": [- 537+ 538],"__typename": [1@@ -3179,7 +3185,7 @@ export default {1],"modelConfiguration": [- 327+ 328],"modelId": [1@@ -3191,13 +3197,13 @@ export default {1],"responseFormat": [- 327+ 328],"roleId": [- 537+ 538],"triggers": [- 327+ 328],"__typename": [1@@ -3214,7 +3220,7 @@ export default {1],"roleId": [- 537+ 538],"__typename": [1@@ -3222,7 +3228,7 @@ export default {},"CreateAppMessageChannelInput": {"connectedAccountId": [- 537+ 538],"displayName": [1@@ -3231,13 +3237,13 @@ export default {1],"messagingProviderUniversalIdentifier": [- 537+ 538],"participantHandleFieldUniversalIdentifier": [- 537+ 538],"visibility": [- 364+ 365],"__typename": [1@@ -3353,7 +3359,7 @@ export default {},"CreateCommandMenuItemInput": {"availabilityObjectMetadataId": [- 537+ 538],"availabilityType": [157@@ -3365,13 +3371,13 @@ export default {1],"coreWorkflowVersionId": [- 537+ 538],"engineComponentKey": [247],"frontComponentId": [- 537+ 538],"hotKeys": [1@@ -3386,13 +3392,13 @@ export default {1],"navigationTargetObjectMetadataId": [- 537+ 538],"pageLayoutId": [- 537+ 538],"payload": [- 327+ 328],"position": [6@@ -3401,7 +3407,7 @@ export default {1],"workflowVersionId": [- 537+ 538],"__typename": [1@@ -3423,7 +3429,7 @@ export default {1],"messageChannel": [- 358+ 359],"__typename": [1@@ -3439,7 +3445,7 @@ export default {},"CreateFieldInput": {"defaultValue": [- 327+ 328],"description": [1@@ -3481,22 +3487,22 @@ export default {1],"morphRelationsCreationPayload": [- 327+ 328],"name": [1],"objectMetadataId": [- 537+ 538],"options": [- 327+ 328],"relationCreationPayload": [- 327+ 328],"settings": [- 327+ 328],"type": [274@@ -3519,7 +3525,7 @@ export default {1],"id": [- 537+ 538],"name": [1@@ -3533,7 +3539,7 @@ export default {},"CreateIndexFieldInput": {"fieldMetadataId": [- 537+ 538],"subFieldName": [1@@ -3547,10 +3553,10 @@ export default {182],"indexType": [- 320+ 321],"objectMetadataId": [- 537+ 538],"__typename": [1@@ -3558,40 +3564,40 @@ export default {},"CreateLogicFunctionFromSourceInput": {"cronTriggerSettings": [- 327+ 328],"databaseEventTriggerSettings": [- 327+ 328],"description": [1],"httpRouteTriggerSettings": [- 327+ 328],"id": [- 537+ 538],"name": [1],"serverRouteTriggerSettings": [- 327+ 328],"source": [- 327+ 328],"timeoutSeconds": [6],"toolTriggerSettings": [- 327+ 328],"universalIdentifier": [- 537+ 538],"workflowActionTriggerSettings": [- 327+ 328],"__typename": [1@@ -3599,10 +3605,10 @@ export default {},"CreateMcpServerInput": {"connectionProviderId": [- 537+ 538],"id": [- 537+ 538],"isActive": [4@@ -3625,7 +3631,7 @@ export default {1],"unsubscribeTopicId": [- 537+ 538],"__typename": [1@@ -3633,19 +3639,19 @@ export default {},"CreateNavigationMenuItemInput": {"agentChatChannelId": [- 537+ 538],"color": [1],"folderId": [- 537+ 538],"icon": [1],"id": [- 537+ 538],"link": [1@@ -3654,25 +3660,25 @@ export default {1],"pageLayoutId": [- 537+ 538],"position": [6],"targetObjectMetadataId": [- 537+ 538],"targetRecordId": [- 537+ 538],"type": [- 386+ 387],"userWorkspaceId": [- 537+ 538],"viewId": [- 537+ 538],"__typename": [1@@ -3710,7 +3716,7 @@ export default {1],"primaryKeyFieldMetadataSettings": [- 327+ 328],"shortcut": [1@@ -3751,10 +3757,10 @@ export default {1],"objectMetadataId": [- 537+ 538],"type": [- 411+ 412],"__typename": [1@@ -3762,10 +3768,10 @@ export default {},"CreatePageLayoutTabInput": {"layoutMode": [- 410+ 411],"pageLayoutId": [- 537+ 538],"position": [6@@ -3779,22 +3785,22 @@ export default {},"CreatePageLayoutWidgetInput": {"configuration": [- 327+ 328],"objectMetadataId": [- 537+ 538],"pageLayoutTabId": [- 537+ 538],"position": [- 327+ 328],"title": [1],"type": [- 668+ 669],"__typename": [1@@ -3802,16 +3808,16 @@ export default {},"CreateRecordExportInput": {"fieldMetadataIds": [- 537+ 538],"filter": [- 327+ 328],"objectMetadataId": [- 537+ 538],"orderBy": [- 327+ 328],"__typename": [1@@ -3819,19 +3825,19 @@ export default {},"CreateRelatedRecordPathInput": {"firstFieldMetadataId": [- 537+ 538],"isInherent": [4],"objectMetadataId": [- 537+ 538],"secondFieldMetadataId": [- 537+ 538],"thirdFieldMetadataId": [- 537+ 538],"__typename": [1@@ -3895,7 +3901,7 @@ export default {1],"id": [- 537+ 538],"label": [1@@ -3915,7 +3921,7 @@ export default {1],"visibility": [- 541+ 542],"__typename": [1@@ -3932,7 +3938,7 @@ export default {100],"operationType": [- 626+ 627],"periodCount": [10@@ -3941,7 +3947,7 @@ export default {1],"resourceType": [- 633+ 634],"spenderId": [1@@ -3950,7 +3956,7 @@ export default {1],"unit": [- 635+ 636],"__typename": [1@@ -3961,7 +3967,7 @@ export default {1],"errorFieldMetadataId": [- 537+ 538],"expression": [1@@ -3979,7 +3985,7 @@ export default {1],"objectMetadataId": [- 537+ 538],"__typename": [1@@ -3987,7 +3993,7 @@ export default {},"CreateViewFieldGroupInput": {"id": [- 537+ 538],"isVisible": [4@@ -3999,7 +4005,7 @@ export default {6],"viewId": [- 537+ 538],"__typename": [1@@ -4010,10 +4016,10 @@ export default {27],"fieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"isVisible": [4@@ -4025,10 +4031,10 @@ export default {6],"viewFieldGroupId": [- 537+ 538],"viewId": [- 537+ 538],"__typename": [1@@ -4036,19 +4042,19 @@ export default {},"CreateViewFilterGroupInput": {"id": [- 537+ 538],"logicalOperator": [- 656+ 657],"parentViewFilterGroupId": [- 537+ 538],"positionInViewFilterGroup": [6],"viewId": [- 537+ 538],"__typename": [1@@ -4056,31 +4062,31 @@ export default {},"CreateViewFilterInput": {"fieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"operand": [- 657+ 658],"positionInViewFilterGroup": [6],"relationTargetFieldMetadataId": [- 537+ 538],"subFieldName": [1],"value": [- 327+ 328],"viewFilterGroupId": [- 537+ 538],"viewId": [- 537+ 538],"__typename": [1@@ -4091,7 +4097,7 @@ export default {1],"id": [- 537+ 538],"isVisible": [4@@ -4100,7 +4106,7 @@ export default {6],"viewId": [- 537+ 538],"__typename": [1@@ -4111,13 +4117,13 @@ export default {1],"calendarEndFieldMetadataId": [- 537+ 538],"calendarFieldMetadataId": [- 537+ 538],"calendarLayout": [- 650+ 651],"groupLoadLimit": [10@@ -4126,7 +4132,7 @@ export default {1],"id": [- 537+ 538],"isCompact": [4@@ -4135,25 +4141,25 @@ export default {27],"kanbanAggregateOperationFieldMetadataId": [- 537+ 538],"kanbanColumnWidth": [10],"key": [- 659+ 660],"mainGroupByFieldMetadataId": [- 537+ 538],"name": [1],"objectMetadataId": [- 537+ 538],"openRecordIn": [- 660+ 661],"position": [6@@ -4162,10 +4168,10 @@ export default {4],"type": [- 663+ 664],"visibility": [- 664+ 665],"__typename": [1@@ -4173,19 +4179,19 @@ export default {},"CreateViewSortInput": {"direction": [- 662+ 663],"fieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"subFieldName": [1],"viewId": [- 537+ 538],"__typename": [1@@ -4196,13 +4202,13 @@ export default {1],"id": [- 537+ 538],"operations": [1],"roleId": [- 537+ 538],"secret": [1@@ -4225,10 +4231,10 @@ export default {1],"operation": [- 626+ 627],"resource": [- 633+ 634],"__typename": [1@@ -4255,7 +4261,7 @@ export default {"DateTime": {},"DeleteApprovedAccessDomainInput": {"id": [- 537+ 538],"__typename": [1@@ -4263,7 +4269,7 @@ export default {},"DeleteOneFieldInput": {"id": [- 537+ 538],"__typename": [1@@ -4271,7 +4277,7 @@ export default {},"DeleteOneIndexInput": {"id": [- 537+ 538],"__typename": [1@@ -4279,7 +4285,7 @@ export default {},"DeleteOneObjectInput": {"id": [- 537+ 538],"__typename": [1@@ -4287,7 +4293,7 @@ export default {},"DeleteSso": {"identityProviderId": [- 537+ 538],"__typename": [1@@ -4295,7 +4301,7 @@ export default {},"DeleteSsoInput": {"identityProviderId": [- 537+ 538],"__typename": [1@@ -4311,7 +4317,7 @@ export default {},"DeleteViewFieldGroupInput": {"id": [- 537+ 538],"__typename": [1@@ -4319,7 +4325,7 @@ export default {},"DeleteViewFieldInput": {"id": [- 537+ 538],"__typename": [1@@ -4327,7 +4333,7 @@ export default {},"DeleteViewFilterInput": {"id": [- 537+ 538],"__typename": [1@@ -4335,7 +4341,7 @@ export default {},"DeleteViewGroupInput": {"id": [- 537+ 538],"__typename": [1@@ -4343,7 +4349,7 @@ export default {},"DeleteViewSortInput": {"id": [- 537+ 538],"__typename": [1@@ -4354,7 +4360,7 @@ export default {1],"id": [- 537+ 538],"name": [291@@ -4363,7 +4369,7 @@ export default {1],"userWorkspaceId": [- 537+ 538],"__typename": [1@@ -4371,7 +4377,7 @@ export default {},"DestroyViewFieldGroupInput": {"id": [- 537+ 538],"__typename": [1@@ -4379,7 +4385,7 @@ export default {},"DestroyViewFieldInput": {"id": [- 537+ 538],"__typename": [1@@ -4387,7 +4393,7 @@ export default {},"DestroyViewFilterInput": {"id": [- 537+ 538],"__typename": [1@@ -4395,7 +4401,7 @@ export default {},"DestroyViewGroupInput": {"id": [- 537+ 538],"__typename": [1@@ -4403,7 +4409,7 @@ export default {},"DestroyViewSortInput": {"id": [- 537+ 538],"__typename": [1@@ -4445,7 +4451,7 @@ export default {1],"id": [- 537+ 538],"isCustomDomainEnabled": [4@@ -4462,10 +4468,10 @@ export default {1],"id": [- 537+ 538],"pageLayoutId": [- 537+ 538],"position": [6@@ -4488,7 +4494,7 @@ export default {1],"id": [- 537+ 538],"memberCount": [6@@ -4508,7 +4514,7 @@ export default {},"EditSso": {"id": [- 537+ 538],"issuer": [1@@ -4517,7 +4523,7 @@ export default {1],"status": [- 477+ 478],"type": [308@@ -4528,10 +4534,10 @@ export default {},"EditSsoInput": {"id": [- 537+ 538],"status": [- 477+ 478],"__typename": [1@@ -4565,7 +4571,7 @@ export default {},"EmailThreadConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -4579,7 +4585,7 @@ export default {1],"id": [- 537+ 538],"status": [244@@ -4588,13 +4594,13 @@ export default {245],"unsubscribeHostnameStatus": [- 539+ 540],"updatedAt": [213],"verificationRecords": [- 645+ 646],"verifiedAt": [213@@ -4607,7 +4613,7 @@ export default {"EmailingDomainTenantStatus": {},"EmailsConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -4625,7 +4631,7 @@ export default {1],"payload": [- 327+ 328],"retryLimit": [10@@ -4639,7 +4645,7 @@ export default {1],"payload": [- 327+ 328],"__typename": [1@@ -4670,7 +4676,7 @@ export default {1],"payloads": [- 327+ 328],"retryLimit": [10@@ -4838,7 +4844,7 @@ export default {1],"properties": [- 327+ 328],"recordId": [1@@ -4859,13 +4865,13 @@ export default {1],"metadataEvents": [- 373+ 374],"objectRecordEventsWithQueryIds": [- 401+ 402],"queueJobEvents": [- 330+ 331],"__typename": [1@@ -4873,10 +4879,10 @@ export default {},"ExecuteOneLogicFunctionInput": {"id": [- 537+ 538],"payload": [- 327+ 328],"__typename": [1@@ -4896,13 +4902,13 @@ export default {"FeatureFlagKey": {},"Field": {"applicationId": [- 537+ 538],"createdAt": [213],"defaultValue": [- 327+ 328],"description": [1@@ -4914,7 +4920,7 @@ export default {1],"id": [- 537+ 538],"isActive": [4@@ -4947,28 +4953,28 @@ export default {1],"morphId": [- 537+ 538],"morphRelations": [- 453+ 454],"name": [1],"object": [- 388+ 389],"objectMetadataId": [- 537+ 538],"options": [- 327+ 328],"relation": [- 453+ 454],"settings": [- 327+ 328],"type": [274@@ -4985,7 +4991,7 @@ export default {},"FieldConfiguration": {"configurationType": [- 667+ 668],"fieldDisplayMode": [271@@ -5011,7 +5017,7 @@ export default {272],"pageInfo": [- 407+ 408],"__typename": [1@@ -5034,7 +5040,7 @@ export default {273],"id": [- 538+ 539],"isActive": [128@@ -5049,7 +5055,7 @@ export default {128],"objectMetadataId": [- 538+ 539],"or": [273@@ -5067,16 +5073,16 @@ export default {4],"fieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"objectMetadataId": [- 537+ 538],"roleId": [- 537+ 538],"__typename": [1@@ -5090,10 +5096,10 @@ export default {4],"fieldMetadataId": [- 537+ 538],"objectMetadataId": [- 537+ 538],"__typename": [1@@ -5101,7 +5107,7 @@ export default {},"FieldRichTextConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -5109,7 +5115,7 @@ export default {},"FieldsConfiguration": {"configurationType": [- 667+ 668],"newFieldDefaultVisibility": [4@@ -5129,7 +5135,7 @@ export default {213],"id": [- 537+ 538],"path": [1@@ -5146,7 +5152,7 @@ export default {1],"id": [- 537+ 538],"__typename": [1@@ -5161,7 +5167,7 @@ export default {213],"fileId": [- 537+ 538],"uploadUrl": [1@@ -5175,7 +5181,7 @@ export default {213],"id": [- 537+ 538],"path": [1@@ -5192,7 +5198,7 @@ export default {},"FilesConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -5200,7 +5206,7 @@ export default {},"FindAvailableSSOIDP": {"id": [- 537+ 538],"issuer": [1@@ -5209,13 +5215,13 @@ export default {1],"status": [- 477+ 478],"type": [308],"workspace": [- 688+ 689],"__typename": [1@@ -5229,13 +5235,13 @@ export default {10],"reason": [- 371+ 372],"searchTerm": [1],"unsubscribeTopicId": [- 537+ 538],"__typename": [1@@ -5243,7 +5249,7 @@ export default {},"FormFieldConfiguration": {"configurationType": [- 667+ 668],"fieldMetadataId": [1@@ -5256,8 +5262,11 @@ export default {"applicationGrantedCapabilities": [1],+ "applicationGrantedIframeMediaPermissions": [+ 310+ ],"applicationId": [- 537+ 538],"applicationName": [1@@ -5266,7 +5275,7 @@ export default {79],"applicationVariables": [- 327+ 328],"builtComponentChecksum": [1@@ -5287,7 +5296,7 @@ export default {1],"id": [- 537+ 538],"isHeadless": [4@@ -5299,7 +5308,7 @@ export default {1],"universalIdentifier": [- 537+ 538],"updatedAt": [213@@ -5316,13 +5325,13 @@ export default {},"FrontComponentConfiguration": {"configurationType": [- 667+ 668],"frontComponentId": [- 537+ 538],"headerCommandMenuItemUniversalIdentifiers": [- 537+ 538],"__typename": [1@@ -5330,10 +5339,10 @@ export default {},"FrontComponentWidgetAvailability": {"objectMetadataId": [- 537+ 538],"pageLayoutType": [- 411+ 412],"__typename": [1@@ -5352,7 +5361,7 @@ export default {},"GenerateInput": {"input": [- 471+ 472],"instructions": [1@@ -5361,13 +5370,13 @@ export default {1],"responseFormat": [- 327+ 328],"runId": [- 537+ 538],"scope": [- 327+ 328],"__typename": [1@@ -5378,10 +5387,10 @@ export default {1],"object": [- 327+ 328],"runId": [- 537+ 538],"success": [4@@ -5398,7 +5407,7 @@ export default {},"GetApiKeyInput": {"id": [- 537+ 538],"__typename": [1@@ -5409,7 +5418,7 @@ export default {1],"id": [- 537+ 538],"type": [1@@ -5420,7 +5429,7 @@ export default {},"GetAuthorizationUrlForSSOInput": {"identityProviderId": [- 537+ 538],"workspaceInviteHash": [1@@ -5513,7 +5522,7 @@ export default {1],"type": [- 669+ 670],"__typename": [1@@ -5535,7 +5544,7 @@ export default {},"GrantApplicationCapabilitiesInput": {"applicationId": [- 537+ 538],"capabilities": [1@@ -5565,7 +5574,7 @@ export default {"IdentityProviderType": {},"IframeConfiguration": {"configurationType": [- 667+ 668],"url": [1@@ -5588,6 +5597,20 @@ export default {1]},+ "IframeMediaPermissionInput": {+ "camera": [+ 4+ ],+ "microphone": [+ 4+ ],+ "origin": [+ 1+ ],+ "__typename": [+ 1+ ]+ },"ImapSmtpCaldavConnectionSuccess": {"connectedAccountId": [1@@ -5601,13 +5624,13 @@ export default {},"ImapSmtpCaldavPublicConnectionParameters": {"CALDAV": [- 313+ 314],"IMAP": [- 313+ 314],"SMTP": [- 313+ 314],"name": [1@@ -5638,7 +5661,7 @@ export default {85],"workspace": [- 692+ 693],"__typename": [1@@ -5649,10 +5672,10 @@ export default {1],"recordId": [- 537+ 538],"threadId": [- 537+ 538],"__typename": [1@@ -5660,19 +5683,19 @@ export default {},"Index": {"applicationId": [- 537+ 538],"createdAt": [213],"id": [- 537+ 538],"indexFieldMetadataList": [- 318+ 319],"indexType": [- 320+ 321],"indexWhereClause": [1@@ -5701,7 +5724,7 @@ export default {163],"node": [- 316+ 317],"__typename": [1@@ -5712,10 +5735,10 @@ export default {213],"fieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"order": [6@@ -5732,16 +5755,16 @@ export default {},"IndexFilter": {"and": [- 319+ 320],"id": [- 538+ 539],"isCustom": [128],"or": [- 319+ 320],"__typename": [1@@ -5750,7 +5773,7 @@ export default {"IndexType": {},"IngestAppMessagesInput": {"messageChannelId": [- 537+ 538],"messages": [46@@ -5761,7 +5784,7 @@ export default {},"IngestAppMessagesOutput": {"messages": [- 323+ 324],"__typename": [1@@ -5772,10 +5795,10 @@ export default {1],"messageId": [- 537+ 538],"messageThreadId": [- 537+ 538],"__typename": [1@@ -5834,7 +5857,7 @@ export default {6],"state": [- 329+ 330],"__typename": [1@@ -5842,7 +5865,7 @@ export default {},"LineChartConfiguration": {"aggregateFieldMetadataId": [- 537+ 538],"aggregateOperation": [27@@ -5854,7 +5877,7 @@ export default {1],"configurationType": [- 667+ 668],"description": [1@@ -5866,7 +5889,7 @@ export default {4],"filter": [- 327+ 328],"firstDayOfTheWeek": [10@@ -5884,10 +5907,10 @@ export default {4],"primaryAxisDateGranularity": [- 402+ 403],"primaryAxisGroupByFieldMetadataId": [- 537+ 538],"primaryAxisGroupBySubFieldName": [1@@ -5905,10 +5928,10 @@ export default {6],"secondaryAxisGroupByDateGranularity": [- 402+ 403],"secondaryAxisGroupByFieldMetadataId": [- 537+ 538],"secondaryAxisGroupBySubFieldName": [1@@ -5931,13 +5954,13 @@ export default {},"LineChartData": {"formattedToRawLookup": [- 327+ 328],"hasTooManyGroups": [4],"series": [- 335+ 336],"showDataLabels": [4@@ -5957,10 +5980,10 @@ export default {},"LineChartDataInput": {"configuration": [- 327+ 328],"objectMetadataId": [- 537+ 538],"__typename": [1@@ -5979,7 +6002,7 @@ export default {},"LineChartSeries": {"data": [- 334+ 335],"key": [1@@ -6010,7 +6033,7 @@ export default {},"ListAppMessageChannelsInput": {"connectedAccountId": [- 537+ 538],"__typename": [1@@ -6018,7 +6041,7 @@ export default {},"ListAppMessageFoldersInput": {"messageChannelId": [- 537+ 538],"__typename": [1@@ -6037,7 +6060,7 @@ export default {},"LogicFunction": {"applicationId": [- 537+ 538],"canRunOnDemand": [4@@ -6046,25 +6069,25 @@ export default {213],"cronTriggerSettings": [- 327+ 328],"databaseEventTriggerSettings": [- 327+ 328],"description": [1],"executionMode": [- 341+ 342],"handlerName": [1],"httpRouteTriggerSettings": [- 327+ 328],"id": [- 537+ 538],"name": [1@@ -6079,16 +6102,16 @@ export default {6],"toolTriggerSettings": [- 327+ 328],"universalIdentifier": [- 537+ 538],"updatedAt": [213],"workflowActionTriggerSettings": [- 327+ 328],"__typename": [1@@ -6097,19 +6120,19 @@ export default {"LogicFunctionExecutionMode": {},"LogicFunctionExecutionResult": {"data": [- 327+ 328],"duration": [6],"error": [- 327+ 328],"logs": [1],"status": [- 343+ 344],"__typename": [1@@ -6132,7 +6155,7 @@ export default {1],"universalIdentifier": [- 537+ 538],"__typename": [1@@ -6140,19 +6163,19 @@ export default {},"LogicFunctionLogsInput": {"applicationId": [- 537+ 538],"applicationUniversalIdentifier": [- 537+ 538],"id": [- 537+ 538],"name": [1],"universalIdentifier": [- 537+ 538],"__typename": [1@@ -6239,13 +6262,13 @@ export default {1],"manifest": [- 327+ 328],"name": [1],"objects": [- 350+ 351],"pricingDescription": [1@@ -6253,8 +6276,11 @@ export default {"requestedCapabilities": [1],+ "requestedIframeMediaPermissions": [+ 310+ ],"roles": [- 351+ 352],"screenshots": [1@@ -6315,7 +6341,7 @@ export default {1],"fieldPermissions": [- 352+ 353],"icon": [1@@ -6324,7 +6350,7 @@ export default {1],"objectPermissions": [- 353+ 354],"permissionFlagUniversalIdentifiers": [1@@ -6381,16 +6407,16 @@ export default {},"McpServer": {"applicationId": [- 537+ 538],"connectionProviderId": [- 537+ 538],"createdAt": [213],"id": [- 537+ 538],"isActive": [4@@ -6413,7 +6439,7 @@ export default {},"MessageCampaignBodyConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -6421,7 +6447,7 @@ export default {},"MessageCampaignDetailsConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -6443,10 +6469,10 @@ export default {160],"connectedAccountId": [- 537+ 538],"contactAutoCreationPolicy": [- 359+ 360],"createdAt": [213@@ -6464,7 +6490,7 @@ export default {1],"id": [- 537+ 538],"importProgress": [10@@ -6476,25 +6502,25 @@ export default {4],"messageFolderImportPolicy": [- 366+ 367],"messagingProviderUniversalIdentifier": [- 537+ 538],"participantHandleFieldUniversalIdentifier": [- 537+ 538],"pendingGroupEmailsAction": [- 360+ 361],"syncStage": [- 361+ 362],"syncStageStartedAt": [213],"syncStatus": [- 362+ 363],"syncedAt": [213@@ -6506,13 +6532,13 @@ export default {213],"type": [- 363+ 364],"updatedAt": [213],"visibility": [- 364+ 365],"__typename": [1@@ -6532,7 +6558,7 @@ export default {1],"id": [- 537+ 538],"isSentFolder": [4@@ -6541,7 +6567,7 @@ export default {4],"messageChannelId": [- 537+ 538],"name": [1@@ -6550,7 +6576,7 @@ export default {1],"pendingSyncAction": [- 367+ 368],"updatedAt": [213@@ -6570,16 +6596,16 @@ export default {1],"id": [- 537+ 538],"reason": [- 371+ 372],"source": [- 372+ 373],"unsubscribeTopicId": [- 537+ 538],"__typename": [1@@ -6587,7 +6613,7 @@ export default {},"MessageSuppressionList": {"records": [- 369+ 370],"totalCount": [10@@ -6603,13 +6629,13 @@ export default {1],"properties": [- 400+ 401],"recordId": [1],"type": [- 374+ 375],"updatedCollectionHash": [1@@ -6630,16 +6656,16 @@ export default {1],"objectMetadataId": [- 537+ 538],"property": [1],"provenance": [- 377+ 378],"recordId": [- 537+ 538],"sourceValue": [1@@ -6668,13 +6694,13 @@ export default {"MetadataTranslationProvenance": {},"MetadataTranslationsInput": {"fieldMetadataId": [- 537+ 538],"locale": [1],"objectMetadataId": [- 537+ 538],"__typename": [1@@ -6685,10 +6711,10 @@ export default {155],"objectMetadataItems": [- 380+ 381],"views": [- 381+ 382],"__typename": [1@@ -6702,7 +6728,7 @@ export default {1],"id": [- 537+ 538],"isActive": [4@@ -6731,16 +6757,16 @@ export default {},"MinimalView": {"id": [- 537+ 538],"key": [- 659+ 660],"objectMetadataId": [- 537+ 538],"type": [- 663+ 664],"__typename": [1@@ -6749,16 +6775,16 @@ export default {"ModelFamily": {},"Mutation": {"activateSkill": [- 503,+ 504,{"id": [- 537,+ 538,"UUID!"]}],"activateWorkspace": [- 673,+ 674,{"data": [0,@@ -6774,7 +6800,7 @@ export default {"String!"],"messageId": [- 537,+ 538,"UUID!"]}@@ -6788,14 +6814,27 @@ export default {]}],+ "approveApplicationIframeMediaPermissions": [+ 48,+ {+ "applicationId": [+ 538,+ "UUID!"+ ],+ "approvedIframeMediaPermissions": [+ 311,+ "[IframeMediaPermissionInput!]!"+ ]+ }+ ],"assignAgentChatThread": [4,{"assigneeWorkspaceMemberId": [- 537+ 538],"threadId": [- 537,+ 538,"UUID!"]}@@ -6804,11 +6843,11 @@ export default {4,{"agentId": [- 537,+ 538,"UUID!"],"roleId": [- 537,+ 538,"UUID!"]}@@ -6817,11 +6856,11 @@ export default {4,{"apiKeyId": [- 537,+ 538,"UUID!"],"roleId": [- 537,+ 538,"UUID!"]}@@ -6830,7 +6869,7 @@ export default {4,{"input": [- 315,+ 316,"InboxThreadRecordInput!"]}@@ -6898,7 +6937,7 @@ export default {"BillingPlanKey!"],"recurringInterval": [- 509,+ 510,"SubscriptionInterval!"],"requirePaymentMethod": [@@ -6923,7 +6962,7 @@ export default {74,{"fileId": [- 537,+ 538,"UUID!"]}@@ -6936,13 +6975,13 @@ export default {"String!"],"fileIds": [- 537,+ 538,"[UUID!]!"]}],"completeBookCallOnboardingStep": [- 405,+ 406,{"hasBookedCall": [4,@@ -7013,7 +7052,7 @@ export default {}],"createAppMessageChannel": [- 358,+ 359,{"input": [169,@@ -7068,7 +7107,7 @@ export default {17,{"channelId": [- 537+ 538]}],@@ -7145,7 +7184,7 @@ export default {}],"createManyNavigationMenuItems": [- 385,+ 386,{"inputs": [187,@@ -7154,7 +7193,7 @@ export default {}],"createManyViewFieldGroups": [- 653,+ 654,{"inputs": [202,@@ -7163,7 +7202,7 @@ export default {}],"createManyViewFields": [- 652,+ 653,{"inputs": [203,@@ -7172,7 +7211,7 @@ export default {}],"createManyViewGroups": [- 658,+ 659,{"inputs": [206,@@ -7181,7 +7220,7 @@ export default {}],"createMcpServer": [- 354,+ 355,{"input": [185,@@ -7190,7 +7229,7 @@ export default {}],"createMessageSuppression": [- 369,+ 370,{"input": [186,@@ -7199,7 +7238,7 @@ export default {}],"createNavigationMenuItem": [- 385,+ 386,{"input": [187,@@ -7225,10 +7264,10 @@ export default {}],"createOIDCIdentityProvider": [- 500,+ 501,{"input": [- 498,+ 499,"SetupOIDCSsoInput!"]}@@ -7241,14 +7280,14 @@ export default {"String!"],"objectMetadataId": [- 537,+ 538,"UUID!"],"properties": [- 327+ 328],"recordId": [- 537,+ 538,"UUID!"]}@@ -7272,7 +7311,7 @@ export default {}],"createOneIndex": [- 316,+ 317,{"input": [190,@@ -7281,7 +7320,7 @@ export default {}],"createOneLogicFunction": [- 340,+ 341,{"input": [184,@@ -7290,7 +7329,7 @@ export default {}],"createOneObject": [- 388,+ 389,{"input": [191,@@ -7299,7 +7338,7 @@ export default {}],"createOneRole": [- 460,+ 461,{"createRoleInput": [197,@@ -7308,7 +7347,7 @@ export default {}],"createPageLayout": [- 408,+ 409,{"input": [192,@@ -7317,7 +7356,7 @@ export default {}],"createPageLayoutTab": [- 409,+ 410,{"input": [193,@@ -7326,7 +7365,7 @@ export default {}],"createPageLayoutWidget": [- 412,+ 413,{"input": [194,@@ -7335,7 +7374,7 @@ export default {}],"createPublicDomain": [- 431,+ 432,{"applicationId": [1,@@ -7348,7 +7387,7 @@ export default {}],"createRelatedRecordPath": [- 452,+ 453,{"input": [196,@@ -7357,16 +7396,16 @@ export default {}],"createSAMLIdentityProvider": [- 500,+ 501,{"input": [- 499,+ 500,"SetupSAMLSsoInput!"]}],"createSkill": [- 503,+ 504,{"input": [198,@@ -7386,7 +7425,7 @@ export default {"BillingPlanKey!"],"recurringInterval": [- 509,+ 510,"SubscriptionInterval!"],"requirePaymentMethod": [@@ -7399,7 +7438,7 @@ export default {}],"createUnsubscribeTopic": [- 540,+ 541,{"input": [199,@@ -7408,7 +7447,7 @@ export default {}],"createUsageLimit": [- 624,+ 625,{"input": [200,@@ -7417,7 +7456,7 @@ export default {}],"createValidationRule": [- 644,+ 645,{"input": [201,@@ -7426,7 +7465,7 @@ export default {}],"createView": [- 649,+ 650,{"input": [207,@@ -7435,7 +7474,7 @@ export default {}],"createViewField": [- 652,+ 653,{"input": [203,@@ -7444,7 +7483,7 @@ export default {}],"createViewFieldGroup": [- 653,+ 654,{"input": [202,@@ -7453,7 +7492,7 @@ export default {}],"createViewFilter": [- 654,+ 655,{"input": [205,@@ -7462,7 +7501,7 @@ export default {}],"createViewFilterGroup": [- 655,+ 656,{"input": [204,@@ -7471,7 +7510,7 @@ export default {}],"createViewGroup": [- 658,+ 659,{"input": [206,@@ -7480,7 +7519,7 @@ export default {}],"createViewSort": [- 661,+ 662,{"input": [208,@@ -7489,7 +7528,7 @@ export default {}],"createWebhook": [- 665,+ 666,{"input": [209,@@ -7498,10 +7537,10 @@ export default {}],"deactivateSkill": [- 503,+ 504,{"id": [- 537,+ 538,"UUID!"]}@@ -7510,11 +7549,11 @@ export default {4,{"channelId": [- 537,+ 538,"UUID!"],"destinationChannelId": [- 537+ 538]}],@@ -7531,10 +7570,10 @@ export default {}],"deleteAppMessageChannel": [- 358,+ 359,{"id": [- 537,+ 538,"UUID!"]}@@ -7561,7 +7600,7 @@ export default {156,{"id": [- 537,+ 538,"UUID!"]}@@ -7570,19 +7609,19 @@ export default {160,{"id": [- 537,+ 538,"UUID!"]}],"deleteCurrentWorkspace": [- 673+ 674],"deleteEmailGroupChannel": [- 358,+ 359,{"id": [- 537,+ 538,"UUID!"]}@@ -7600,25 +7639,25 @@ export default {288,{"id": [- 537,+ 538,"UUID!"]}],"deleteManyNavigationMenuItems": [- 385,+ 386,{"ids": [- 537,+ 538,"[UUID!]!"]}],"deleteMcpServer": [- 354,+ 355,{"id": [- 537,+ 538,"UUID!"]}@@ -7627,16 +7666,16 @@ export default {4,{"id": [- 537,+ 538,"UUID!"]}],"deleteNavigationMenuItem": [- 385,+ 386,{"id": [- 537,+ 538,"UUID!"]}@@ -7660,7 +7699,7 @@ export default {}],"deleteOneIndex": [- 316,+ 317,{"input": [216,@@ -7669,16 +7708,16 @@ export default {}],"deleteOneLogicFunction": [- 340,+ 341,{"input": [- 344,+ 345,"LogicFunctionIdInput!"]}],"deleteOneObject": [- 388,+ 389,{"input": [217,@@ -7690,7 +7729,7 @@ export default {1,{"roleId": [- 537,+ 538,"UUID!"]}@@ -7708,16 +7747,16 @@ export default {4,{"messageId": [- 537,+ 538,"UUID!"]}],"deleteRelatedRecordPath": [- 452,+ 453,{"id": [- 537,+ 538,"UUID!"]}@@ -7732,10 +7771,10 @@ export default {}],"deleteSkill": [- 503,+ 504,{"id": [- 537,+ 538,"UUID!"]}@@ -7744,7 +7783,7 @@ export default {220,{"twoFactorAuthenticationMethodId": [- 537,+ 538,"UUID!"]}@@ -7762,16 +7801,16 @@ export default {4,{"usageLimitId": [- 537,+ 538,"UUID!"]}],"deleteUser": [- 637+ 638],"deleteUserFromWorkspace": [- 641,+ 642,{"workspaceMemberIdToDelete": [1,@@ -7780,10 +7819,10 @@ export default {}],"deleteValidationRule": [- 644,+ 645,{"id": [- 537,+ 538,"UUID!"]}@@ -7798,7 +7837,7 @@ export default {}],"deleteViewField": [- 652,+ 653,{"input": [222,@@ -7807,7 +7846,7 @@ export default {}],"deleteViewFieldGroup": [- 653,+ 654,{"input": [221,@@ -7816,7 +7855,7 @@ export default {}],"deleteViewFilter": [- 654,+ 655,{"input": [223,@@ -7834,7 +7873,7 @@ export default {}],"deleteViewGroup": [- 658,+ 659,{"input": [224,@@ -7852,10 +7891,10 @@ export default {}],"deleteWebhook": [- 665,+ 666,{"id": [- 537,+ 538,"UUID!"]}@@ -7906,7 +7945,7 @@ export default {}],"destroyViewField": [- 652,+ 653,{"input": [228,@@ -7915,7 +7954,7 @@ export default {}],"destroyViewFieldGroup": [- 653,+ 654,{"input": [227,@@ -7924,7 +7963,7 @@ export default {}],"destroyViewFilter": [- 654,+ 655,{"input": [229,@@ -7942,7 +7981,7 @@ export default {}],"destroyViewGroup": [- 658,+ 659,{"input": [230,@@ -7963,7 +8002,7 @@ export default {4,{"input": [- 315,+ 316,"InboxThreadRecordInput!"]}@@ -7972,7 +8011,7 @@ export default {160,{"id": [- 537,+ 538,"UUID!"]}@@ -7981,7 +8020,7 @@ export default {235,{"id": [- 537,+ 538,"UUID!"]}@@ -7990,7 +8029,7 @@ export default {236,{"id": [- 537,+ 538,"UUID!"]}@@ -8015,7 +8054,7 @@ export default {"String!"],"workspaceId": [- 537+ 538]}],@@ -8041,10 +8080,10 @@ export default {}],"enrichWorkspaceCompany": [- 677+ 678],"executeOneLogicFunction": [- 342,+ 343,{"input": [265,@@ -8065,7 +8104,7 @@ export default {41,{"apiKeyId": [- 537,+ 538,"UUID!"],"expiresAt": [@@ -8078,7 +8117,7 @@ export default {79,{"applicationId": [- 537,+ 538,"UUID!"]}@@ -8087,16 +8126,16 @@ export default {85],"generateTransientToken": [- 520+ 521],"generateTwoFactorAuthenticationRecoveryCode": [- 534,+ 535,{"otp": [1],"userId": [- 537,+ 538,"UUID!"]}@@ -8144,7 +8183,7 @@ export default {}],"getAuthTokensFromTwoFactorAuthenticationRecoveryCode": [- 535,+ 536,{"captchaToken": [1@@ -8173,7 +8212,7 @@ export default {}],"getLoginTokenFromCredentials": [- 347,+ 348,{"captchaToken": [1@@ -8199,7 +8238,7 @@ export default {}],"goBackToPreviousOnboardingStep": [- 404+ 405],"grantApplicationCapabilities": [50,@@ -8211,29 +8250,29 @@ export default {}],"impersonate": [- 314,+ 315,{"userId": [- 537,+ 538,"UUID!"],"workspaceId": [- 537,+ 538,"UUID!"]}],"ingestAppMessages": [- 322,+ 323,{"input": [- 321,+ 322,"IngestAppMessagesInput!"]}],"initiateOTPProvisioning": [- 324,+ 325,{"loginToken": [1,@@ -8246,7 +8285,7 @@ export default {}],"initiateOTPProvisioningForAuthenticatedUser": [- 324+ 325],"installApplication": [48,@@ -8276,7 +8315,7 @@ export default {4,{"threadId": [- 537,+ 538,"UUID!"]}@@ -8285,10 +8324,10 @@ export default {4,{"channelId": [- 537+ 538],"threadId": [- 537,+ 538,"UUID!"]}@@ -8316,7 +8355,7 @@ export default {"String!"],"messageId": [- 537,+ 538,"UUID!"]}@@ -8325,20 +8364,20 @@ export default {4,{"input": [- 455,+ 456,"RemoveQueryFromEventStreamInput!"]}],"removeRecordShare": [- 447,+ 448,{"principal": [- 444,+ 445,"RecordSharePrincipalInput!"],"target": [- 451,+ 452,"RecordTargetInput!"]}@@ -8347,7 +8386,7 @@ export default {4,{"agentId": [- 537,+ 538,"UUID!"]}@@ -8374,7 +8413,7 @@ export default {4,{"threadId": [- 537,+ 538,"UUID!"]}@@ -8383,13 +8422,13 @@ export default {4,{"input": [- 456,+ 457,"ReportAppConnectionAuthFailureInput!"]}],"resendEmailVerificationToken": [- 457,+ 458,{"email": [1,@@ -8402,7 +8441,7 @@ export default {}],"resendWorkspaceInvitation": [- 490,+ 491,{"appTokenId": [1,@@ -8414,13 +8453,13 @@ export default {156,{"id": [- 537,+ 538,"UUID!"]}],"resetPageLayoutTabToDefault": [- 409,+ 410,{"id": [1,@@ -8429,7 +8468,7 @@ export default {}],"resetPageLayoutToDefault": [- 408,+ 409,{"id": [1,@@ -8438,7 +8477,7 @@ export default {}],"resetPageLayoutWidgetToDefault": [- 412,+ 413,{"id": [1,@@ -8447,22 +8486,22 @@ export default {}],"resetTimelineActivityType": [- 515,+ 516,{"id": [- 537,+ 538,"UUID!"]}],"retryChatMessage": [- 482,+ 483,{"modelId": [1],"threadId": [- 537,+ 538,"UUID!"]}@@ -8474,7 +8513,7 @@ export default {39,{"input": [- 458,+ 459,"RevokeApiKeyInput!"]}@@ -8483,7 +8522,7 @@ export default {4,{"applicationAuthorizationId": [- 537,+ 538,"UUID!"]}@@ -8492,7 +8531,7 @@ export default {4,{"userId": [- 537,+ 538,"UUID!"]}@@ -8501,13 +8540,13 @@ export default {4,{"userSessionId": [- 537,+ 538,"UUID!"]}],"rotateApplicationRegistrationClientSecret": [- 462,+ 463,{"id": [1,@@ -8516,10 +8555,10 @@ export default {}],"runAgent": [- 473,+ 474,{"input": [- 469,+ 470,"RunAgentInput!"]}@@ -8528,7 +8567,7 @@ export default {64,{"applicationId": [- 537,+ 538,"UUID!"]}@@ -8537,13 +8576,13 @@ export default {64,{"applicationId": [- 537,+ 538,"UUID!"]}],"saveImapSmtpCaldavAccount": [- 311,+ 312,{"connectionParameters": [239,@@ -8554,38 +8593,38 @@ export default {"String!"],"id": [- 537+ 538]}],"sendAppChannelMessage": [- 481,+ 482,{"input": [- 480,+ 481,"SendAppChannelMessageInput!"]}],"sendChatMessage": [- 482,+ 483,{"browsingContext": [- 327+ 328],"channelId": [- 537+ 538],"fileAttachments": [280,"[FileAttachmentInput!]"],"mentionedWorkspaceMemberIds": [- 537,+ 538,"[UUID!]"],"messageId": [- 537,+ 538,"UUID!"],"modelId": [@@ -8599,55 +8638,55 @@ export default {"String!"],"threadId": [- 537,+ 538,"UUID!"]}],"sendEmail": [- 485,+ 486,{"input": [- 484,+ 485,"SendEmailInput!"]}],"sendInboxMessage": [- 489,+ 490,{"input": [- 488,+ 489,"SendInboxMessageInput!"]}],"sendInvitations": [- 490,+ 491,{"emails": [1,"[String!]!"],"roleId": [- 537+ 538]}],"sendMessageCampaign": [- 492,+ 493,{"input": [- 491,+ 492,"SendMessageCampaignInput!"]}],"sendMessageCampaignTest": [- 487,+ 488,{"input": [- 493,+ 494,"SendMessageCampaignTestInput!"]}@@ -8656,7 +8695,7 @@ export default {43,{"input": [- 495,+ 496,"SetAppKeyValueInput!"]}@@ -8671,31 +8710,31 @@ export default {}],"setRecordPrivate": [- 447,+ 448,{"isPrivate": [4,"Boolean!"],"target": [- 451,+ 452,"RecordTargetInput!"]}],"setRecordShare": [- 447,+ 448,{"accessLevel": [- 443,+ 444,"RecordShareAccessLevel!"],"principal": [- 444,+ 445,"RecordSharePrincipalInput!"],"target": [- 451,+ 452,"RecordTargetInput!"]}@@ -8762,15 +8801,15 @@ export default {}],"signUpInNewWorkspace": [- 501,+ 502,{"input": [- 502+ 503]}],"signUpInWorkspace": [- 501,+ 502,{"captchaToken": [1@@ -8790,7 +8829,7 @@ export default {1],"workspaceId": [- 537+ 538],"workspaceInviteHash": [1@@ -8801,7 +8840,7 @@ export default {}],"skipSyncEmailOnboardingStep": [- 405,+ 406,{"isAutoSkipped": [4,@@ -8817,7 +8856,7 @@ export default {"DateTime!"],"threadId": [- 537,+ 538,"UUID!"]}@@ -8826,19 +8865,19 @@ export default {142,{"connectedAccountId": [- 537,+ 538,"UUID!"]}],"startWorkspaceSetupChat": [- 505,+ 506,{"companyContext": [- 327+ 328],"personContext": [- 327+ 328]}],@@ -8846,13 +8885,13 @@ export default {4,{"threadId": [- 537,+ 538,"UUID!"]}],"stopImpersonation": [- 506+ 507],"switchBillingPlan": [126,@@ -8866,16 +8905,16 @@ export default {126],"syncAppMessageFolders": [- 365,+ 366,{"input": [- 513,+ 514,"SyncAppMessageFoldersInput!"]}],"syncApplication": [- 687,+ 688,{"dryRun": [4@@ -8884,7 +8923,7 @@ export default {4],"manifest": [- 327,+ 328,"JSON!"]}@@ -8902,7 +8941,7 @@ export default {1],"properties": [- 327+ 328],"type": [37,@@ -8924,55 +8963,55 @@ export default {}],"triggerAddPeopleToMessageListJob": [- 522,+ 523,{"input": [- 521,+ 522,"TriggerAddPeopleToMessageListJobInput!"]}],"triggerInstallApplication": [- 526,+ 527,{"input": [- 523,+ 524,"TriggerInstallApplicationInput!"]}],"triggerInstallApplicationJob": [- 525,+ 526,{"input": [- 524,+ 525,"TriggerInstallApplicationJobInput!"]}],"triggerUninstallApplication": [- 530,+ 531,{"input": [- 527,+ 528,"TriggerUninstallApplicationInput!"]}],"triggerUninstallApplicationJob": [- 529,+ 530,{"input": [- 528,+ 529,"TriggerUninstallApplicationJobInput!"]}],"triggerUpgradeApplication": [- 532,+ 533,{"input": [- 531,+ 532,"TriggerUpgradeApplicationInput!"]}@@ -8990,11 +9029,11 @@ export default {5,{"channelId": [- 537,+ 538,"UUID!"],"input": [- 542,+ 543,"UpdateAgentChatChannelInput!"]}@@ -9010,7 +9049,7 @@ export default {213],"threadIds": [- 537,+ 538,"[UUID!]!"]}@@ -9019,16 +9058,16 @@ export default {39,{"input": [- 544,+ 545,"UpdateApiKeyInput!"]}],"updateAppMessageChannel": [- 358,+ 359,{"input": [- 545,+ 546,"UpdateAppMessageChannelInput!"]}@@ -9037,11 +9076,11 @@ export default {48,{"id": [- 537,+ 538,"UUID!"],"input": [- 546,+ 547,"UpdateApplicationInput!"]}@@ -9050,7 +9089,7 @@ export default {74,{"input": [- 547,+ 548,"UpdateApplicationRegistrationInput!"]}@@ -9059,7 +9098,7 @@ export default {78,{"input": [- 549,+ 550,"UpdateApplicationRegistrationVariableInput!"]}@@ -9068,7 +9107,7 @@ export default {129,{"input": [- 551,+ 552,"UpdateCalendarChannelInput!"]}@@ -9077,16 +9116,16 @@ export default {156,{"input": [- 553,+ 554,"UpdateCommandMenuItemInput!"]}],"updateEmailGroupChannel": [- 358,+ 359,{"input": [- 554,+ 555,"UpdateEmailGroupChannelInput!"]}@@ -9095,7 +9134,7 @@ export default {288,{"input": [- 556,+ 557,"UpdateFrontComponentInput!"]}@@ -9104,7 +9143,7 @@ export default {297,{"input": [- 558,+ 559,"UpdateGettingStartedInput!"]}@@ -9113,70 +9152,70 @@ export default {266,{"input": [- 559,+ 560,"UpdateLabPublicFeatureFlagInput!"]}],"updateManyNavigationMenuItems": [- 385,+ 386,{"inputs": [- 572,+ 573,"[UpdateOneNavigationMenuItemInput!]!"]}],"updateManyObjects": [- 388,+ 389,{"inputs": [- 573,+ 574,"[UpdateOneObjectInput!]!"]}],"updateManyViewGroups": [- 658,+ 659,{"inputs": [- 595,+ 596,"[UpdateViewGroupInput!]!"]}],"updateMcpServer": [- 354,+ 355,{"input": [- 562,+ 563,"UpdateMcpServerInput!"]}],"updateMessageChannel": [- 358,+ 359,{"input": [- 564,+ 565,"UpdateMessageChannelInput!"]}],"updateMessageFolder": [- 365,+ 366,{"input": [- 566,+ 567,"UpdateMessageFolderInput!"]}],"updateMessageFolders": [- 365,+ 366,{"input": [- 568,+ 569,"UpdateMessageFoldersInput!"]}@@ -9199,10 +9238,10 @@ export default {}],"updateNavigationMenuItem": [- 385,+ 386,{"input": [- 572,+ 573,"UpdateOneNavigationMenuItemInput!"]}@@ -9211,7 +9250,7 @@ export default {3,{"input": [- 543,+ 544,"UpdateAgentInput!"]}@@ -9220,7 +9259,7 @@ export default {4,{"applicationId": [- 537+ 538],"key": [1,@@ -9236,7 +9275,7 @@ export default {268,{"input": [- 571,+ 572,"UpdateOneFieldMetadataInput!"]}@@ -9245,83 +9284,83 @@ export default {4,{"input": [- 560,+ 561,"UpdateLogicFunctionFromSourceInput!"]}],"updateOneObject": [- 388,+ 389,{"input": [- 573,+ 574,"UpdateOneObjectInput!"]}],"updateOneRole": [- 460,+ 461,{"updateRoleInput": [- 580,+ 581,"UpdateRoleInput!"]}],"updatePageLayout": [- 408,+ 409,{"id": [1,"String!"],"input": [- 574,+ 575,"UpdatePageLayoutInput!"]}],"updatePageLayoutTab": [- 409,+ 410,{"id": [1,"String!"],"input": [- 575,+ 576,"UpdatePageLayoutTabInput!"]}],"updatePageLayoutWidget": [- 412,+ 413,{"id": [1,"String!"],"input": [- 577,+ 578,"UpdatePageLayoutWidgetInput!"]}],"updatePageLayoutWithTabsAndWidgets": [- 408,+ 409,{"id": [1,"String!"],"input": [- 579,+ 580,"UpdatePageLayoutWithTabsInput!"]}],"updatePasswordViaResetToken": [- 325,+ 326,{"newPassword": [1,@@ -9334,37 +9373,37 @@ export default {}],"updateSkill": [- 503,+ 504,{"input": [- 582,+ 583,"UpdateSkillInput!"]}],"updateTimelineActivityType": [- 515,+ 516,{"input": [- 583,+ 584,"UpdateTimelineActivityTypeInput!"]}],"updateUnsubscribeTopic": [- 540,+ 541,{"input": [- 584,+ 585,"UpdateUnsubscribeTopicInput!"]}],"updateUsageLimit": [- 624,+ 625,{"input": [- 585,+ 586,"UpdateUsageLimitInput!"]}@@ -9373,7 +9412,7 @@ export default {102,{"userCreditsFallback": [- 639,+ 640,"UserCreditsFallback!"]}@@ -9391,130 +9430,130 @@ export default {}],"updateValidationRule": [- 644,+ 645,{"input": [- 586,+ 587,"UpdateValidationRuleInput!"]}],"updateView": [- 649,+ 650,{"id": [1,"String!"],"input": [- 597,+ 598,"UpdateViewInput!"]}],"updateViewField": [- 652,+ 653,{"input": [- 590,+ 591,"UpdateViewFieldInput!"]}],"updateViewFieldGroup": [- 653,+ 654,{"input": [- 588,+ 589,"UpdateViewFieldGroupInput!"]}],"updateViewFilter": [- 654,+ 655,{"input": [- 593,+ 594,"UpdateViewFilterInput!"]}],"updateViewFilterGroup": [- 655,+ 656,{"id": [1,"String!"],"input": [- 592,+ 593,"UpdateViewFilterGroupInput!"]}],"updateViewGroup": [- 658,+ 659,{"input": [- 595,+ 596,"UpdateViewGroupInput!"]}],"updateViewSort": [- 661,+ 662,{"input": [- 598,+ 599,"UpdateViewSortInput!"]}],"updateWebhook": [- 665,+ 666,{"input": [- 600,+ 601,"UpdateWebhookInput!"]}],"updateWorkspace": [- 673,+ 674,{"data": [- 604,+ 605,"UpdateWorkspaceInput!"]}],"updateWorkspaceAllowedEmbeddingOrigins": [- 673,+ 674,{"data": [- 602,+ 603,"UpdateWorkspaceAllowedEmbeddingOriginsInput!"]}],"updateWorkspaceIframeMediaPermissions": [- 673,+ 674,{"data": [- 603,+ 604,"UpdateWorkspaceIframeMediaPermissionsInput!"]}],"updateWorkspaceMemberRole": [- 682,+ 683,{"roleId": [- 537,+ 538,"UUID!"],"workspaceMemberId": [- 537,+ 538,"UUID!"]}@@ -9523,7 +9562,7 @@ export default {4,{"input": [- 605,+ 606,"UpdateWorkspaceMemberSettingsInput!"]}@@ -9545,7 +9584,7 @@ export default {74,{"file": [- 606,+ 607,"Upload!"],"universalIdentifier": [@@ -9561,7 +9600,7 @@ export default {"String!"],"file": [- 606,+ 607,"Upload!"],"fileFolder": [@@ -9582,7 +9621,7 @@ export default {"String!"],"file": [- 606,+ 607,"Upload!"]}@@ -9591,7 +9630,7 @@ export default {283,{"file": [- 606,+ 607,"Upload!"],"workspaceId": [@@ -9604,7 +9643,7 @@ export default {283,{"file": [- 606,+ 607,"Upload!"]}@@ -9613,7 +9652,7 @@ export default {283,{"file": [- 606,+ 607,"Upload!"]}@@ -9622,52 +9661,52 @@ export default {275,{"upsertFieldPermissionsInput": [- 607,+ 608,"UpsertFieldPermissionsInput!"]}],"upsertFieldsWidget": [- 649,+ 650,{"input": [- 610,+ 611,"UpsertFieldsWidgetInput!"]}],"upsertObjectPermissions": [- 396,+ 397,{"upsertObjectPermissionsInput": [- 611,+ 612,"UpsertObjectPermissionsInput!"]}],"upsertPermissionFlags": [- 461,+ 462,{"upsertPermissionFlagsInput": [- 612,+ 613,"UpsertPermissionFlagsInput!"]}],"upsertRowLevelPermissionPredicates": [- 614,+ 615,{"input": [- 613,+ 614,"UpsertRowLevelPermissionPredicatesInput!"]}],"upsertViewWidget": [- 649,+ 650,{"input": [- 615,+ 616,"UpsertViewWidgetInput!"]}@@ -9676,13 +9715,13 @@ export default {82,{"input": [- 642,+ 643,"ValidateApprovedAccessDomainInput!"]}],"verifyEmailAndGetLoginToken": [- 646,+ 647,{"captchaToken": [1@@ -9727,7 +9766,7 @@ export default {}],"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [- 647,+ 648,{"otp": [1,@@ -9752,10 +9791,10 @@ export default {},"NavigationMenuItem": {"agentChatChannelId": [- 537+ 538],"applicationId": [- 537+ 538],"color": [1@@ -9764,13 +9803,13 @@ export default {213],"folderId": [- 537+ 538],"icon": [1],"id": [- 537+ 538],"link": [1@@ -9779,31 +9818,31 @@ export default {1],"pageLayoutId": [- 537+ 538],"position": [6],"targetObjectMetadataId": [- 537+ 538],"targetRecordId": [- 537+ 538],"targetRecordIdentifier": [- 440+ 441],"type": [- 386+ 387],"updatedAt": [213],"userWorkspaceId": [- 537+ 538],"viewId": [- 537+ 538],"__typename": [1@@ -9812,7 +9851,7 @@ export default {"NavigationMenuItemType": {},"NotesConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -9820,7 +9859,7 @@ export default {},"Object": {"applicationId": [- 537+ 538],"color": [1@@ -9838,7 +9877,7 @@ export default {1],"fields": [- 391,+ 392,{"filter": [273,@@ -9857,19 +9896,19 @@ export default {1],"id": [- 537+ 538],"imageIdentifierFieldMetadataId": [- 537+ 538],"indexMetadataList": [- 316+ 317],"indexMetadatas": [- 393,+ 394,{"filter": [- 319,+ 320,"IndexFilter!"],"paging": [@@ -9906,7 +9945,7 @@ export default {4],"labelIdentifierFieldMetadataId": [- 537+ 538],"labelPlural": [1@@ -9921,10 +9960,10 @@ export default {1],"openRecordIn": [- 395+ 396],"searchFieldMetadataList": [- 479+ 480],"shortcut": [1@@ -9941,10 +9980,10 @@ export default {},"ObjectConnection": {"edges": [- 390+ 391],"pageInfo": [- 407+ 408],"__typename": [1@@ -9955,7 +9994,7 @@ export default {163],"node": [- 388+ 389],"__typename": [1@@ -9966,7 +10005,7 @@ export default {272],"pageInfo": [- 407+ 408],"__typename": [1@@ -9974,10 +10013,10 @@ export default {},"ObjectFilter": {"and": [- 392+ 393],"id": [- 538+ 539],"isActive": [128@@ -10001,10 +10040,10 @@ export default {128],"or": [- 392+ 393],"universalIdentifier": [- 538+ 539],"__typename": [1@@ -10012,10 +10051,10 @@ export default {},"ObjectIndexMetadatasConnection": {"edges": [- 317+ 318],"pageInfo": [- 407+ 408],"__typename": [1@@ -10023,7 +10062,7 @@ export default {},"ObjectMetadataCommandMenuItemPayload": {"objectMetadataItemId": [- 537+ 538],"__typename": [1@@ -10044,16 +10083,16 @@ export default {4],"objectMetadataId": [- 537+ 538],"restrictedFields": [- 327+ 328],"rowLevelPermissionPredicateGroups": [- 464+ 465],"rowLevelPermissionPredicates": [- 463+ 464],"__typename": [1@@ -10073,7 +10112,7 @@ export default {4],"objectMetadataId": [- 537+ 538],"__typename": [1@@ -10098,7 +10137,7 @@ export default {1],"properties": [- 400+ 401],"recordId": [1@@ -10115,13 +10154,13 @@ export default {},"ObjectRecordEventProperties": {"after": [- 327+ 328],"before": [- 327+ 328],"diff": [- 327+ 328],"updatedFields": [1@@ -10132,7 +10171,7 @@ export default {},"ObjectRecordEventWithQueryIds": {"objectRecordEvent": [- 399+ 400],"queryIds": [1@@ -10145,10 +10184,10 @@ export default {"OnboardingStatus": {},"OnboardingStepNavigation": {"onboardingStatus": [- 403+ 404],"previousOnboardingStatus": [- 403+ 404],"__typename": [1@@ -10182,19 +10221,19 @@ export default {},"PageLayout": {"applicationId": [- 537+ 538],"createdAt": [213],"defaultTabToFocusOnMobileAndSidePanelId": [- 537+ 538],"deletedAt": [213],"id": [- 537+ 538],"isFirstTabPinned": [4@@ -10206,16 +10245,16 @@ export default {1],"objectMetadataId": [- 537+ 538],"tabs": [- 409+ 410],"type": [- 411+ 412],"universalIdentifier": [- 537+ 538],"updatedAt": [213@@ -10226,7 +10265,7 @@ export default {},"PageLayoutTab": {"applicationId": [- 537+ 538],"createdAt": [213@@ -10238,7 +10277,7 @@ export default {1],"id": [- 537+ 538],"isActive": [4@@ -10250,10 +10289,10 @@ export default {4],"layoutMode": [- 410+ 411],"pageLayoutId": [- 537+ 538],"position": [6@@ -10262,13 +10301,13 @@ export default {1],"universalIdentifier": [- 537+ 538],"updatedAt": [213],"widgets": [- 412+ 413],"__typename": [1@@ -10277,17 +10316,23 @@ export default {"PageLayoutTabLayoutMode": {},"PageLayoutType": {},"PageLayoutWidget": {+ "applicationGrantedIframeMediaPermissions": [+ 310+ ],"applicationId": [- 537+ 538+ ],+ "applicationName": [+ 1],"conditionalAvailabilityExpression": [1],"conditionalDisplay": [- 327+ 328],"configuration": [- 666+ 667],"createdAt": [213@@ -10299,7 +10344,7 @@ export default {307],"id": [- 537+ 538],"isActive": [4@@ -10311,22 +10356,22 @@ export default {4],"objectMetadataId": [- 537+ 538],"pageLayoutTabId": [- 537+ 538],"position": [- 415+ 416],"title": [1],"type": [- 668+ 669],"universalIdentifier": [- 537+ 538],"updatedAt": [213@@ -10337,7 +10382,7 @@ export default {},"PageLayoutWidgetCanvasPosition": {"layoutMode": [- 410+ 411],"__typename": [1@@ -10351,7 +10396,7 @@ export default {10],"layoutMode": [- 410+ 411],"row": [10@@ -10365,13 +10410,13 @@ export default {},"PageLayoutWidgetPosition": {"on_PageLayoutWidgetCanvasPosition": [- 413+ 414],"on_PageLayoutWidgetGridPosition": [- 414+ 415],"on_PageLayoutWidgetVerticalListPosition": [- 417+ 418],"__typename": [1@@ -10380,13 +10425,13 @@ export default {"PageLayoutWidgetVerticalListHeightBehavior": {},"PageLayoutWidgetVerticalListPosition": {"heightBehavior": [- 416+ 417],"index": [10],"layoutMode": [- 410+ 411],"__typename": [1@@ -10402,7 +10447,7 @@ export default {},"PermissionFlag": {"applicationId": [- 537+ 538],"createdAt": [213@@ -10414,7 +10459,7 @@ export default {1],"id": [- 537+ 538],"key": [1@@ -10426,7 +10471,7 @@ export default {1],"universalIdentifier": [- 537+ 538],"updatedAt": [213@@ -10438,7 +10483,7 @@ export default {"PermissionFlagType": {},"PieChartConfiguration": {"aggregateFieldMetadataId": [- 537+ 538],"aggregateOperation": [27@@ -10447,10 +10492,10 @@ export default {1],"configurationType": [- 667+ 668],"dateGranularity": [- 402+ 403],"description": [1@@ -10462,13 +10507,13 @@ export default {4],"filter": [- 327+ 328],"firstDayOfTheWeek": [10],"groupByFieldMetadataId": [- 537+ 538],"groupBySubFieldName": [1@@ -10500,10 +10545,10 @@ export default {},"PieChartData": {"data": [- 424+ 425],"formattedToRawLookup": [- 327+ 328],"hasTooManyGroups": [4@@ -10523,10 +10568,10 @@ export default {},"PieChartDataInput": {"configuration": [- 327+ 328],"objectMetadataId": [- 537+ 538],"__typename": [1@@ -10551,7 +10596,7 @@ export default {1],"location": [- 339+ 340],"postcode": [1@@ -10593,7 +10638,7 @@ export default {137],"blockers": [- 357+ 358],"__typename": [1@@ -10601,7 +10646,7 @@ export default {},"PublicApplicationRegistration": {"id": [- 537+ 538],"logoUrl": [1@@ -10638,7 +10683,7 @@ export default {},"PublicDomain": {"applicationId": [- 537+ 538],"createdAt": [213@@ -10647,7 +10692,7 @@ export default {1],"id": [- 537+ 538],"isValidated": [4@@ -10661,7 +10706,7 @@ export default {267],"metadata": [- 433+ 434],"__typename": [1@@ -10686,13 +10731,13 @@ export default {},"PublicImapSmtpCaldavConnectionParameters": {"CALDAV": [- 430+ 431],"IMAP": [- 430+ 431],"SMTP": [- 430+ 431],"__typename": [1@@ -10709,13 +10754,13 @@ export default {1],"id": [- 537+ 538],"logo": [1],"workspaceUrls": [- 691+ 692],"__typename": [1@@ -10726,7 +10771,7 @@ export default {1],"id": [- 537+ 538],"logo": [1@@ -10752,7 +10797,7 @@ export default {7],"channelId": [- 537,+ 538,"UUID!"],"filter": [@@ -10776,7 +10821,7 @@ export default {24,{"agentId": [- 537,+ 538,"UUID!"],"limit": [@@ -10816,7 +10861,7 @@ export default {42,{"filter": [- 336+ 337]}],@@ -10833,18 +10878,18 @@ export default {}],"appMessageChannels": [- 358,+ 359,{"filter": [- 337+ 338]}],"appMessageFolders": [- 365,+ 366,{"filter": [- 338+ 339]}],@@ -10852,7 +10897,7 @@ export default {51,{"applicationId": [- 537,+ 538,"UUID!"]}@@ -10861,7 +10906,7 @@ export default {52,{"applicationId": [- 537,+ 538,"UUID!"]}@@ -10885,10 +10930,10 @@ export default {}],"applicationSdkClientChecksums": [- 478,+ 479,{"applicationId": [- 537,+ 538,"UUID!"]}@@ -10917,10 +10962,10 @@ export default {}],"callRecordingIdForCalendarEvent": [- 537,+ 538,{"calendarEventId": [- 537,+ 538,"UUID!"]}@@ -10929,10 +10974,10 @@ export default {21,{"agentUniversalIdentifier": [- 537+ 538],"threadId": [- 537+ 538],"threadKey": [1@@ -10943,10 +10988,10 @@ export default {145,{"agentUniversalIdentifier": [- 537+ 538],"threadId": [- 537+ 538],"threadKey": [1@@ -10957,7 +11002,7 @@ export default {17,{"id": [- 537,+ 538,"UUID!"]}@@ -10975,7 +11020,7 @@ export default {}],"checkWorkspaceInviteHashIsValid": [- 681,+ 682,{"inviteHash": [1,@@ -10984,7 +11029,7 @@ export default {}],"checkWorkspaceSubdomainAvailability": [- 507,+ 508,{"subdomain": [1,@@ -10996,7 +11041,7 @@ export default {156,{"id": [- 537,+ 538,"UUID!"]}@@ -11005,16 +11050,16 @@ export default {156],"currentUser": [- 637+ 638],"currentUserApplicationAuthorizations": [49],"currentUserSessions": [- 640+ 641],"currentWorkspace": [- 673+ 674],"enterpriseCheckoutSession": [1,@@ -11051,7 +11096,7 @@ export default {4],"universalIdentifier": [- 537,+ 538,"UUID!"]}@@ -11060,7 +11105,7 @@ export default {268,{"id": [- 537,+ 538,"UUID!"]}@@ -11079,7 +11124,7 @@ export default {}],"findApplicationRegistrationByClientId": [- 429,+ 430,{"clientId": [1,@@ -11147,7 +11192,7 @@ export default {}],"findInstallApplicationJobStatus": [- 330,+ 331,{"jobId": [1@@ -11168,10 +11213,10 @@ export default {48],"findManyLogicFunctions": [- 340+ 341],"findManyMarketplaceApps": [- 348,+ 349,{"universalIdentifiers": [1,@@ -11180,10 +11225,10 @@ export default {}],"findManyPublicDomains": [- 431+ 432],"findMarketplaceAppDetail": [- 349,+ 350,{"universalIdentifier": [1,@@ -11204,10 +11249,10 @@ export default {48,{"id": [- 537+ 538],"universalIdentifier": [- 537+ 538]}],@@ -11221,16 +11266,16 @@ export default {}],"findOneLogicFunction": [- 340,+ 341,{"input": [- 344,+ 345,"LogicFunctionIdInput!"]}],"findUninstallApplicationJobStatus": [- 330,+ 331,{"jobId": [1@@ -11242,7 +11287,7 @@ export default {}],"findUpgradeApplicationJobStatus": [- 330,+ 331,{"jobId": [1@@ -11254,10 +11299,10 @@ export default {}],"findWorkspaceAiStats": [- 675+ 676],"findWorkspaceFromInviteHash": [- 673,+ 674,{"inviteHash": [1,@@ -11266,13 +11311,13 @@ export default {}],"findWorkspaceInvitations": [- 680+ 681],"frontComponent": [288,{"id": [- 537,+ 538,"UUID!"]}@@ -11281,7 +11326,7 @@ export default {288],"getAddressDetails": [- 425,+ 426,{"placeId": [1,@@ -11297,7 +11342,7 @@ export default {33],"getApiKeyRoles": [- 460+ 461],"getApprovedAccessDomains": [82@@ -11322,10 +11367,10 @@ export default {}],"getAvailablePackages": [- 327,+ 328,{"input": [- 344,+ 345,"LogicFunctionIdInput!"]}@@ -11334,7 +11379,7 @@ export default {162,{"id": [- 537,+ 538,"UUID!"]}@@ -11343,10 +11388,10 @@ export default {243],"getInviteSuggestions": [- 326+ 327],"getJobs": [- 330,+ 331,{"jobIds": [1,@@ -11358,13 +11403,13 @@ export default {1,{"input": [- 344,+ 345,"LogicFunctionIdInput!"]}],"getPageLayout": [- 408,+ 409,{"id": [1,@@ -11373,7 +11418,7 @@ export default {}],"getPageLayoutTab": [- 409,+ 410,{"id": [1,@@ -11382,7 +11427,7 @@ export default {}],"getPageLayoutTabs": [- 409,+ 410,{"pageLayoutId": [1,@@ -11391,7 +11436,7 @@ export default {}],"getPageLayoutWidget": [- 412,+ 413,{"id": [1,@@ -11400,7 +11445,7 @@ export default {}],"getPageLayoutWidgets": [- 412,+ 413,{"pageLayoutTabId": [1,@@ -11409,21 +11454,21 @@ export default {}],"getPageLayouts": [- 408,+ 409,{"objectMetadataId": [1],"pageLayoutType": [- 411+ 412]}],"getPermissionFlags": [- 419+ 420],"getPublicWorkspaceDataByDomain": [- 435,+ 436,{"origin": [1@@ -11431,10 +11476,10 @@ export default {}],"getPublicWorkspaceDataById": [- 436,+ 437,{"id": [- 537,+ 538,"UUID!"]}@@ -11443,25 +11488,25 @@ export default {118],"getRole": [- 460,+ 461,{"id": [- 537,+ 538,"UUID!"]}],"getRoles": [- 460+ 461],"getSSOIdentityProviders": [285],"getToolIndex": [- 519+ 520],"getToolInputSchema": [- 327,+ 328,{"toolName": [1,@@ -11470,15 +11515,15 @@ export default {}],"getUsageAnalytics": [- 621,+ 622,{"input": [- 622+ 623]}],"getView": [- 649,+ 650,{"id": [1,@@ -11487,7 +11532,7 @@ export default {}],"getViewField": [- 652,+ 653,{"id": [1,@@ -11496,7 +11541,7 @@ export default {}],"getViewFieldGroup": [- 653,+ 654,{"id": [1,@@ -11505,7 +11550,7 @@ export default {}],"getViewFieldGroups": [- 653,+ 654,{"viewId": [1,@@ -11514,7 +11559,7 @@ export default {}],"getViewFields": [- 652,+ 653,{"viewId": [1,@@ -11523,7 +11568,7 @@ export default {}],"getViewFilter": [- 654,+ 655,{"id": [1,@@ -11532,7 +11577,7 @@ export default {}],"getViewFilterGroup": [- 655,+ 656,{"id": [1,@@ -11541,7 +11586,7 @@ export default {}],"getViewFilterGroups": [- 655,+ 656,{"viewId": [1@@ -11549,7 +11594,7 @@ export default {}],"getViewFilters": [- 654,+ 655,{"viewId": [1@@ -11557,7 +11602,7 @@ export default {}],"getViewGroup": [- 658,+ 659,{"id": [1,@@ -11566,7 +11611,7 @@ export default {}],"getViewGroups": [- 658,+ 659,{"viewId": [1@@ -11574,7 +11619,7 @@ export default {}],"getViewSort": [- 661,+ 662,{"id": [1,@@ -11583,7 +11628,7 @@ export default {}],"getViewSorts": [- 661,+ 662,{"viewId": [1@@ -11591,19 +11636,19 @@ export default {}],"getViews": [- 649,+ 650,{"objectMetadataId": [1],"viewTypes": [- 663,+ 664,"[ViewType!]"]}],"getWorkspaceCreationDefaults": [- 678+ 679],"gettingStartedProgress": [297@@ -11630,10 +11675,10 @@ export default {}],"lineChartData": [- 332,+ 333,{"input": [- 333,+ 334,"LineChartDataInput!"]}@@ -11642,19 +11687,19 @@ export default {109],"mcpServer": [- 354,+ 355,{"id": [- 537,+ 538,"UUID!"]}],"mcpServers": [- 354+ 355],"messageSuppressions": [- 370,+ 371,{"input": [286,@@ -11663,22 +11708,22 @@ export default {}],"metadataTranslations": [- 375,+ 376,{"input": [- 378,+ 379,"MetadataTranslationsInput!"]}],"minimalMetadata": [- 379+ 380],"mostlyEmptyFieldMetadataIds": [- 537,+ 538,{"objectMetadataId": [- 537,+ 538,"UUID!"]}@@ -11690,7 +11735,7 @@ export default {129,{"connectedAccountId": [- 537+ 538]}],@@ -11698,53 +11743,53 @@ export default {160],"myMessageChannels": [- 358,+ 359,{"connectedAccountId": [- 537+ 538]}],"myMessageFolders": [- 365,+ 366,{"messageChannelId": [- 537+ 538]}],"myUserApplicationVariables": [- 683+ 684],"navigationMenuItem": [- 385,+ 386,{"id": [- 537,+ 538,"UUID!"]}],"navigationMenuItems": [- 385+ 386],"object": [- 388,+ 389,{"id": [- 537,+ 538,"UUID!"]}],"objectRecordCounts": [- 398+ 399],"objects": [- 389,+ 390,{"filter": [- 392,+ 393,"ObjectFilter!"],"paging": [@@ -11754,10 +11799,10 @@ export default {}],"pieChartData": [- 422,+ 423,{"input": [- 423,+ 424,"PieChartDataInput!"]}@@ -11766,22 +11811,22 @@ export default {137,{"input": [- 426,+ 427,"PreviewMessageCampaignAudienceInput!"]}],"previewMessageCampaignSend": [- 428,+ 429,{"input": [- 427,+ 428,"PreviewMessageCampaignSendInput!"]}],"publicMarketplaceAppDetail": [- 349,+ 350,{"universalIdentifier": [1,@@ -11790,76 +11835,76 @@ export default {}],"publicMarketplaceApps": [- 348+ 349],"recordPermissions": [- 442,+ 443,{"targets": [- 451,+ 452,"[RecordTargetInput!]!"]}],"recordSharing": [- 447,+ 448,{"target": [- 451,+ 452,"RecordTargetInput!"]}],"relatedRecordPaths": [- 452+ 453],"skill": [- 503,+ 504,{"id": [- 537,+ 538,"UUID!"]}],"skills": [- 503+ 504],"timelineActivityTypes": [- 515+ 516],"twoFactorAuthenticationRecoveryStatus": [- 536,+ 537,{"userId": [- 537,+ 538,"UUID!"]}],"unsubscribeTopics": [- 540+ 541],"usageLimits": [- 624+ 625],"usageQuotaDefinitions": [- 628+ 629],"usageQuotaScopeConsumption": [- 630,+ 631,{"input": [- 631,+ 632,"UsageQuotaScopeInput!"]}],"usageQuotasWithConsumption": [- 632+ 633],"validatePasswordResetToken": [- 643,+ 644,{"passwordResetToken": [1,@@ -11868,34 +11913,34 @@ export default {}],"validationRules": [- 644,+ 645,{"objectMetadataId": [- 537,+ 538,"UUID!"]}],"validationRulesReadingField": [- 644,+ 645,{"fieldMetadataId": [- 537,+ 538,"UUID!"]}],"webhook": [- 665,+ 666,{"id": [- 537,+ 538,"UUID!"]}],"webhooks": [- 665+ 666],"__typename": [1@@ -11903,7 +11948,7 @@ export default {},"RatioAggregateConfig": {"fieldMetadataId": [- 537+ 538],"optionValue": [1@@ -11923,7 +11968,7 @@ export default {1],"id": [- 537+ 538],"progress": [10@@ -11934,7 +11979,7 @@ export default {},"RecordIdentifier": {"id": [- 537+ 538],"imageIdentifier": [1@@ -11965,13 +12010,13 @@ export default {},"RecordPermissionsResult": {"objectMetadataId": [- 537+ 538],"permissions": [- 441+ 442],"recordId": [- 537+ 538],"__typename": [1@@ -11980,10 +12025,10 @@ export default {"RecordShareAccessLevel": {},"RecordSharePrincipalInput": {"roleId": [- 537+ 538],"workspaceMemberId": [- 537+ 538],"__typename": [1@@ -12005,13 +12050,13 @@ export default {4],"permissions": [- 441+ 442],"roles": [- 449+ 450],"shares": [- 448+ 449],"__typename": [1@@ -12019,22 +12064,22 @@ export default {},"RecordSharingGrantDTO": {"accessLevel": [- 443+ 444],"id": [18],"principalId": [- 537+ 538],"principalRoleId": [- 537+ 538],"principalType": [- 445+ 446],"rowCause": [- 446+ 447],"__typename": [1@@ -12048,7 +12093,7 @@ export default {4],"id": [- 537+ 538],"label": [1@@ -12059,7 +12104,7 @@ export default {},"RecordTableConfiguration": {"configurationType": [- 667+ 668],"isUIEditable": [4@@ -12076,10 +12121,10 @@ export default {},"RecordTargetInput": {"objectMetadataId": [- 537+ 538],"recordId": [- 537+ 538],"__typename": [1@@ -12087,22 +12132,22 @@ export default {},"RelatedRecordPath": {"firstFieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"isInherent": [4],"objectMetadataId": [- 537+ 538],"secondFieldMetadataId": [- 537+ 538],"thirdFieldMetadataId": [- 537+ 538],"__typename": [1@@ -12113,16 +12158,16 @@ export default {268],"sourceObjectMetadata": [- 388+ 389],"targetFieldMetadata": [268],"targetObjectMetadata": [- 388+ 389],"type": [- 454+ 455],"__typename": [1@@ -12161,7 +12206,7 @@ export default {},"RevokeApiKeyInput": {"id": [- 537+ 538],"__typename": [1@@ -12189,7 +12234,7 @@ export default {40],"applicationId": [- 537+ 538],"canAccessAllAgentChatChannels": [4@@ -12231,7 +12276,7 @@ export default {1],"id": [- 537+ 538],"isEditable": [4@@ -12240,22 +12285,22 @@ export default {1],"objectPermissions": [- 396+ 397],"permissionFlags": [- 461+ 462],"rowLevelPermissionPredicateGroups": [- 464+ 465],"rowLevelPermissionPredicates": [- 463+ 464],"universalIdentifier": [- 537+ 538],"workspaceMembers": [- 682+ 683],"__typename": [1@@ -12266,10 +12311,10 @@ export default {1],"id": [- 537+ 538],"roleId": [- 537+ 538],"__typename": [1@@ -12294,7 +12339,7 @@ export default {1],"operand": [- 468+ 469],"positionInRowLevelPermissionPredicateGroup": [6@@ -12312,7 +12357,7 @@ export default {1],"value": [- 327+ 328],"workspaceMemberFieldMetadataId": [1@@ -12329,7 +12374,7 @@ export default {1],"logicalOperator": [- 466+ 467],"objectMetadataId": [1@@ -12349,16 +12394,16 @@ export default {},"RowLevelPermissionPredicateGroupInput": {"id": [- 537+ 538],"logicalOperator": [- 466+ 467],"objectMetadataId": [- 537+ 538],"parentRowLevelPermissionPredicateGroupId": [- 537+ 538],"positionInRowLevelPermissionPredicateGroup": [6@@ -12370,28 +12415,28 @@ export default {"RowLevelPermissionPredicateGroupLogicalOperator": {},"RowLevelPermissionPredicateInput": {"fieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"operand": [- 468+ 469],"positionInRowLevelPermissionPredicateGroup": [6],"relationFieldMetadataId": [- 537+ 538],"rowLevelPermissionPredicateGroupId": [- 537+ 538],"subFieldName": [1],"value": [- 327+ 328],"workspaceMemberFieldMetadataId": [1@@ -12412,22 +12457,22 @@ export default {1],"input": [- 471+ 472],"messages": [- 471+ 472],"prompt": [1],"responseFormat": [- 327+ 328],"runAsWorkspaceMemberId": [- 537+ 538],"thread": [- 474+ 475],"waitForCompletion": [4@@ -12438,7 +12483,7 @@ export default {},"RunAgentMessageAttachmentInput": {"fileId": [- 537+ 538],"filename": [1@@ -12449,13 +12494,13 @@ export default {},"RunAgentMessageInput": {"attachments": [- 470+ 471],"content": [1],"role": [- 472+ 473],"__typename": [1@@ -12467,10 +12512,10 @@ export default {1],"result": [- 327+ 328],"runId": [- 537+ 538],"status": [1@@ -12479,7 +12524,7 @@ export default {4],"threadId": [- 537+ 538],"__typename": [1@@ -12498,7 +12543,7 @@ export default {},"SSOConnection": {"id": [- 537+ 538],"issuer": [1@@ -12507,7 +12552,7 @@ export default {1],"status": [- 477+ 478],"type": [308@@ -12518,7 +12563,7 @@ export default {},"SSOIdentityProvider": {"id": [- 537+ 538],"issuer": [1@@ -12527,7 +12572,7 @@ export default {1],"status": [- 477+ 478],"type": [308@@ -12553,16 +12598,16 @@ export default {213],"fieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"position": [6],"tsVectorFieldMetadataId": [- 537+ 538],"updatedAt": [213@@ -12573,13 +12618,13 @@ export default {},"SendAppChannelMessageInput": {"idempotencyKey": [- 537+ 538],"messageChannelId": [- 537+ 538],"messageThreadId": [- 537+ 538],"text": [1@@ -12590,10 +12635,10 @@ export default {},"SendAppChannelMessageOutput": {"messageId": [- 537+ 538],"messageThreadId": [- 537+ 538],"__typename": [1@@ -12601,7 +12646,7 @@ export default {},"SendChatMessageResult": {"mentionedParticipantWorkspaceMemberIds": [- 537+ 538],"messageId": [1@@ -12644,7 +12689,7 @@ export default {1],"files": [- 483+ 484],"fromHandle": [1@@ -12656,7 +12701,7 @@ export default {1],"targetRecord": [- 486+ 487],"to": [1@@ -12684,7 +12729,7 @@ export default {1],"recordId": [- 537+ 538],"__typename": [1@@ -12712,10 +12757,10 @@ export default {1],"toolCall": [- 327+ 328],"workspaceMemberIds": [- 537+ 538],"__typename": [1@@ -12723,7 +12768,7 @@ export default {},"SendInboxMessageResult": {"threadId": [- 537+ 538],"__typename": [1@@ -12734,7 +12779,7 @@ export default {1],"result": [- 680+ 681],"success": [4@@ -12813,7 +12858,7 @@ export default {44],"value": [- 327+ 328],"__typename": [1@@ -12821,25 +12866,25 @@ export default {},"SettingsMenuItem": {"applicationId": [- 537+ 538],"createdAt": [213],"frontComponentId": [- 537+ 538],"icon": [1],"id": [- 537+ 538],"position": [6],"scope": [- 497+ 498],"slug": [1@@ -12848,7 +12893,7 @@ export default {1],"universalIdentifier": [- 537+ 538],"updatedAt": [213@@ -12883,7 +12928,7 @@ export default {1],"id": [- 537+ 538],"issuer": [1@@ -12900,7 +12945,7 @@ export default {},"SetupSso": {"id": [- 537+ 538],"issuer": [1@@ -12909,7 +12954,7 @@ export default {1],"status": [- 477+ 478],"type": [308@@ -12923,7 +12968,7 @@ export default {85],"workspace": [- 692+ 693],"__typename": [1@@ -12948,7 +12993,7 @@ export default {},"Skill": {"applicationId": [- 537+ 538],"content": [1@@ -12963,7 +13008,7 @@ export default {1],"id": [- 537+ 538],"isActive": [4@@ -12989,10 +13034,10 @@ export default {},"StandaloneRichTextConfiguration": {"body": [- 459+ 460],"configurationType": [- 667+ 668],"__typename": [1@@ -13000,7 +13045,7 @@ export default {},"StartWorkspaceSetupChatResult": {"outcome": [- 690+ 691],"thread": [17@@ -13049,7 +13094,7 @@ export default {}],"exportRecords": [- 439,+ 440,{"input": [195,@@ -13058,10 +13103,10 @@ export default {}],"logicFunctionLogs": [- 345,+ 346,{"input": [- 346,+ 347,"LogicFunctionLogsInput!"]}@@ -13070,13 +13115,13 @@ export default {14,{"agentUniversalIdentifier": [- 537+ 538],"runId": [- 537+ 538],"threadId": [- 537+ 538],"threadKey": [1@@ -13100,7 +13145,7 @@ export default {"SubscriptionStatus": {},"Support": {"supportDriver": [- 512+ 513],"supportFrontChatId": [1@@ -13115,7 +13160,7 @@ export default {45],"messageChannelId": [- 537+ 538],"__typename": [1@@ -13123,7 +13168,7 @@ export default {},"TasksConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -13134,22 +13179,22 @@ export default {1],"applicationId": [- 537+ 538],"createdAt": [213],"emit": [- 516+ 517],"frontComponentUniversalIdentifier": [- 537+ 538],"icon": [1],"id": [- 537+ 538],"isActive": [4@@ -13161,13 +13206,13 @@ export default {1],"objectUniversalIdentifier": [- 537+ 538],"replacesTimelineActivityTypeUniversalIdentifier": [- 537+ 538],"universalIdentifier": [- 537+ 538],"updatedAt": [213@@ -13178,13 +13223,13 @@ export default {},"TimelineActivityTypeEmit": {"objectUniversalIdentifier": [- 537+ 538],"on": [1],"through": [- 517+ 518],"__typename": [1@@ -13192,13 +13237,13 @@ export default {},"TimelineActivityTypeEmitThrough": {"happensAtFieldUniversalIdentifier": [- 537+ 538],"relationFieldUniversalIdentifier": [- 537+ 538],"triggerFieldUniversalIdentifiers": [- 537+ 538],"__typename": [1@@ -13206,7 +13251,7 @@ export default {},"TimelineConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -13226,7 +13271,7 @@ export default {1],"inputSchema": [- 327+ 328],"label": [1@@ -13254,10 +13299,10 @@ export default {},"TriggerAddPeopleToMessageListJobInput": {"messageListId": [- 537+ 538],"personFilter": [- 327+ 328],"__typename": [1@@ -13362,7 +13407,7 @@ export default {1],"twoFactorAuthenticationMethodId": [- 537+ 538],"__typename": [1@@ -13407,19 +13452,19 @@ export default {"UUID": {},"UUIDFilterComparison": {"eq": [- 537+ 538],"gt": [- 537+ 538],"gte": [- 537+ 538],"iLike": [- 537+ 538],"in": [- 537+ 538],"is": [4@@ -13428,25 +13473,25 @@ export default {4],"like": [- 537+ 538],"lt": [- 537+ 538],"lte": [- 537+ 538],"neq": [- 537+ 538],"notILike": [- 537+ 538],"notIn": [- 537+ 538],"notLike": [- 537+ 538],"__typename": [1@@ -13461,7 +13506,7 @@ export default {1],"id": [- 537+ 538],"name": [1@@ -13470,7 +13515,7 @@ export default {213],"visibility": [- 541+ 542],"__typename": [1@@ -13491,7 +13536,7 @@ export default {6],"roleIds": [- 537+ 538],"__typename": [1@@ -13505,7 +13550,7 @@ export default {1],"id": [- 537+ 538],"isActive": [4@@ -13514,7 +13559,7 @@ export default {1],"modelConfiguration": [- 327+ 328],"modelId": [1@@ -13526,13 +13571,13 @@ export default {1],"responseFormat": [- 327+ 328],"roleId": [- 537+ 538],"triggers": [- 327+ 328],"__typename": [1@@ -13543,7 +13588,7 @@ export default {1],"id": [- 537+ 538],"name": [1@@ -13560,16 +13605,16 @@ export default {1],"id": [- 537+ 538],"isSyncEnabled": [4],"messagingProviderUniversalIdentifier": [- 537+ 538],"visibility": [- 364+ 365],"__typename": [1@@ -13588,7 +13633,7 @@ export default {1],"update": [- 548+ 549],"__typename": [1@@ -13613,7 +13658,7 @@ export default {1],"update": [- 550+ 551],"__typename": [1@@ -13635,10 +13680,10 @@ export default {},"UpdateCalendarChannelInput": {"id": [- 537+ 538],"update": [- 552+ 553],"__typename": [1@@ -13666,7 +13711,7 @@ export default {},"UpdateCommandMenuItemInput": {"availabilityObjectMetadataId": [- 537+ 538],"availabilityType": [157@@ -13681,7 +13726,7 @@ export default {1],"id": [- 537+ 538],"isPinned": [4@@ -13690,7 +13735,7 @@ export default {1],"pageLayoutId": [- 537+ 538],"position": [6@@ -13707,7 +13752,7 @@ export default {1],"id": [- 537+ 538],"__typename": [1@@ -13715,7 +13760,7 @@ export default {},"UpdateFieldInput": {"defaultValue": [- 327+ 328],"description": [1@@ -13754,22 +13799,22 @@ export default {1],"morphRelationsUpdatePayload": [- 327+ 328],"name": [1],"objectMetadataId": [- 537+ 538],"options": [- 327+ 328],"settings": [- 327+ 328],"translations": [- 376+ 377],"universalIdentifier": [1@@ -13780,10 +13825,10 @@ export default {},"UpdateFrontComponentInput": {"id": [- 537+ 538],"update": [- 557+ 558],"__typename": [1@@ -13830,10 +13875,10 @@ export default {},"UpdateLogicFunctionFromSourceInput": {"id": [- 537+ 538],"update": [- 561+ 562],"__typename": [1@@ -13841,10 +13886,10 @@ export default {},"UpdateLogicFunctionFromSourceInputUpdates": {"cronTriggerSettings": [- 327+ 328],"databaseEventTriggerSettings": [- 327+ 328],"description": [1@@ -13853,7 +13898,7 @@ export default {1],"httpRouteTriggerSettings": [- 327+ 328],"name": [1@@ -13868,10 +13913,10 @@ export default {6],"toolTriggerSettings": [- 327+ 328],"workflowActionTriggerSettings": [- 327+ 328],"__typename": [1@@ -13879,10 +13924,10 @@ export default {},"UpdateMcpServerInput": {"id": [- 537+ 538],"update": [- 563+ 564],"__typename": [1@@ -13890,7 +13935,7 @@ export default {},"UpdateMcpServerInputUpdates": {"connectionProviderId": [- 537+ 538],"isActive": [4@@ -13910,10 +13955,10 @@ export default {},"UpdateMessageChannelInput": {"id": [- 537+ 538],"update": [- 565+ 566],"__typename": [1@@ -13921,7 +13966,7 @@ export default {},"UpdateMessageChannelInputUpdates": {"contactAutoCreationPolicy": [- 359+ 360],"excludeGroupEmails": [4@@ -13936,10 +13981,10 @@ export default {4],"messageFolderImportPolicy": [- 366+ 367],"visibility": [- 364+ 365],"__typename": [1@@ -13947,10 +13992,10 @@ export default {},"UpdateMessageFolderInput": {"id": [- 537+ 538],"update": [- 567+ 568],"__typename": [1@@ -13966,10 +14011,10 @@ export default {},"UpdateMessageFoldersInput": {"ids": [- 537+ 538],"update": [- 567+ 568],"__typename": [1@@ -13980,7 +14025,7 @@ export default {1],"folderId": [- 537+ 538],"icon": [1@@ -13992,7 +14037,7 @@ export default {1],"pageLayoutId": [- 537+ 538],"position": [6@@ -14012,7 +14057,7 @@ export default {1],"imageIdentifierFieldMetadataId": [- 537+ 538],"isActive": [4@@ -14024,7 +14069,7 @@ export default {4],"labelIdentifierFieldMetadataId": [- 537+ 538],"labelPlural": [1@@ -14039,13 +14084,13 @@ export default {1],"openRecordIn": [- 395+ 396],"shortcut": [1],"translations": [- 376+ 377],"__typename": [1@@ -14053,10 +14098,10 @@ export default {},"UpdateOneFieldMetadataInput": {"id": [- 537+ 538],"update": [- 555+ 556],"__typename": [1@@ -14064,10 +14109,10 @@ export default {},"UpdateOneNavigationMenuItemInput": {"id": [- 537+ 538],"update": [- 569+ 570],"__typename": [1@@ -14075,10 +14120,10 @@ export default {},"UpdateOneObjectInput": {"id": [- 537+ 538],"update": [- 570+ 571],"__typename": [1@@ -14089,10 +14134,10 @@ export default {1],"objectMetadataId": [- 537+ 538],"type": [- 411+ 412],"__typename": [1@@ -14103,7 +14148,7 @@ export default {1],"layoutMode": [- 410+ 411],"position": [6@@ -14120,10 +14165,10 @@ export default {1],"id": [- 537+ 538],"layoutMode": [- 410+ 411],"position": [6@@ -14132,7 +14177,7 @@ export default {1],"widgets": [- 578+ 579],"__typename": [1@@ -14143,28 +14188,28 @@ export default {1],"conditionalDisplay": [- 327+ 328],"configuration": [- 327+ 328],"isActive": [4],"objectMetadataId": [- 537+ 538],"pageLayoutTabId": [- 537+ 538],"position": [- 327+ 328],"title": [1],"type": [- 668+ 669],"__typename": [1@@ -14175,28 +14220,28 @@ export default {1],"conditionalDisplay": [- 327+ 328],"configuration": [- 327+ 328],"id": [- 537+ 538],"objectMetadataId": [- 537+ 538],"pageLayoutTabId": [- 537+ 538],"position": [- 327+ 328],"title": [1],"type": [- 668+ 669],"__typename": [1@@ -14210,13 +14255,13 @@ export default {1],"objectMetadataId": [- 537+ 538],"tabs": [- 576+ 577],"type": [- 411+ 412],"__typename": [1@@ -14224,10 +14269,10 @@ export default {},"UpdateRoleInput": {"id": [- 537+ 538],"update": [- 581+ 582],"__typename": [1@@ -14288,7 +14333,7 @@ export default {1],"id": [- 537+ 538],"isActive": [4@@ -14308,7 +14353,7 @@ export default {1],"id": [- 537+ 538],"isActive": [4@@ -14317,7 +14362,7 @@ export default {1],"translations": [- 376+ 377],"__typename": [1@@ -14334,7 +14379,7 @@ export default {1],"visibility": [- 541+ 542],"__typename": [1@@ -14342,7 +14387,7 @@ export default {},"UpdateUsageLimitInput": {"id": [- 537+ 538],"payload": [200@@ -14353,10 +14398,10 @@ export default {},"UpdateValidationRuleInput": {"id": [- 537+ 538],"update": [- 587+ 588],"__typename": [1@@ -14367,7 +14412,7 @@ export default {1],"errorFieldMetadataId": [- 537+ 538],"expression": [1@@ -14390,10 +14435,10 @@ export default {},"UpdateViewFieldGroupInput": {"id": [- 537+ 538],"update": [- 589+ 590],"__typename": [1@@ -14418,10 +14463,10 @@ export default {},"UpdateViewFieldInput": {"id": [- 537+ 538],"update": [- 591+ 592],"__typename": [1@@ -14441,7 +14486,7 @@ export default {6],"viewFieldGroupId": [- 537+ 538],"__typename": [1@@ -14449,19 +14494,19 @@ export default {},"UpdateViewFilterGroupInput": {"id": [- 537+ 538],"logicalOperator": [- 656+ 657],"parentViewFilterGroupId": [- 537+ 538],"positionInViewFilterGroup": [6],"viewId": [- 537+ 538],"__typename": [1@@ -14469,10 +14514,10 @@ export default {},"UpdateViewFilterInput": {"id": [- 537+ 538],"update": [- 594+ 595],"__typename": [1@@ -14480,25 +14525,25 @@ export default {},"UpdateViewFilterInputUpdates": {"fieldMetadataId": [- 537+ 538],"operand": [- 657+ 658],"positionInViewFilterGroup": [6],"relationTargetFieldMetadataId": [- 537+ 538],"subFieldName": [1],"value": [- 327+ 328],"viewFilterGroupId": [- 537+ 538],"__typename": [1@@ -14506,10 +14551,10 @@ export default {},"UpdateViewGroupInput": {"id": [- 537+ 538],"update": [- 596+ 597],"__typename": [1@@ -14517,7 +14562,7 @@ export default {},"UpdateViewGroupInputUpdates": {"fieldMetadataId": [- 537+ 538],"fieldValue": [1@@ -14537,13 +14582,13 @@ export default {1],"calendarEndFieldMetadataId": [- 537+ 538],"calendarFieldMetadataId": [- 537+ 538],"calendarLayout": [- 650+ 651],"groupLoadLimit": [10@@ -14552,7 +14597,7 @@ export default {1],"id": [- 537+ 538],"isCompact": [4@@ -14561,19 +14606,19 @@ export default {27],"kanbanAggregateOperationFieldMetadataId": [- 537+ 538],"kanbanColumnWidth": [10],"mainGroupByFieldMetadataId": [- 537+ 538],"name": [1],"openRecordIn": [- 660+ 661],"position": [6@@ -14582,13 +14627,13 @@ export default {4],"translations": [- 376+ 377],"type": [- 663+ 664],"visibility": [- 664+ 665],"__typename": [1@@ -14596,10 +14641,10 @@ export default {},"UpdateViewSortInput": {"id": [- 537+ 538],"update": [- 599+ 600],"__typename": [1@@ -14607,7 +14652,7 @@ export default {},"UpdateViewSortInputUpdates": {"direction": [- 662+ 663],"subFieldName": [1@@ -14618,10 +14663,10 @@ export default {},"UpdateWebhookInput": {"id": [- 537+ 538],"update": [- 601+ 602],"__typename": [1@@ -14635,7 +14680,7 @@ export default {1],"roleId": [- 537+ 538],"secret": [1@@ -14692,7 +14737,7 @@ export default {1],"aiModelIdByTier": [- 327+ 328],"allowImpersonation": [4@@ -14701,7 +14746,7 @@ export default {1],"defaultRoleId": [- 537+ 538],"displayName": [1@@ -14761,7 +14806,7 @@ export default {6],"workspaceDiscoverability": [- 679+ 680],"__typename": [1@@ -14769,10 +14814,10 @@ export default {},"UpdateWorkspaceMemberSettingsInput": {"update": [- 327+ 328],"workspaceMemberId": [- 537+ 538],"__typename": [1@@ -14784,7 +14829,7 @@ export default {276],"roleId": [- 537+ 538],"__typename": [1@@ -14792,7 +14837,7 @@ export default {},"UpsertFieldsWidgetFieldInput": {"fieldMetadataId": [- 537+ 538],"isVisible": [4@@ -14801,7 +14846,7 @@ export default {6],"viewFieldId": [- 537+ 538],"__typename": [1@@ -14809,10 +14854,10 @@ export default {},"UpsertFieldsWidgetGroupInput": {"fields": [- 608+ 609],"id": [- 537+ 538],"isVisible": [4@@ -14829,13 +14874,13 @@ export default {},"UpsertFieldsWidgetInput": {"fields": [- 608+ 609],"groups": [- 609+ 610],"widgetId": [- 537+ 538],"__typename": [1@@ -14843,10 +14888,10 @@ export default {},"UpsertObjectPermissionsInput": {"objectPermissions": [- 397+ 398],"roleId": [- 537+ 538],"__typename": [1@@ -14857,7 +14902,7 @@ export default {1],"roleId": [- 537+ 538],"__typename": [1@@ -14865,16 +14910,16 @@ export default {},"UpsertRowLevelPermissionPredicatesInput": {"objectMetadataId": [- 537+ 538],"predicateGroups": [- 465+ 466],"predicates": [- 467+ 468],"roleId": [- 537+ 538],"__typename": [1@@ -14882,10 +14927,10 @@ export default {},"UpsertRowLevelPermissionPredicatesResult": {"predicateGroups": [- 464+ 465],"predicates": [- 463+ 464],"__typename": [1@@ -14893,22 +14938,22 @@ export default {},"UpsertViewWidgetInput": {"view": [- 619+ 620],"viewFields": [- 616+ 617],"viewFilterGroups": [- 617+ 618],"viewFilters": [- 618+ 619],"viewSorts": [- 620+ 621],"widgetId": [- 537+ 538],"__typename": [1@@ -14919,7 +14964,7 @@ export default {27],"fieldMetadataId": [- 537+ 538],"isVisible": [4@@ -14931,7 +14976,7 @@ export default {6],"viewFieldId": [- 537+ 538],"__typename": [1@@ -14939,13 +14984,13 @@ export default {},"UpsertViewWidgetViewFilterGroupInput": {"id": [- 537+ 538],"logicalOperator": [- 656+ 657],"parentViewFilterGroupId": [- 537+ 538],"positionInViewFilterGroup": [6@@ -14956,28 +15001,28 @@ export default {},"UpsertViewWidgetViewFilterInput": {"fieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"operand": [- 657+ 658],"positionInViewFilterGroup": [6],"relationTargetFieldMetadataId": [- 537+ 538],"subFieldName": [1],"value": [- 327+ 328],"viewFilterGroupId": [- 537+ 538],"__typename": [1@@ -14985,34 +15030,34 @@ export default {},"UpsertViewWidgetViewSettingsInput": {"calendarEndFieldMetadataId": [- 537+ 538],"calendarFieldMetadataId": [- 537+ 538],"calendarLayout": [- 650+ 651],"kanbanAggregateOperation": [27],"kanbanAggregateOperationFieldMetadataId": [- 537+ 538],"kanbanColumnWidth": [10],"mainGroupByFieldMetadataId": [- 537+ 538],"openRecordIn": [- 660+ 661],"shouldHideEmptyGroups": [4],"type": [- 663+ 664],"__typename": [1@@ -15020,13 +15065,13 @@ export default {},"UpsertViewWidgetViewSortInput": {"direction": [- 662+ 663],"fieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"__typename": [1@@ -15040,22 +15085,22 @@ export default {213],"timeSeries": [- 634+ 635],"usageByApplication": [- 623+ 624],"usageByModel": [- 623+ 624],"usageByOperationType": [- 623+ 624],"usageByUser": [- 623+ 624],"userDailyUsage": [- 636+ 637],"__typename": [1@@ -15063,7 +15108,7 @@ export default {},"UsageAnalyticsInput": {"operationTypes": [- 626+ 627],"periodEnd": [213@@ -15106,7 +15151,7 @@ export default {213],"id": [- 537+ 538],"limitKind": [1@@ -15115,7 +15160,7 @@ export default {100],"operationType": [- 626+ 627],"periodCount": [10@@ -15124,7 +15169,7 @@ export default {1],"resourceType": [- 633+ 634],"spenderId": [1@@ -15133,7 +15178,7 @@ export default {1],"unit": [- 635+ 636],"updatedAt": [213@@ -15144,10 +15189,10 @@ export default {},"UsageLimitOperationDefinition": {"allowedUnits": [- 635+ 636],"operationType": [- 626+ 627],"__typename": [1@@ -15156,7 +15201,7 @@ export default {"UsageOperationType": {},"UsageQuotaDefinition": {"allowedOperations": [- 625+ 626],"allowedSpenderTypes": [1@@ -15165,10 +15210,10 @@ export default {1],"operatorOnlyScopes": [- 629+ 630],"resourceType": [- 633+ 634],"__typename": [1@@ -15176,7 +15221,7 @@ export default {},"UsageQuotaDefinitions": {"definitions": [- 627+ 628],"hasAllowancePeriod": [4@@ -15190,7 +15235,7 @@ export default {},"UsageQuotaOperatorOnlyScope": {"operationType": [- 626+ 627],"periodUnit": [1@@ -15199,7 +15244,7 @@ export default {1],"unit": [- 635+ 636],"__typename": [1@@ -15221,13 +15266,13 @@ export default {},"UsageQuotaScopeInput": {"operationType": [- 626+ 627],"periodUnit": [1],"resourceType": [- 633+ 634],"spenderId": [1@@ -15236,7 +15281,7 @@ export default {1],"unit": [- 635+ 636],"__typename": [1@@ -15247,7 +15292,7 @@ export default {100],"id": [- 537+ 538],"isEnforced": [4@@ -15256,7 +15301,7 @@ export default {100],"operationType": [- 626+ 627],"periodEnd": [213@@ -15271,7 +15316,7 @@ export default {100],"resourceType": [- 633+ 634],"spenderId": [1@@ -15283,7 +15328,7 @@ export default {1],"unit": [- 635+ 636],"__typename": [1@@ -15307,7 +15352,7 @@ export default {"UsageUnit": {},"UsageUserDaily": {"dailyUsage": [- 634+ 635],"userWorkspaceId": [1@@ -15330,10 +15375,10 @@ export default {213],"currentUserWorkspace": [- 641+ 642],"currentWorkspace": [- 673+ 674],"deletedAt": [213@@ -15354,7 +15399,7 @@ export default {4],"id": [- 537+ 538],"isEmailVerified": [4@@ -15369,10 +15414,10 @@ export default {1],"onboardingStatus": [- 403+ 404],"previousOnboardingStatus": [- 403+ 404],"supportUserHash": [1@@ -15381,19 +15426,19 @@ export default {213],"userVars": [- 328+ 329],"userWorkspaces": [- 641+ 642],"workspaceMember": [- 682+ 683],"workspaceMembers": [- 682+ 683],"workspaces": [- 641+ 642],"__typename": [1@@ -15419,7 +15464,7 @@ export default {1],"options": [- 327+ 328],"type": [1@@ -15449,7 +15494,7 @@ export default {213],"id": [- 537+ 538],"ipAddress": [1@@ -15470,7 +15515,7 @@ export default {1],"workspaceId": [- 537+ 538],"__typename": [1@@ -15484,7 +15529,7 @@ export default {213],"id": [- 537+ 538],"isImpersonating": [4@@ -15493,25 +15538,25 @@ export default {1],"objectPermissions": [- 396+ 397],"objectsPermissions": [- 396+ 397],"permissionFlags": [- 420+ 421],"twoFactorAuthenticationMethodSummary": [- 533+ 534],"updatedAt": [213],"user": [- 637+ 638],"userId": [- 537+ 538],"__typename": [1@@ -15519,7 +15564,7 @@ export default {},"ValidateApprovedAccessDomainInput": {"approvedAccessDomainId": [- 537+ 538],"validationToken": [1@@ -15536,7 +15581,7 @@ export default {4],"id": [- 537+ 538],"__typename": [1@@ -15547,7 +15592,7 @@ export default {1],"errorFieldMetadataId": [- 537+ 538],"expression": [1@@ -15556,7 +15601,7 @@ export default {1],"id": [- 537+ 538],"isActive": [4@@ -15568,7 +15613,7 @@ export default {1],"objectMetadataId": [- 537+ 538],"__typename": [1@@ -15599,7 +15644,7 @@ export default {85],"workspaceUrls": [- 691+ 692],"__typename": [1@@ -15629,22 +15674,22 @@ export default {1],"applicationId": [- 537+ 538],"calendarEndFieldMetadataId": [- 537+ 538],"calendarFieldMetadataId": [- 537+ 538],"calendarLayout": [- 650+ 651],"createdAt": [213],"createdByUserWorkspaceId": [- 537+ 538],"deletedAt": [213@@ -15656,7 +15701,7 @@ export default {1],"id": [- 537+ 538],"isActive": [4@@ -15674,25 +15719,25 @@ export default {27],"kanbanAggregateOperationFieldMetadataId": [- 537+ 538],"kanbanColumnWidth": [10],"key": [- 659+ 660],"mainGroupByFieldMetadataId": [- 537+ 538],"name": [1],"objectMetadataId": [- 537+ 538],"openRecordIn": [- 660+ 661],"position": [6@@ -15701,37 +15746,37 @@ export default {4],"type": [- 663+ 664],"universalIdentifier": [- 537+ 538],"updatedAt": [213],"viewFieldGroups": [- 653+ 654],"viewFields": [- 652+ 653],"viewFilterGroups": [- 655+ 656],"viewFilters": [- 654+ 655],"viewGroups": [- 658+ 659],"viewSorts": [- 661+ 662],"visibility": [- 664+ 665],"workspaceId": [- 537+ 538],"__typename": [1@@ -15740,7 +15785,7 @@ export default {"ViewCalendarLayout": {},"ViewConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -15751,7 +15796,7 @@ export default {27],"applicationId": [- 537+ 538],"createdAt": [213@@ -15760,10 +15805,10 @@ export default {213],"fieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"isActive": [4@@ -15784,19 +15829,19 @@ export default {6],"universalIdentifier": [- 537+ 538],"updatedAt": [213],"viewFieldGroupId": [- 537+ 538],"viewId": [- 537+ 538],"workspaceId": [- 537+ 538],"__typename": [1@@ -15810,7 +15855,7 @@ export default {213],"id": [- 537+ 538],"isActive": [4@@ -15831,13 +15876,13 @@ export default {213],"viewFields": [- 652+ 653],"viewId": [- 537+ 538],"workspaceId": [- 537+ 538],"__typename": [1@@ -15851,19 +15896,19 @@ export default {213],"fieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"operand": [- 657+ 658],"positionInViewFilterGroup": [6],"relationTargetFieldMetadataId": [- 537+ 538],"subFieldName": [1@@ -15872,16 +15917,16 @@ export default {213],"value": [- 327+ 328],"viewFilterGroupId": [- 537+ 538],"viewId": [- 537+ 538],"workspaceId": [- 537+ 538],"__typename": [1@@ -15895,13 +15940,13 @@ export default {213],"id": [- 537+ 538],"logicalOperator": [- 656+ 657],"parentViewFilterGroupId": [- 537+ 538],"positionInViewFilterGroup": [6@@ -15910,10 +15955,10 @@ export default {213],"viewId": [- 537+ 538],"workspaceId": [- 537+ 538],"__typename": [1@@ -15932,7 +15977,7 @@ export default {1],"id": [- 537+ 538],"isVisible": [4@@ -15944,10 +15989,10 @@ export default {213],"viewId": [- 537+ 538],"workspaceId": [- 537+ 538],"__typename": [1@@ -15963,13 +16008,13 @@ export default {213],"direction": [- 662+ 663],"fieldMetadataId": [- 537+ 538],"id": [- 537+ 538],"subFieldName": [1@@ -15978,10 +16023,10 @@ export default {213],"viewId": [- 537+ 538],"workspaceId": [- 537+ 538],"__typename": [1@@ -15992,7 +16037,7 @@ export default {"ViewVisibility": {},"Webhook": {"applicationId": [- 537+ 538],"createdAt": [213@@ -16004,13 +16049,13 @@ export default {1],"id": [- 537+ 538],"operations": [1],"role": [- 460+ 461],"secret": [1@@ -16075,43 +16120,43 @@ export default {309],"on_LineChartConfiguration": [- 331+ 332],"on_MessageCampaignBodyConfiguration": [- 355+ 356],"on_MessageCampaignDetailsConfiguration": [- 356+ 357],"on_NotesConfiguration": [- 387+ 388],"on_PieChartConfiguration": [- 421+ 422],"on_RecordTableConfiguration": [- 450+ 451],"on_StandaloneRichTextConfiguration": [- 504+ 505],"on_TasksConfiguration": [- 514+ 515],"on_TimelineConfiguration": [- 518+ 519],"on_ViewConfiguration": [- 651+ 652],"on_WorkflowConfiguration": [- 670+ 671],"on_WorkflowRunConfiguration": [- 671+ 672],"on_WorkflowVersionConfiguration": [- 672+ 673],"__typename": [1@@ -16122,7 +16167,7 @@ export default {"WorkflowActionType": {},"WorkflowConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -16130,7 +16175,7 @@ export default {},"WorkflowRunConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -16138,7 +16183,7 @@ export default {},"WorkflowVersionConfiguration": {"configurationType": [- 667+ 668],"__typename": [1@@ -16146,7 +16191,7 @@ export default {},"Workspace": {"activationStatus": [- 674+ 675],"aiAdditionalInstructions": [1@@ -16167,7 +16212,7 @@ export default {1],"aiModelIdByTier": [- 327+ 328],"allowImpersonation": [4@@ -16197,7 +16242,7 @@ export default {1],"defaultRole": [- 460+ 461],"deletedAt": [213@@ -16221,7 +16266,7 @@ export default {4],"id": [- 537+ 538],"iframeMediaPermissions": [310@@ -16278,7 +16323,7 @@ export default {1],"logoFileId": [- 537+ 538],"metadataVersion": [6@@ -16293,22 +16338,22 @@ export default {213],"viewFields": [- 652+ 653],"viewFilterGroups": [- 655+ 656],"viewFilters": [- 654+ 655],"viewGroups": [- 658+ 659],"viewSorts": [- 661+ 662],"views": [- 649+ 650],"workspaceCustomApplication": [48@@ -16317,13 +16362,13 @@ export default {1],"workspaceDiscoverability": [- 679+ 680],"workspaceMembersCount": [6],"workspaceUrls": [- 691+ 692],"__typename": [1@@ -16347,19 +16392,19 @@ export default {"WorkspaceCompanyEnrichmentOutcome": {},"WorkspaceCompanyEnrichmentResult": {"enrichment": [- 327+ 328],"isBookCallOnboardingStepPending": [4],"outcome": [- 676+ 677],"personEnrichment": [- 327+ 328],"personOutcome": [- 689+ 690],"__typename": [1@@ -16385,10 +16430,10 @@ export default {213],"id": [- 537+ 538],"roleId": [- 537+ 538],"__typename": [1@@ -16413,10 +16458,10 @@ export default {1],"dateFormat": [- 684+ 685],"id": [- 537+ 538],"locale": [1@@ -16425,16 +16470,16 @@ export default {291],"numberFormat": [- 685+ 686],"openRecordIn": [- 406+ 407],"roles": [- 460+ 461],"timeFormat": [- 686+ 687],"timeZone": [1@@ -16446,10 +16491,10 @@ export default {1],"userId": [- 537+ 538],"userWorkspaceId": [- 537+ 538],"__typename": [1@@ -16457,13 +16502,13 @@ export default {},"WorkspaceMemberApplicationVariables": {"userWorkspaceId": [- 537+ 538],"variables": [- 638+ 639],"workspaceMemberId": [- 537+ 538],"__typename": [1@@ -16474,7 +16519,7 @@ export default {"WorkspaceMemberTimeFormatEnum": {},"WorkspaceMigration": {"actions": [- 327+ 328],"applicationUniversalIdentifier": [1@@ -16488,7 +16533,7 @@ export default {1],"id": [- 537+ 538],"__typename": [1@@ -16509,10 +16554,10 @@ export default {},"WorkspaceUrlsAndId": {"id": [- 537+ 538],"workspaceUrls": [- 691+ 692],"__typename": [1diff --git a/packages/twenty-docs/developers/extend/apps/config/application.mdx b/packages/twenty-docs/developers/extend/apps/config/application.mdxindex 51c9a3618cc..fd88320ecdd 100644--- a/packages/twenty-docs/developers/extend/apps/config/application.mdx+++ b/packages/twenty-docs/developers/extend/apps/config/application.mdx@@ -78,6 +78,29 @@ An installed app without the required grant pauses capture and shows an approvalSee [Media capture](/developers/extend/apps/layout/front-components#media-capture) for capture behavior and recording indicators.+## Embedded website media access++Set `requestedIframeMediaPermissions` when a front component or an `IFRAME` page layout widget embeds a website that needs the microphone or camera, such as a phone or video tool. List up to 20 websites, each as an exact HTTPS origin, with microphone and camera access set separately. Origins must be unique, contain no path or wildcard, and request at least one of microphone or camera access.++```ts+import { defineApplication } from 'twenty-sdk/define';++export default defineApplication({+ universalIdentifier: '39783023-bcac-41e3-b0d2-ff1944d8465d',+ displayName: 'Phone',+ description: 'Call your contacts from Twenty',+ requestedIframeMediaPermissions: [+ { origin: 'https://workspace.aircall.io', microphone: true, camera: false },+ ],+});+```++Declared websites appear during installation. Approval requires a workspace member who can manage apps and applies to the whole workspace, for the app's own front components and iframe widgets. Workspace security approvals apply only to widgets created in the workspace. Locally synced development apps receive the websites declared in their manifest. These grants do not replace browser or operating system permissions. Browser headers have a size limit, so if a workspace's websites exceed it, workspace-approved websites come first and the remaining websites do not receive media access.++Updates to published apps preserve existing grants and do not automatically grant additional media access. To approve new requests, a member who can manage apps opens the installed app's **General** tab and selects **Review media access** under **Embedded website media access**. This approval uses a native browser confirmation showing the app, website origins, and requested microphone or camera access. After approving, reload open Twenty tabs to apply the updated permissions.++See [Embedded websites with media access](/developers/extend/apps/layout/front-components#embedded-websites-with-media-access) for the iframe requirements.+## Variable typesBoth `applicationVariables` and `serverVariables` accept an optional `type` (and, for `SELECT` / `MULTI_SELECT`, an `options` list). Supported types: `TEXT` (default), `BOOLEAN`, `NUMBER`, `NUMERIC`, `DATE`, `DATE_TIME`, `SELECT`, `MULTI_SELECT`, `ARRAY`, `RAW_JSON`, `RICH_TEXT`.diff --git a/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx b/packages/twenty-docs/developers/extend/apps/layout/front-components.mdxindex 788624c3ca2..6407f38fda5 100644--- a/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx+++ b/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx@@ -1210,10 +1210,31 @@ An orange dot in the workspace header indicates active capture. Hover over or se`getUserMedia()` and `MediaRecorder` run through sandbox polyfills, so standard recording code and `MediaRecorder.isTypeSupported()` work unchanged after approval. Detailed constraint objects are accepted but not forwarded. The host captures with its defaults for the requested kinds. Different applications can capture concurrently, and stopping an app affects only its own sessions. Each front component supports one pending or active capture at a time. Store a recorded `Blob` with the `uploadFile` host function.+### Embedded websites with media access++To embed a phone or video tool, declare its HTTPS origin in your application's [`requestedIframeMediaPermissions`](/developers/extend/apps/config/application#embedded-website-media-access), with microphone and camera access set separately. Installing the app grants these websites to the workspace. Updates to published apps preserve existing grants and do not automatically grant additional media access. Locally synced development apps automatically receive the websites declared in their manifest. A member who can manage apps can approve new requests from the installed app's **General** tab, under **Embedded website media access** > **Review media access**. This approval uses a native browser confirmation showing the app, website origins, and requested microphone or camera access. Twenty reads the granted websites when a tab loads, so reload open Twenty tabs after installation or approval.++Request the corresponding features on the iframe:++```tsx+<iframe+ title="Aircall phone"+ src="https://workspace.aircall.io?integration=generic"+ allow="microphone"+ width={376}+ height={666}+/>+```++For video, use `allow="microphone; camera"` and declare both for the origin. Twenty only delegates the media your app was granted for that origin. Members must select the embed's **Enable** control and approve a native browser confirmation showing the app, website origin, and requested microphone or camera access before it receives media access. Browser and operating system permissions still apply. `srcDoc` and embeds at Twenty's own origin cannot receive this delegation. App-defined `IFRAME` page layout widgets use their owning app's granted origins and the same confirmation flow.++Enabled embeds appear in the same header indicator as native capture, with **Microphone access enabled** or **Camera access enabled** rather than a claim that recording is active. The indicator stays visible while access is enabled, even if the embed is hidden. **Disable** unloads the iframe and reloads it with media blocked. App capture through `getUserMedia()` continues to report actual capture and retains its own **Stop** control.++Iframe content remains sandboxed. Approved external media embeds retain their own origin after the member enables access, allowing the website to use its session and request browser media permissions. Other front-component iframes retain an opaque sandbox origin.+### Other gaps- **Drag-and-drop payloads.** Drag events fire, but `event.dataTransfer` is `undefined`.- **Node built-ins.** `fs`, `path` and `node:crypto` fail the build, so move that work into a [logic function](/developers/extend/apps/logic/logic-functions). Web Crypto replaces `node:crypto`, and `fetch`, `TextEncoder` and `URL` are available too, see [global scope](#global-scope) — but nothing replaces `fs`: the sandbox has no filesystem.-- **`iframe`** is always re-sandboxed without `allow-same-origin`, so an embed relying on its own session renders logged out. It has no `onLoad` either.<PageBanner illustration="card-page-front-components" />diff --git a/packages/twenty-docs/developers/extend/apps/layout/page-layouts.mdx b/packages/twenty-docs/developers/extend/apps/layout/page-layouts.mdxindex a454b3a9147..eff45305621 100644--- a/packages/twenty-docs/developers/extend/apps/layout/page-layouts.mdx+++ b/packages/twenty-docs/developers/extend/apps/layout/page-layouts.mdx@@ -65,6 +65,7 @@ export default definePageLayout({- Set `layoutMode` explicitly. Omitting it gives you `VERTICAL_LIST` on a `STANDALONE_PAGE` and `GRID` everywhere else, which is rarely what you want on a record page.- Each `widget` inside a tab can render a [front component](/developers/extend/apps/layout/front-components), a relation list, or other built-in widget types.- A `FRONT_COMPONENT` widget can set `headerCommandMenuItemUniversalIdentifiers` to an ordered array of command menu item universal identifiers from the same app. These actions appear as icon buttons in the widget card header and keep their command-level availability and permission checks. Identifiers must be unique and must resolve when the app is installed.+- An `IFRAME` widget can use the microphone or camera for websites approved through its owning app's [`requestedIframeMediaPermissions`](/developers/extend/apps/config/application#embedded-website-media-access). Members select **Enable** and approve a native browser confirmation showing the app, website origin, and requested microphone or camera access before access starts. Workspace security approvals and other apps' grants do not apply to app-defined widgets.- `position` on tabs controls their order. Use higher values (e.g., 50) to place custom tabs after built-in ones.- `twenty app pull` writes page layouts back with their tabs and widgets inline. A widget the export cannot carry yet, such as one showing your app's own front component or one of the deprecated `VIEW` type, is reported by pull instead of written; see [what pull does not write](/developers/extend/apps/operations/sync-and-recovery#pulling-an-installed-app-back-to-source).diff --git a/packages/twenty-docs/user-guide/dashboards/capabilities/widgets.mdx b/packages/twenty-docs/user-guide/dashboards/capabilities/widgets.mdxindex c2429048135..f622ca4699a 100644--- a/packages/twenty-docs/user-guide/dashboards/capabilities/widgets.mdx+++ b/packages/twenty-docs/user-guide/dashboards/capabilities/widgets.mdx@@ -90,11 +90,13 @@ Display single key values prominently.### <span style={{ display: 'inline-flex', alignItems: 'center', gap: '8px' }}><ChartIcon icon="frame" />iFrames</span>Embed external tools and content directly in your dashboard.-For embedded phones or video tools, a member with permission to manage security can configure **Settings → General → Security → Embedded website media access**. Add the website's exact HTTPS origin, such as `https://workspace.aircall.io`, and enable **Microphone**, **Camera**, or both. Paths and wildcards are not accepted. Only approve websites you trust.+For iframe widgets added in the workspace, a member with permission to manage security can configure **Settings → General → Security → Embedded website media access**. Add the website's exact HTTPS origin, such as `https://workspace.aircall.io`, and enable **Microphone**, **Camera**, or both. Paths and wildcards are not accepted. Only approve websites you trust.-Reload open Twenty tabs after changing these permissions. Reloading ends active calls and recordings. Each member then selects **Enable microphone**, **Enable camera**, or **Enable microphone and camera** on the embed and approves the browser permission when prompted.+Media embeds supplied by an installed app use a separate approval: the app declares the website in [`requestedIframeMediaPermissions`](/developers/extend/apps/config/application#embedded-website-media-access), and a member who can manage apps approves it during installation. These grants apply to the app's own front components and iframe widgets. Workspace security approvals and other apps' grants do not apply to app-defined widgets.-The header indicator shows **Media access enabled** while an embed has access, including when it is hidden. This does not mean the website is currently recording: Twenty cannot inspect microphone or camera activity inside another website. Select the indicator and choose **Disable** to unload the embed and reload it with media access blocked. Enabling access again requires another click.+Reload open Twenty tabs after changing these permissions. Reloading ends active calls and recordings. Every time a member selects **Enable microphone**, **Enable camera**, or **Enable microphone and camera** on an embed, a native browser confirmation shows the widget or owning app, website origin, and requested microphone or camera access. After confirming, approve the browser's media permission when prompted. This confirmation applies to both workspace widgets and app-provided embeds.++The header indicator shows **Media access enabled** while an embed has access, including when it is hidden. This does not mean the website is currently recording: Twenty cannot inspect microphone or camera activity inside another website. Select the indicator and choose **Disable** to unload the embed and reload it with media access blocked. Select **Enable** again to restore access.<Frame><img src="/images/user-guide/dashboard/dashboard-widget-table.png" alt="Table chart"/>diff --git a/packages/twenty-front-component-renderer/src/constants/FrontComponentHostUiClassName.ts b/packages/twenty-front-component-renderer/src/constants/FrontComponentHostUiClassName.tsnew file mode 100644index 00000000000..e79c0648038--- /dev/null+++ b/packages/twenty-front-component-renderer/src/constants/FrontComponentHostUiClassName.ts@@ -0,0 +1 @@+export const FRONT_COMPONENT_HOST_UI_CLASS_NAME = 'front-component-host-ui';diff --git a/packages/twenty-front-component-renderer/src/constants/HostSanitizedPropNames.ts b/packages/twenty-front-component-renderer/src/constants/HostSanitizedPropNames.tsindex 4931b724ee2..74b640e73d2 100644--- a/packages/twenty-front-component-renderer/src/constants/HostSanitizedPropNames.ts+++ b/packages/twenty-front-component-renderer/src/constants/HostSanitizedPropNames.ts@@ -1,4 +1,6 @@export const HOST_SANITIZED_PROP_NAMES: ReadonlySet<string> = new Set([+ 'allow','sandbox',+ 'src','style',]);diff --git a/packages/twenty-front-component-renderer/src/host/components/HostIframeElement.tsx b/packages/twenty-front-component-renderer/src/host/components/HostIframeElement.tsxnew file mode 100644index 00000000000..d228a23c1a8--- /dev/null+++ b/packages/twenty-front-component-renderer/src/host/components/HostIframeElement.tsx@@ -0,0 +1,75 @@+import { type ReactNode, useContext, useState } from 'react';+import {+ getIframeMediaAllow,+ isDefined,+ isNonEmptyArray,+} from 'twenty-shared/utils';++import { FrontComponentIframeHostContext } from '@/host/elements/contexts/FrontComponentIframeHostContext';+import { useComposedElementRef } from '@/host/elements/hooks/useComposedElementRef';+import { useHtmlHostElementProps } from '@/host/elements/hooks/useHtmlHostElementProps';+import { createPlainHostElement } from '@/host/elements/utils/createPlainHostElement';+import { getIframeHostReactProps } from '@/host/elements/utils/getIframeHostReactProps';+import { getRequestedIframeMediaCapabilities } from '@/host/elements/utils/getRequestedIframeMediaCapabilities';++type HostIframeElementProps = {+ children?: ReactNode;+} & Record<string, unknown>;++export const HostIframeElement = ({+ children,+ ...props+}: HostIframeElementProps) => {+ const IframeHost = useContext(FrontComponentIframeHostContext);+ const { reactBindableProps, hostEnforcedProps, composedElementRef } =+ useHtmlHostElementProps({ props, htmlTag: 'iframe' });+ const [iframeElement, setIframeElement] = useState<Element | null>(null);+ const managedIframeElementRef = useComposedElementRef([+ composedElementRef,+ setIframeElement,+ ]);+ const iframeProps = getIframeHostReactProps({+ ...reactBindableProps,+ ...hostEnforcedProps,+ });++ if (+ isDefined(IframeHost) &&+ isNonEmptyArray(getRequestedIframeMediaCapabilities(iframeProps.allow))+ ) {+ return (+ <IframeHost+ iframeProps={iframeProps}+ iframeElement={iframeElement}+ renderIframe={({ allow, sandbox }) =>+ createPlainHostElement({+ htmlTag: 'iframe',+ isVoid: false,+ reactBindableProps,+ hostEnforcedProps: {+ ...hostEnforcedProps,+ src: iframeProps.src,+ srcDoc: iframeProps.srcDoc,+ allow,+ sandbox,+ },+ composedElementRef: managedIframeElementRef,+ children,+ })+ }+ />+ );+ }++ return createPlainHostElement({+ htmlTag: 'iframe',+ isVoid: false,+ reactBindableProps,+ hostEnforcedProps: {+ ...hostEnforcedProps,+ allow: getIframeMediaAllow({ allow: iframeProps.allow }),+ },+ composedElementRef,+ children,+ });+};diff --git a/packages/twenty-front-component-renderer/src/host/components/__tests__/HostIframeElement.test.tsx b/packages/twenty-front-component-renderer/src/host/components/__tests__/HostIframeElement.test.tsxnew file mode 100644index 00000000000..3b26f32c34f--- /dev/null+++ b/packages/twenty-front-component-renderer/src/host/components/__tests__/HostIframeElement.test.tsx@@ -0,0 +1,199 @@+import '@/testing/setupServerRenderingGlobals';++import { HostIframeElement } from '@/host/components/HostIframeElement';+import { FrontComponentIframeHostContext } from '@/host/elements/contexts/FrontComponentIframeHostContext';+import { type FrontComponentIframeHostProps } from '@/host/elements/types/FrontComponentIframeHostProps';+import { act } from 'react';+import { createRoot } from 'react-dom/client';+import { renderToStaticMarkup } from 'react-dom/server';++Object.assign(globalThis, { IS_REACT_ACT_ENVIRONMENT: true });++const findIframe = (markup: string) =>+ new DOMParser().parseFromString(markup, 'text/html').querySelector('iframe');++describe('HostIframeElement', () => {+ it('denies media and keeps sandbox restrictions without a trusted host', () => {+ const markup = renderToStaticMarkup(+ <HostIframeElement+ src="https://phone.example.com"+ allow="autoplay; microphone *; camera *"+ sandbox="allow-scripts allow-same-origin"+ width="400"+ height="300"+ />,+ );+ const iframe = findIframe(markup);++ expect(iframe?.getAttribute('allow')).toBe(+ "microphone 'none'; camera 'none'; autoplay",+ );+ expect(iframe?.getAttribute('sandbox')).toBe('allow-scripts');+ expect(iframe?.getAttribute('width')).toBe('400');+ expect(iframe?.getAttribute('height')).toBe('300');+ });++ it('normalizes differently cased sensitive props before invoking the trusted host', () => {+ const TrustedIframeHost = jest.fn(+ (_props: FrontComponentIframeHostProps) => <div>Managed iframe</div>,+ );++ renderToStaticMarkup(+ <FrontComponentIframeHostContext.Provider value={TrustedIframeHost}>+ <HostIframeElement+ SRC="https://phone.example.com"+ SRCDOC="<p>Sandboxed HTML</p>"+ ALLOW="microphone *"+ SANDBOX="allow-scripts allow-same-origin"+ STYLE="width: 400px; height: 300px"+ />+ </FrontComponentIframeHostContext.Provider>,+ );++ expect(TrustedIframeHost.mock.calls[0]?.[0].iframeProps).toEqual(+ expect.objectContaining({+ src: 'https://phone.example.com',+ srcDoc: '<p>Sandboxed HTML</p>',+ allow: 'microphone *',+ sandbox: 'allow-scripts',+ }),+ );+ expect(TrustedIframeHost.mock.calls[0]?.[0].iframeProps).not.toHaveProperty(+ 'ALLOW',+ );+ expect(TrustedIframeHost.mock.calls[0]?.[0].iframeProps).not.toHaveProperty(+ 'SRCDOC',+ );+ });++ it('keeps ordinary embeds on the native path and explicitly denies media', () => {+ const TrustedIframeHost = jest.fn(+ (_props: FrontComponentIframeHostProps) => <div>Managed iframe</div>,+ );+ const markup = renderToStaticMarkup(+ <FrontComponentIframeHostContext.Provider value={TrustedIframeHost}>+ <HostIframeElement+ src="https://example.com"+ allow="camera 'none'; autoplay"+ data-embed-kind="document"+ className="document-frame"+ >+ Document unavailable+ </HostIframeElement>+ </FrontComponentIframeHostContext.Provider>,+ );+ const iframe = findIframe(markup);++ expect(TrustedIframeHost).not.toHaveBeenCalled();+ expect(iframe?.getAttribute('allow')).toBe(+ "microphone 'none'; camera 'none'; autoplay",+ );+ expect(iframe?.getAttribute('data-embed-kind')).toBe('document');+ expect(iframe?.className).toBe('document-frame');+ expect(iframe?.textContent).toBe('Document unavailable');+ });++ it('preserves native iframe attributes, styles and handlers while enforcing managed media options', () => {+ const onKeyDown = jest.fn();+ const TrustedIframeHost = jest.fn(+ ({ renderIframe }: FrontComponentIframeHostProps) =>+ renderIframe({+ allow: "microphone 'none'; camera 'none'",+ sandbox: 'allow-scripts',+ }),+ );+ const markup = renderToStaticMarkup(+ <FrontComponentIframeHostContext.Provider value={TrustedIframeHost}>+ <HostIframeElement+ src="https://phone.example.com"+ allow="microphone *"+ sandbox="allow-scripts allow-same-origin"+ className="phone-frame"+ style="width: 376px; height: 666px"+ aria-label="Phone"+ aria-describedby="phone-description"+ data-embed-kind="phone"+ hidden+ onKeyDown={onKeyDown}+ >+ Phone unavailable+ </HostIframeElement>+ </FrontComponentIframeHostContext.Provider>,+ );+ const iframe = findIframe(markup);++ expect(iframe?.getAttribute('aria-label')).toBe('Phone');+ expect(iframe?.getAttribute('aria-describedby')).toBe('phone-description');+ expect(iframe?.getAttribute('data-embed-kind')).toBe('phone');+ expect(iframe?.className).toBe('phone-frame');+ expect(iframe?.style.width).toBe('376px');+ expect(iframe?.style.height).toBe('666px');+ expect(iframe?.hasAttribute('hidden')).toBe(true);+ expect(iframe?.getAttribute('allow')).toBe(+ "microphone 'none'; camera 'none'",+ );+ expect(iframe?.getAttribute('sandbox')).toBe('allow-scripts');+ expect(iframe?.textContent).toBe('Phone unavailable');+ expect(TrustedIframeHost.mock.results[0]?.value).toEqual(+ expect.objectContaining({+ props: expect.objectContaining({ onKeyDown: expect.any(Function) }),+ }),+ );+ });++ it('renders the validated source values used by the managed permission check', () => {+ const TrustedIframeHost = jest.fn(+ ({ renderIframe }: FrontComponentIframeHostProps) =>+ renderIframe({+ allow: 'microphone https://phone.example.com',+ sandbox: 'allow-scripts allow-same-origin',+ }),+ );+ const markup = renderToStaticMarkup(+ <FrontComponentIframeHostContext.Provider value={TrustedIframeHost}>+ <HostIframeElement+ src="https://phone.example.com"+ srcDoc={['<script>parent.document.title = "Injected"</script>']}+ allow="microphone"+ />+ </FrontComponentIframeHostContext.Provider>,+ );+ const iframe = findIframe(markup);++ expect(+ TrustedIframeHost.mock.calls[0]?.[0].iframeProps.srcDoc,+ ).toBeUndefined();+ expect(iframe?.getAttribute('src')).toBe('https://phone.example.com');+ expect(iframe?.hasAttribute('srcdoc')).toBe(false);+ });++ it('gives the trusted host the mounted iframe element', () => {+ const container = document.createElement('div');+ const root = createRoot(container);+ const TrustedIframeHost = jest.fn(+ ({ renderIframe }: FrontComponentIframeHostProps) =>+ renderIframe({ allow: "microphone 'none'", sandbox: 'allow-scripts' }),+ );++ document.body.append(container);+ act(() => {+ root.render(+ <FrontComponentIframeHostContext.Provider value={TrustedIframeHost}>+ <HostIframeElement+ src="https://phone.example.com"+ allow="microphone"+ />+ </FrontComponentIframeHostContext.Provider>,+ );+ });++ expect(TrustedIframeHost.mock.lastCall?.[0].iframeElement).toBe(+ container.querySelector('iframe'),+ );++ act(() => {+ root.unmount();+ });+ container.remove();+ });+});diff --git a/packages/twenty-front-component-renderer/src/host/elements/contexts/FrontComponentIframeHostContext.ts b/packages/twenty-front-component-renderer/src/host/elements/contexts/FrontComponentIframeHostContext.tsnew file mode 100644index 00000000000..7f8014e3735--- /dev/null+++ b/packages/twenty-front-component-renderer/src/host/elements/contexts/FrontComponentIframeHostContext.ts@@ -0,0 +1,6 @@+import { createContext, type ComponentType } from 'react';++import { type FrontComponentIframeHostProps } from '@/host/elements/types/FrontComponentIframeHostProps';++export const FrontComponentIframeHostContext =+ createContext<ComponentType<FrontComponentIframeHostProps> | null>(null);diff --git a/packages/twenty-front-component-renderer/src/host/elements/types/FrontComponentIframeHostProps.ts b/packages/twenty-front-component-renderer/src/host/elements/types/FrontComponentIframeHostProps.tsnew file mode 100644index 00000000000..60f8b8d350a--- /dev/null+++ b/packages/twenty-front-component-renderer/src/host/elements/types/FrontComponentIframeHostProps.ts@@ -0,0 +1,14 @@+import { type IframeHTMLAttributes, type ReactNode } from 'react';++type FrontComponentIframeHostAttributes = Pick<+ IframeHTMLAttributes<HTMLIFrameElement>,+ 'src' | 'srcDoc' | 'hidden' | 'sandbox' | 'allow'+>;++export type FrontComponentIframeHostProps = {+ iframeProps: FrontComponentIframeHostAttributes;+ iframeElement: Element | null;+ renderIframe: (+ options: Pick<FrontComponentIframeHostAttributes, 'allow' | 'sandbox'>,+ ) => ReactNode;+};diff --git a/packages/twenty-front-component-renderer/src/host/elements/utils/__tests__/getIframeHostReactProps.test.ts b/packages/twenty-front-component-renderer/src/host/elements/utils/__tests__/getIframeHostReactProps.test.tsnew file mode 100644index 00000000000..b432da72742--- /dev/null+++ b/packages/twenty-front-component-renderer/src/host/elements/utils/__tests__/getIframeHostReactProps.test.ts@@ -0,0 +1,41 @@+import { getIframeHostReactProps } from '@/host/elements/utils/getIframeHostReactProps';++describe('getIframeHostReactProps', () => {+ it('keeps the iframe source, visibility and media options', () => {+ expect(+ getIframeHostReactProps({+ src: 'https://phone.example.com',+ srcDoc: '<p>Sandboxed content</p>',+ hidden: true,+ sandbox: 'allow-scripts',+ allow: 'microphone',+ }),+ ).toEqual({+ src: 'https://phone.example.com',+ srcDoc: '<p>Sandboxed content</p>',+ hidden: true,+ sandbox: 'allow-scripts',+ allow: 'microphone',+ });+ });++ it('drops malformed wire values and properties outside the iframe contract', () => {+ const props = getIframeHostReactProps({+ src: {},+ srcDoc: 42,+ allow: true,+ sandbox: ['allow-same-origin'],+ hidden: 'true',+ style: { width: 400 },+ iframeMediaPermissions: [{ origin: 'https://phone.example.com' }],+ });++ expect(props).toEqual({+ src: undefined,+ srcDoc: undefined,+ allow: undefined,+ sandbox: undefined,+ hidden: undefined,+ });+ });+});diff --git a/packages/twenty-front-component-renderer/src/host/elements/utils/__tests__/getRequestedIframeMediaCapabilities.test.ts b/packages/twenty-front-component-renderer/src/host/elements/utils/__tests__/getRequestedIframeMediaCapabilities.test.tsnew file mode 100644index 00000000000..3e378d393be--- /dev/null+++ b/packages/twenty-front-component-renderer/src/host/elements/utils/__tests__/getRequestedIframeMediaCapabilities.test.ts@@ -0,0 +1,38 @@+import { getRequestedIframeMediaCapabilities } from '../getRequestedIframeMediaCapabilities';++describe('getRequestedIframeMediaCapabilities', () => {+ it('recognizes media feature directives independently of other features', () => {+ expect(+ getRequestedIframeMediaCapabilities(+ "autoplay; microphone 'src'; camera https://camera.example.com; fullscreen",+ ),+ ).toEqual(['microphone', 'camera']);+ });++ it('normalizes casing and whitespace before finding a media request', () => {+ expect(+ getRequestedIframeMediaCapabilities(' ; MICROPHONE\t* ; Camera ; '),+ ).toEqual(['microphone', 'camera']);+ });++ it('uses the first directive for each feature', () => {+ expect(+ getRequestedIframeMediaCapabilities(+ "microphone 'none'; microphone *; camera; camera 'none'",+ ),+ ).toEqual(['camera']);+ });++ it('does not treat disabled capabilities as requests', () => {+ expect(+ getRequestedIframeMediaCapabilities("microphone 'none'; camera 'none'"),+ ).toEqual([]);+ });++ it.each([undefined, '', 'microphone-extra *; speaker-selection'])(+ 'finds no media request in the allow value %p',+ (allow) => {+ expect(getRequestedIframeMediaCapabilities(allow)).toEqual([]);+ },+ );+});diff --git a/packages/twenty-front-component-renderer/src/host/elements/utils/__tests__/normalizeHostSanitizedPropName.test.ts b/packages/twenty-front-component-renderer/src/host/elements/utils/__tests__/normalizeHostSanitizedPropName.test.tsindex eaea23cd5d9..425a210f5e3 100644--- a/packages/twenty-front-component-renderer/src/host/elements/utils/__tests__/normalizeHostSanitizedPropName.test.ts+++ b/packages/twenty-front-component-renderer/src/host/elements/utils/__tests__/normalizeHostSanitizedPropName.test.ts@@ -5,6 +5,9 @@ describe('normalizeHostSanitizedPropName', () => {expect(normalizeHostSanitizedPropName('SANDBOX')).toBe('sandbox');expect(normalizeHostSanitizedPropName('Sandbox')).toBe('sandbox');expect(normalizeHostSanitizedPropName('STYLE')).toBe('style');+ expect(normalizeHostSanitizedPropName('ALLOW')).toBe('allow');+ expect(normalizeHostSanitizedPropName('SRC')).toBe('src');+ expect(normalizeHostSanitizedPropName('SRCDOC')).toBe('srcDoc');});it('should keep a host-sanitized prop name already in canonical casing', () => {diff --git a/packages/twenty-front-component-renderer/src/host/elements/utils/createHtmlHostWrapper.ts b/packages/twenty-front-component-renderer/src/host/elements/utils/createHtmlHostWrapper.tsindex 439a6d81ee3..dbef0fb2906 100644--- a/packages/twenty-front-component-renderer/src/host/elements/utils/createHtmlHostWrapper.ts+++ b/packages/twenty-front-component-renderer/src/host/elements/utils/createHtmlHostWrapper.ts@@ -5,6 +5,7 @@ import { ACKNOWLEDGED_NATIVE_EDIT_SEQUENCE_BRIDGE_PROPERTY } from '@/constants/Aimport { INPUT_SELECTION_BRIDGE_PROPERTIES } from '@/constants/InputSelectionBridgeProperties';import { useCaretPreservingElementRef } from '@/host/caret/hooks/useCaretPreservingElementRef';import { HostImageElement } from '@/host/components/HostImageElement';+import { HostIframeElement } from '@/host/components/HostIframeElement';import { useHtmlHostElementProps } from '@/host/elements/hooks/useHtmlHostElementProps';import { createCaretPreservingElement } from '@/host/caret/utils/createCaretPreservingElement';import { createPlainHostElement } from '@/host/elements/utils/createPlainHostElement';@@ -32,6 +33,10 @@ const CARET_PRESERVING_TAGS = new Set(['input', 'textarea']);type WrapperProps = { children?: React.ReactNode } & Record<string, unknown>;export const createHtmlHostWrapper = (htmlTag: string) => {+ if (htmlTag === 'iframe') {+ return HostIframeElement;+ }+if (htmlTag === 'img') {return HostImageElement;}diff --git a/packages/twenty-front-component-renderer/src/host/elements/utils/getIframeHostReactProps.ts b/packages/twenty-front-component-renderer/src/host/elements/utils/getIframeHostReactProps.tsnew file mode 100644index 00000000000..75c0057091b--- /dev/null+++ b/packages/twenty-front-component-renderer/src/host/elements/utils/getIframeHostReactProps.ts@@ -0,0 +1,15 @@+import { isBoolean, isString } from '@sniptt/guards';++import { type FrontComponentIframeHostProps } from '@/host/elements/types/FrontComponentIframeHostProps';++const getString = (value: unknown) => (isString(value) ? value : undefined);++export const getIframeHostReactProps = (+ props: Record<string, unknown>,+): FrontComponentIframeHostProps['iframeProps'] => ({+ src: getString(props.src),+ srcDoc: getString(props.srcDoc),+ hidden: isBoolean(props.hidden) ? props.hidden : undefined,+ sandbox: getString(props.sandbox),+ allow: getString(props.allow),+});diff --git a/packages/twenty-front-component-renderer/src/host/elements/utils/getRequestedIframeMediaCapabilities.ts b/packages/twenty-front-component-renderer/src/host/elements/utils/getRequestedIframeMediaCapabilities.tsnew file mode 100644index 00000000000..7285ca8d7a5--- /dev/null+++ b/packages/twenty-front-component-renderer/src/host/elements/utils/getRequestedIframeMediaCapabilities.ts@@ -0,0 +1,17 @@+import { isNonEmptyString } from '@sniptt/guards';+import { MEDIA_CAPABILITIES } from 'twenty-shared/constants';+import { isDefined } from 'twenty-shared/utils';++export const getRequestedIframeMediaCapabilities = (allow?: string) => {+ const directives = (allow ?? '')+ .split(';')+ .map((directive) =>+ directive.trim().toLowerCase().split(/\s+/).filter(isNonEmptyString),+ );++ return MEDIA_CAPABILITIES.filter((capability) => {+ const directive = directives.find(([feature]) => feature === capability);++ return isDefined(directive) && !directive.includes("'none'");+ });+};diff --git a/packages/twenty-front-component-renderer/src/host/elements/utils/normalizeHostSanitizedPropName.ts b/packages/twenty-front-component-renderer/src/host/elements/utils/normalizeHostSanitizedPropName.tsindex 46016fbaf00..82419729cc3 100644--- a/packages/twenty-front-component-renderer/src/host/elements/utils/normalizeHostSanitizedPropName.ts+++ b/packages/twenty-front-component-renderer/src/host/elements/utils/normalizeHostSanitizedPropName.ts@@ -3,6 +3,10 @@ import { HOST_SANITIZED_PROP_NAMES } from '@/constants/HostSanitizedPropNames';export const normalizeHostSanitizedPropName = (propName: string): string => {const lowercasedPropName = propName.toLowerCase();+ if (lowercasedPropName === 'srcdoc') {+ return 'srcDoc';+ }+return HOST_SANITIZED_PROP_NAMES.has(lowercasedPropName)? lowercasedPropName: propName;diff --git a/packages/twenty-front-component-renderer/src/host/events/utils/__tests__/createHostOutsidePressController.test.ts b/packages/twenty-front-component-renderer/src/host/events/utils/__tests__/createHostOutsidePressController.test.tsindex 5443daf22f2..9844e8b6cc2 100644--- a/packages/twenty-front-component-renderer/src/host/events/utils/__tests__/createHostOutsidePressController.test.ts+++ b/packages/twenty-front-component-renderer/src/host/events/utils/__tests__/createHostOutsidePressController.test.ts@@ -1,3 +1,4 @@+import { FRONT_COMPONENT_HOST_UI_CLASS_NAME } from '@/constants/FrontComponentHostUiClassName';import { createHostOutsidePressController } from '@/host/events/utils/createHostOutsidePressController';import { wrapEventHandler } from '@/host/events/utils/wrapEventHandler';import { createGeometryTracker } from '@/host/geometry/utils/createGeometryTracker';@@ -166,4 +167,43 @@ describe('createHostOutsidePressController', () => {controller.reset();}});++ it('does not forward host UI presses through an owned ancestor', () => {+ const {+ ownedButton,+ pointerCaptureController,+ controller,+ pressEventTransport,+ } = createOutsidePressControllerFixture();+ const remoteListener = jest.fn();+ const hostUi = document.createElement('span');+ const hostUiLabel = document.createElement('span');++ hostUi.className = FRONT_COMPONENT_HOST_UI_CLASS_NAME;+ hostUi.append(hostUiLabel);+ ownedButton.append(hostUi);++ const hostEvent = {+ type: 'click',+ bubbles: true,+ target: hostUiLabel,+ nativeEvent: { target: hostUiLabel },+ };++ try {+ controller.setPressEventTransport(pressEventTransport);+ controller.observeOutsidePresses();+ controller.forwardUnhandledOwnedPress(hostEvent);+ wrapEventHandler({ remoteListener })(hostEvent);+ controller.forwardUnhandledOwnedPress(hostEvent);++ expect(remoteListener).not.toHaveBeenCalled();+ expect(pressEventTransport.pushOwnedPressEvent).not.toHaveBeenCalled();+ expect(+ pointerCaptureController.claimPointerEventForwarding,+ ).not.toHaveBeenCalled();+ } finally {+ controller.reset();+ }+ });});diff --git a/packages/twenty-front-component-renderer/src/host/events/utils/__tests__/trackHostOutsidePress.test.ts b/packages/twenty-front-component-renderer/src/host/events/utils/__tests__/trackHostOutsidePress.test.tsindex 9b79cd876bb..cd550aef67b 100644--- a/packages/twenty-front-component-renderer/src/host/events/utils/__tests__/trackHostOutsidePress.test.ts+++ b/packages/twenty-front-component-renderer/src/host/events/utils/__tests__/trackHostOutsidePress.test.ts@@ -1,3 +1,4 @@+import { FRONT_COMPONENT_HOST_UI_CLASS_NAME } from '@/constants/FrontComponentHostUiClassName';import { OUTSIDE_PRESS_EVENT_TYPES } from '@/constants/OutsidePressEventTypes';import { trackHostOutsidePress } from '@/host/events/utils/trackHostOutsidePress';import { createGeometryTracker } from '@/host/geometry/utils/createGeometryTracker';@@ -113,6 +114,27 @@ describe('trackHostOutsidePress', () => {}});+ it('does not forward presses inside host UI outside owned geometry', () => {+ const hostUi = document.createElement('div');+ const hostUiButton = document.createElement('button');++ hostUi.className = FRONT_COMPONENT_HOST_UI_CLASS_NAME;+ hostUi.append(hostUiButton);+ document.body.append(hostUi);++ const { pushOutsidePressEvent, dispose } = createOutsidePressTracker();++ try {+ for (const eventType of OUTSIDE_PRESS_EVENT_TYPES) {+ hostUiButton.dispatchEvent(createPress(eventType));+ }++ expect(pushOutsidePressEvent).not.toHaveBeenCalled();+ } finally {+ dispose();+ }+ });+it('forwards the press sequence during capture without forwarding unrelated events', () => {const outsideButton = document.createElement('button');document.body.append(outsideButton);diff --git a/packages/twenty-front-component-renderer/src/host/events/utils/__tests__/wrapEventHandler.test.ts b/packages/twenty-front-component-renderer/src/host/events/utils/__tests__/wrapEventHandler.test.tsindex 8d6947eba77..3efdcce5017 100644--- a/packages/twenty-front-component-renderer/src/host/events/utils/__tests__/wrapEventHandler.test.ts+++ b/packages/twenty-front-component-renderer/src/host/events/utils/__tests__/wrapEventHandler.test.ts@@ -1,3 +1,5 @@+import { FRONT_COMPONENT_HOST_UI_CLASS_NAME } from '@/constants/FrontComponentHostUiClassName';+import { wrapEventHandler } from '../wrapEventHandler';const createNestedWrappedHandlers = () => {@@ -153,6 +155,38 @@ describe('wrapEventHandler', () => {});});+ it('should not forward events whose target is inside host-owned UI', () => {+ const remoteListener = jest.fn();+ const hostUi = document.createElement('div');+ const hostUiButton = document.createElement('button');++ hostUi.className = FRONT_COMPONENT_HOST_UI_CLASS_NAME;+ hostUi.append(hostUiButton);++ wrapEventHandler({ remoteListener })({+ type: 'click',+ bubbles: true,+ target: hostUiButton,+ });++ expect(remoteListener).not.toHaveBeenCalled();+ });++ it('should forward events whose target is a guest element', () => {+ const remoteListener = jest.fn();+ const guestButton = document.createElement('button');++ wrapEventHandler({ remoteListener })({+ type: 'click',+ bubbles: true,+ target: guestButton,+ });++ expect(remoteListener).toHaveBeenCalledWith(+ expect.objectContaining({ type: 'click', bubbles: true }),+ );+ });+it('should forward the remote ids of the host target and related target', () => {const remoteListener = jest.fn();const target = {};diff --git a/packages/twenty-front-component-renderer/src/host/events/utils/createHostOutsidePressController.ts b/packages/twenty-front-component-renderer/src/host/events/utils/createHostOutsidePressController.tsindex fc6b2980b87..23e637ed7d5 100644--- a/packages/twenty-front-component-renderer/src/host/events/utils/createHostOutsidePressController.ts+++ b/packages/twenty-front-component-renderer/src/host/events/utils/createHostOutsidePressController.ts@@ -6,6 +6,7 @@ import { type HostOutsidePressController } from '@/host/events/types/HostOutsideimport { type HostPointerCaptureController } from '@/host/events/types/HostPointerCaptureController';import { type PressEventTransport } from '@/host/events/types/PressEventTransport';import { applyEventDispatchProperties } from '@/host/events/utils/applyEventDispatchProperties';+import { isHostUiEvent } from '@/host/events/utils/isHostUiEvent';import { resolveNativeHostEvent } from '@/host/events/utils/resolveNativeHostEvent';import { serializeEvent } from '@/host/events/utils/serializeEvent';import { trackHostOutsidePress } from '@/host/events/utils/trackHostOutsidePress';@@ -53,6 +54,7 @@ export const createHostOutsidePressController = ({!isObservedByWorker ||!isDefined(pressEventTransport) ||forwardedBubblingHostEvents.has(hostEvent) ||+ isHostUiEvent(resolveNativeHostEvent(hostEvent)) ||!isDefined(geometryTracker.findRemoteElementIdContainingNode(hostEvent.target),) ||diff --git a/packages/twenty-front-component-renderer/src/host/events/utils/isHostUiEvent.ts b/packages/twenty-front-component-renderer/src/host/events/utils/isHostUiEvent.tsnew file mode 100644index 00000000000..5af27621dbf--- /dev/null+++ b/packages/twenty-front-component-renderer/src/host/events/utils/isHostUiEvent.ts@@ -0,0 +1,10 @@+import { isDefined } from 'twenty-shared/utils';++import { FRONT_COMPONENT_HOST_UI_CLASS_NAME } from '@/constants/FrontComponentHostUiClassName';++export const isHostUiEvent = (nativeHostEvent: object): boolean =>+ 'target' in nativeHostEvent &&+ nativeHostEvent.target instanceof Element &&+ isDefined(+ nativeHostEvent.target.closest(`.${FRONT_COMPONENT_HOST_UI_CLASS_NAME}`),+ );diff --git a/packages/twenty-front-component-renderer/src/host/events/utils/trackHostOutsidePress.ts b/packages/twenty-front-component-renderer/src/host/events/utils/trackHostOutsidePress.tsindex cf47e7c9a3f..cd55c9489e5 100644--- a/packages/twenty-front-component-renderer/src/host/events/utils/trackHostOutsidePress.ts+++ b/packages/twenty-front-component-renderer/src/host/events/utils/trackHostOutsidePress.ts@@ -4,6 +4,7 @@ import { isDefined } from 'twenty-shared/utils';import { OUTSIDE_PRESS_EVENT_TYPES } from '@/constants/OutsidePressEventTypes';import { type PushOutsidePressEvent } from '@/host/events/types/PushOutsidePressEvent';import { createCapturedGestureEventFilter } from '@/host/events/utils/createCapturedGestureEventFilter';+import { isHostUiEvent } from '@/host/events/utils/isHostUiEvent';import { isPressLessClick } from '@/host/events/utils/isPressLessClick';import { isScrollbarPress } from '@/host/events/utils/isScrollbarPress';import { type FindRemoteElementIdContainingNode } from '@/host/geometry/types/FindRemoteElementIdContainingNode';@@ -25,6 +26,7 @@ export const trackHostOutsidePress = ({const handleOutsidePress = (event: MouseEvent) => {if (!isOutsidePressEventType(event.type) ||+ isHostUiEvent(event) ||isCapturedGestureEvent(event) ||isPressLessClick(event) ||eventdiff --git a/packages/twenty-front-component-renderer/src/host/events/utils/wrapEventHandler.ts b/packages/twenty-front-component-renderer/src/host/events/utils/wrapEventHandler.tsindex 39d81a8678d..4f2ea0e754e 100644--- a/packages/twenty-front-component-renderer/src/host/events/utils/wrapEventHandler.ts+++ b/packages/twenty-front-component-renderer/src/host/events/utils/wrapEventHandler.ts@@ -5,6 +5,7 @@ import { forwardedBubblingHostEvents } from '@/host/events/states/forwardedBubblimport { type ClaimPointerEventForwarding } from '@/host/events/types/ClaimPointerEventForwarding';import { type RemoteSerializedEventListener } from '@/host/events/types/RemoteSerializedEventListener';import { applyEventDispatchProperties } from '@/host/events/utils/applyEventDispatchProperties';+import { isHostUiEvent } from '@/host/events/utils/isHostUiEvent';import { resolveNativeHostEvent } from '@/host/events/utils/resolveNativeHostEvent';import { serializeEvent } from '@/host/events/utils/serializeEvent';import { type FindRemoteElementIdContainingNode } from '@/host/geometry/types/FindRemoteElementIdContainingNode';@@ -28,6 +29,10 @@ export const wrapEventHandler =const nativeHostEvent = resolveNativeHostEvent(hostEvent);+ if (isHostUiEvent(nativeHostEvent)) {+ return;+ }+if (isDefined(claimPointerEventForwarding) &&!claimPointerEventForwarding(nativeHostEvent)diff --git a/packages/twenty-front-component-renderer/src/index.ts b/packages/twenty-front-component-renderer/src/index.tsindex b30e181772c..b4caa3e7000 100644--- a/packages/twenty-front-component-renderer/src/index.ts+++ b/packages/twenty-front-component-renderer/src/index.ts@@ -1,6 +1,10 @@export { fetchComponentSource } from '@/host/component-source/utils/fetchComponentSource';export { FrontComponentSourceRenderer } from '@/host/components/FrontComponentSourceRenderer';export { FrontComponentRenderer } from '@/host/components/FrontComponentRenderer';+export { FRONT_COMPONENT_HOST_UI_CLASS_NAME } from '@/constants/FrontComponentHostUiClassName';+export { FrontComponentIframeHostContext } from '@/host/elements/contexts/FrontComponentIframeHostContext';+export { type FrontComponentIframeHostProps } from '@/host/elements/types/FrontComponentIframeHostProps';+export { getRequestedIframeMediaCapabilities } from '@/host/elements/utils/getRequestedIframeMediaCapabilities';export { FrontComponentInputFocusContext } from '@/host/caret/contexts/FrontComponentInputFocusContext';export { type SetEditableFocused } from '@/host/caret/types/SetEditableFocused';export { componentRegistry } from '@/host/generated/host-component-registry';diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.tsindex 89d9df8a328..c2d0b6848ab 100644--- a/packages/twenty-front/src/generated-metadata/graphql.ts+++ b/packages/twenty-front/src/generated-metadata/graphql.ts@@ -393,7 +393,7 @@ export type FindOneApplicationQueryVariables = Exact<{}>;-export type FindOneApplicationQuery = { findOneApplication: { __typename: 'Application', isUninstallBlockedByOtherWorkspaceInstallations: boolean, id: string, name: string, description: string | null, logoUrl: string | null, version: string | null, universalIdentifier: string, applicationRegistrationId: string | null, canBeUninstalled: boolean, autoUpgrade: boolean, createdAt: string, defaultRoleId: string | null, settingsCustomTabFrontComponentId: string | null, healthCheckLogicFunctionId: string | null, availablePackages: any, applicationRegistration: { __typename: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion: string | null, sourceType: Types.ApplicationRegistrationSourceType, logoUrl: string | null } | null, applicationVariables: Array<{ __typename: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options: any, scope: Types.ApplicationVariableScope }>, agents: Array<{ __typename: 'Agent', id: string, name: string, label: string, description: string | null, icon: string | null, prompt: string, modelId: string, responseFormat: any, roleId: string | null, isSystem: boolean, isActive: boolean, modelConfiguration: any, triggers: Array<any>, applicationId: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename: 'FrontComponent', id: string, name: string, description: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename: 'CommandMenuItem', id: string, label: string, shortLabel: string | null, icon: string | null, isPinned: boolean, availabilityType: Types.CommandMenuItemAvailabilityType, conditionalAvailabilityExpression: string | null, frontComponentId: string | null, universalIdentifier: string | null, applicationId: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems: Array<{ __typename: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon: string | null, position: number, scope: Types.SettingsMenuItemScope, slug: string | null }> | null, objects: Array<{ __typename: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color: string | null, description: string | null, icon: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isAuditLogged: boolean, isUIEditable: boolean, isUICreatable: boolean, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId: string | null, imageIdentifierFieldMetadataId: string | null, applicationId: string, shortcut: string | null, isLabelSyncedWithName: boolean, isSearchable: boolean, openRecordIn: Types.ObjectOpenRecordIn, duplicateCriteria: Array<Array<string>> | null, searchFieldMetadataList: Array<{ __typename: 'SearchField', id: string, fieldMetadataId: string, tsVectorFieldMetadataId: string, position: number, createdAt: string, updatedAt: string }>, indexMetadataList: Array<{ __typename: 'Index', id: string, createdAt: string, updatedAt: string, name: string, indexWhereClause: string | null, indexType: Types.IndexType, isUnique: boolean, applicationId: string, isSystemSideEffect: boolean, indexFieldMetadataList: Array<{ __typename: 'IndexField', id: string, fieldMetadataId: string, subFieldName: string | null, createdAt: string, updatedAt: string, order: number }> }>, fieldsList: Array<{ __typename: 'Field', id: string, universalIdentifier: string, type: Types.FieldMetadataType, name: string, label: string, description: string | null, icon: string | null, isActive: boolean | null, isSystem: boolean | null, isUIEditable: boolean | null, isNullable: boolean | null, isUnique: boolean | null, isSearchable: boolean | null, createdAt: string, updatedAt: string, defaultValue: any, options: any, settings: any, isLabelSyncedWithName: boolean | null, morphId: string | null, applicationId: string, relation: { __typename: 'Relation', type: Types.RelationType, sourceObjectMetadata: { __typename: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename: 'Field', id: string, name: string }, targetFieldMetadata: { __typename: 'Field', id: string, name: string } } | null, morphRelations: Array<{ __typename: 'Relation', type: Types.RelationType, sourceObjectMetadata: { __typename: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename: 'Field', id: string, name: string }, targetFieldMetadata: { __typename: 'Field', id: string, name: string } }> | null }> }>, logicFunctions: Array<{ __typename: 'LogicFunction', id: string, name: string, description: string | null, runtime: string, timeoutSeconds: number, executionMode: Types.LogicFunctionExecutionMode, sourceHandlerPath: string, handlerName: string, cronTriggerSettings: any, databaseEventTriggerSettings: any, httpRouteTriggerSettings: any, toolTriggerSettings: any, workflowActionTriggerSettings: any, applicationId: string | null, universalIdentifier: string | null, createdAt: string, updatedAt: string }> } };+export type FindOneApplicationQuery = { findOneApplication: { __typename: 'Application', isUninstallBlockedByOtherWorkspaceInstallations: boolean, id: string, name: string, description: string | null, logoUrl: string | null, version: string | null, universalIdentifier: string, applicationRegistrationId: string | null, canBeUninstalled: boolean, autoUpgrade: boolean, createdAt: string, defaultRoleId: string | null, settingsCustomTabFrontComponentId: string | null, healthCheckLogicFunctionId: string | null, availablePackages: any, requestedIframeMediaPermissions: Array<{ __typename: 'IframeMediaPermission', origin: string, microphone: boolean, camera: boolean }>, grantedIframeMediaPermissions: Array<{ __typename: 'IframeMediaPermission', origin: string, microphone: boolean, camera: boolean }>, applicationRegistration: { __typename: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion: string | null, sourceType: Types.ApplicationRegistrationSourceType, logoUrl: string | null } | null, applicationVariables: Array<{ __typename: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options: any, scope: Types.ApplicationVariableScope }>, agents: Array<{ __typename: 'Agent', id: string, name: string, label: string, description: string | null, icon: string | null, prompt: string, modelId: string, responseFormat: any, roleId: string | null, isSystem: boolean, isActive: boolean, modelConfiguration: any, triggers: Array<any>, applicationId: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename: 'FrontComponent', id: string, name: string, description: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename: 'CommandMenuItem', id: string, label: string, shortLabel: string | null, icon: string | null, isPinned: boolean, availabilityType: Types.CommandMenuItemAvailabilityType, conditionalAvailabilityExpression: string | null, frontComponentId: string | null, universalIdentifier: string | null, applicationId: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems: Array<{ __typename: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon: string | null, position: number, scope: Types.SettingsMenuItemScope, slug: string | null }> | null, objects: Array<{ __typename: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color: string | null, description: string | null, icon: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isAuditLogged: boolean, isUIEditable: boolean, isUICreatable: boolean, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId: string | null, imageIdentifierFieldMetadataId: string | null, applicationId: string, shortcut: string | null, isLabelSyncedWithName: boolean, isSearchable: boolean, openRecordIn: Types.ObjectOpenRecordIn, duplicateCriteria: Array<Array<string>> | null, searchFieldMetadataList: Array<{ __typename: 'SearchField', id: string, fieldMetadataId: string, tsVectorFieldMetadataId: string, position: number, createdAt: string, updatedAt: string }>, indexMetadataList: Array<{ __typename: 'Index', id: string, createdAt: string, updatedAt: string, name: string, indexWhereClause: string | null, indexType: Types.IndexType, isUnique: boolean, applicationId: string, isSystemSideEffect: boolean, indexFieldMetadataList: Array<{ __typename: 'IndexField', id: string, fieldMetadataId: string, subFieldName: string | null, createdAt: string, updatedAt: string, order: number }> }>, fieldsList: Array<{ __typename: 'Field', id: string, universalIdentifier: string, type: Types.FieldMetadataType, name: string, label: string, description: string | null, icon: string | null, isActive: boolean | null, isSystem: boolean | null, isUIEditable: boolean | null, isNullable: boolean | null, isUnique: boolean | null, isSearchable: boolean | null, createdAt: string, updatedAt: string, defaultValue: any, options: any, settings: any, isLabelSyncedWithName: boolean | null, morphId: string | null, applicationId: string, relation: { __typename: 'Relation', type: Types.RelationType, sourceObjectMetadata: { __typename: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename: 'Field', id: string, name: string }, targetFieldMetadata: { __typename: 'Field', id: string, name: string } } | null, morphRelations: Array<{ __typename: 'Relation', type: Types.RelationType, sourceObjectMetadata: { __typename: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename: 'Field', id: string, name: string }, targetFieldMetadata: { __typename: 'Field', id: string, name: string } }> | null }> }>, logicFunctions: Array<{ __typename: 'LogicFunction', id: string, name: string, description: string | null, runtime: string, timeoutSeconds: number, executionMode: Types.LogicFunctionExecutionMode, sourceHandlerPath: string, handlerName: string, cronTriggerSettings: any, databaseEventTriggerSettings: any, httpRouteTriggerSettings: any, toolTriggerSettings: any, workflowActionTriggerSettings: any, applicationId: string | null, universalIdentifier: string | null, createdAt: string, updatedAt: string }> } };export type FindOneApplicationByUniversalIdentifierQueryVariables = Exact<{universalIdentifier: string;@@ -933,7 +933,7 @@ export type FindOneFrontComponentQueryVariables = Exact<{}>;-export type FindOneFrontComponentQuery = { frontComponent: { __typename: 'FrontComponent', id: string, name: string, applicationId: string, applicationName: string | null, applicationGrantedCapabilities: Array<string> | null, builtComponentChecksum: string, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum: string | null, applicationVariables: any } | null };+export type FindOneFrontComponentQuery = { frontComponent: { __typename: 'FrontComponent', id: string, name: string, applicationId: string, applicationName: string | null, applicationGrantedCapabilities: Array<string> | null, builtComponentChecksum: string, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum: string | null, applicationVariables: any, applicationGrantedIframeMediaPermissions: Array<{ __typename: 'IframeMediaPermission', origin: string, microphone: boolean, camera: boolean }> | null } | null };export type GetApplicationSdkClientChecksumsQueryVariables = Exact<{applicationId: string;@@ -1042,7 +1042,7 @@ export type GetLogicFunctionSourceCodeQueryVariables = Exact<{export type GetLogicFunctionSourceCodeQuery = { getLogicFunctionSourceCode: string | null };-export type MarketplaceAppDetailFieldsFragment = { __typename: 'MarketplaceAppDetail', id: string, universalIdentifier: string, name: string, sourceType: Types.ApplicationRegistrationSourceType, sourcePackage: string | null, latestAvailableVersion: string | null, isListed: boolean, description: string | null, author: string | null, category: string | null, logoUrl: string | null, websiteUrl: string | null, aboutDescription: string | null, pricingDescription: string | null, termsUrl: string | null, emailSupport: string | null, issueReportUrl: string | null, galleryImages: Array<string>, installCount: number, defaultRoleUniversalIdentifier: string | null, requestedCapabilities: Array<string>, billsCredits: boolean, objects: Array<{ __typename: 'MarketplaceAppObject', universalIdentifier: string }> | null, roles: Array<{ __typename: 'MarketplaceAppRole', universalIdentifier: string, label: string, description: string | null, icon: string | null, canUpdateAllSettings: boolean | null, canAccessAllTools: boolean | null, canReadAllObjectRecords: boolean | null, canUpdateAllObjectRecords: boolean | null, canSoftDeleteAllObjectRecords: boolean | null, canDestroyAllObjectRecords: boolean | null, permissionFlagUniversalIdentifiers: Array<string> | null, objectPermissions: Array<{ __typename: 'MarketplaceAppRoleObjectPermission', universalIdentifier: string, objectUniversalIdentifier: string, canReadObjectRecords: boolean | null, canUpdateObjectRecords: boolean | null, canSoftDeleteObjectRecords: boolean | null, canDestroyObjectRecords: boolean | null }> | null, fieldPermissions: Array<{ __typename: 'MarketplaceAppRoleFieldPermission', universalIdentifier: string, objectUniversalIdentifier: string, fieldUniversalIdentifier: string, canReadFieldValue: boolean | null, canUpdateFieldValue: boolean | null }> | null }> | null };+export type MarketplaceAppDetailFieldsFragment = { __typename: 'MarketplaceAppDetail', id: string, universalIdentifier: string, name: string, sourceType: Types.ApplicationRegistrationSourceType, sourcePackage: string | null, latestAvailableVersion: string | null, isListed: boolean, description: string | null, author: string | null, category: string | null, logoUrl: string | null, websiteUrl: string | null, aboutDescription: string | null, pricingDescription: string | null, termsUrl: string | null, emailSupport: string | null, issueReportUrl: string | null, galleryImages: Array<string>, installCount: number, defaultRoleUniversalIdentifier: string | null, requestedCapabilities: Array<string>, billsCredits: boolean, requestedIframeMediaPermissions: Array<{ __typename: 'IframeMediaPermission', origin: string, microphone: boolean, camera: boolean }>, objects: Array<{ __typename: 'MarketplaceAppObject', universalIdentifier: string }> | null, roles: Array<{ __typename: 'MarketplaceAppRole', universalIdentifier: string, label: string, description: string | null, icon: string | null, canUpdateAllSettings: boolean | null, canAccessAllTools: boolean | null, canReadAllObjectRecords: boolean | null, canUpdateAllObjectRecords: boolean | null, canSoftDeleteAllObjectRecords: boolean | null, canDestroyAllObjectRecords: boolean | null, permissionFlagUniversalIdentifiers: Array<string> | null, objectPermissions: Array<{ __typename: 'MarketplaceAppRoleObjectPermission', universalIdentifier: string, objectUniversalIdentifier: string, canReadObjectRecords: boolean | null, canUpdateObjectRecords: boolean | null, canSoftDeleteObjectRecords: boolean | null, canDestroyObjectRecords: boolean | null }> | null, fieldPermissions: Array<{ __typename: 'MarketplaceAppRoleFieldPermission', universalIdentifier: string, objectUniversalIdentifier: string, fieldUniversalIdentifier: string, canReadFieldValue: boolean | null, canUpdateFieldValue: boolean | null }> | null }> | null };export type MarketplaceAppFieldsFragment = { __typename: 'MarketplaceApp', id: string, name: string, description: string, author: string, category: string, logoUrl: string | null, sourcePackage: string | null, isListed: boolean };@@ -1090,7 +1090,7 @@ export type FindMarketplaceAppDetailQueryVariables = Exact<{}>;-export type FindMarketplaceAppDetailQuery = { findMarketplaceAppDetail: { __typename: 'MarketplaceAppDetail', id: string, universalIdentifier: string, name: string, sourceType: Types.ApplicationRegistrationSourceType, sourcePackage: string | null, latestAvailableVersion: string | null, isListed: boolean, description: string | null, author: string | null, category: string | null, logoUrl: string | null, websiteUrl: string | null, aboutDescription: string | null, pricingDescription: string | null, termsUrl: string | null, emailSupport: string | null, issueReportUrl: string | null, galleryImages: Array<string>, installCount: number, defaultRoleUniversalIdentifier: string | null, requestedCapabilities: Array<string>, billsCredits: boolean, objects: Array<{ __typename: 'MarketplaceAppObject', universalIdentifier: string }> | null, roles: Array<{ __typename: 'MarketplaceAppRole', universalIdentifier: string, label: string, description: string | null, icon: string | null, canUpdateAllSettings: boolean | null, canAccessAllTools: boolean | null, canReadAllObjectRecords: boolean | null, canUpdateAllObjectRecords: boolean | null, canSoftDeleteAllObjectRecords: boolean | null, canDestroyAllObjectRecords: boolean | null, permissionFlagUniversalIdentifiers: Array<string> | null, objectPermissions: Array<{ __typename: 'MarketplaceAppRoleObjectPermission', universalIdentifier: string, objectUniversalIdentifier: string, canReadObjectRecords: boolean | null, canUpdateObjectRecords: boolean | null, canSoftDeleteObjectRecords: boolean | null, canDestroyObjectRecords: boolean | null }> | null, fieldPermissions: Array<{ __typename: 'MarketplaceAppRoleFieldPermission', universalIdentifier: string, objectUniversalIdentifier: string, fieldUniversalIdentifier: string, canReadFieldValue: boolean | null, canUpdateFieldValue: boolean | null }> | null }> | null } };+export type FindMarketplaceAppDetailQuery = { findMarketplaceAppDetail: { __typename: 'MarketplaceAppDetail', id: string, universalIdentifier: string, name: string, sourceType: Types.ApplicationRegistrationSourceType, sourcePackage: string | null, latestAvailableVersion: string | null, isListed: boolean, description: string | null, author: string | null, category: string | null, logoUrl: string | null, websiteUrl: string | null, aboutDescription: string | null, pricingDescription: string | null, termsUrl: string | null, emailSupport: string | null, issueReportUrl: string | null, galleryImages: Array<string>, installCount: number, defaultRoleUniversalIdentifier: string | null, requestedCapabilities: Array<string>, billsCredits: boolean, requestedIframeMediaPermissions: Array<{ __typename: 'IframeMediaPermission', origin: string, microphone: boolean, camera: boolean }>, objects: Array<{ __typename: 'MarketplaceAppObject', universalIdentifier: string }> | null, roles: Array<{ __typename: 'MarketplaceAppRole', universalIdentifier: string, label: string, description: string | null, icon: string | null, canUpdateAllSettings: boolean | null, canAccessAllTools: boolean | null, canReadAllObjectRecords: boolean | null, canUpdateAllObjectRecords: boolean | null, canSoftDeleteAllObjectRecords: boolean | null, canDestroyAllObjectRecords: boolean | null, permissionFlagUniversalIdentifiers: Array<string> | null, objectPermissions: Array<{ __typename: 'MarketplaceAppRoleObjectPermission', universalIdentifier: string, objectUniversalIdentifier: string, canReadObjectRecords: boolean | null, canUpdateObjectRecords: boolean | null, canSoftDeleteObjectRecords: boolean | null, canDestroyObjectRecords: boolean | null }> | null, fieldPermissions: Array<{ __typename: 'MarketplaceAppRoleFieldPermission', universalIdentifier: string, objectUniversalIdentifier: string, fieldUniversalIdentifier: string, canReadFieldValue: boolean | null, canUpdateFieldValue: boolean | null }> | null }> | null } };export type FindMarketplaceAppManifestQueryVariables = Exact<{universalIdentifier: string;@@ -1636,6 +1636,13 @@ export type PieChartDataQueryVariables = Exact<{export type PieChartDataQuery = { pieChartData: { __typename: 'PieChartData', showLegend: boolean, showDataLabels: boolean, showCenterMetric: boolean, hasTooManyGroups: boolean, formattedToRawLookup: any, data: Array<{ __typename: 'PieChartDataItem', key: string, value: number }> } };+export type GetIframeWidgetMediaPermissionsQueryVariables = Exact<{+ id: string;+}>;+++export type GetIframeWidgetMediaPermissionsQuery = { getPageLayoutWidget: { __typename: 'PageLayoutWidget', id: string, applicationId: string, applicationName: string | null, applicationGrantedIframeMediaPermissions: Array<{ __typename: 'IframeMediaPermission', origin: string, microphone: boolean, camera: boolean }> | null } };+export type ExportRecordsSubscriptionVariables = Exact<{input: Types.CreateRecordExportInput;}>;@@ -1898,6 +1905,14 @@ export type GithubClaimAuthorizationUrlQuery = { githubClaimAuthorizationUrl: stexport type ApplicationConnectionProviderFragmentFragment = { __typename: 'ApplicationConnectionProvider', id: string, applicationId: string, type: string, name: string, displayName: string, scope: Types.ConnectionProviderScope, logoUrl: string | null, oauth: { __typename: 'ApplicationConnectionProviderOAuthConfig', scopes: Array<string>, isClientCredentialsConfigured: boolean } | null };+export type ApproveApplicationIframeMediaPermissionsMutationVariables = Exact<{+ applicationId: string;+ approvedIframeMediaPermissions: Array<Types.IframeMediaPermissionInput> | Types.IframeMediaPermissionInput;+}>;+++export type ApproveApplicationIframeMediaPermissionsMutation = { approveApplicationIframeMediaPermissions: { __typename: 'Application', id: string, grantedIframeMediaPermissions: Array<{ __typename: 'IframeMediaPermission', origin: string, microphone: boolean, camera: boolean }> } };+export type TriggerUninstallApplicationMutationVariables = Exact<{input: Types.TriggerUninstallApplicationInput;}>;@@ -2925,7 +2940,7 @@ export const PageLayoutWidgetFragmentFragmentDoc = {"kind":"Document","definitioexport const PageLayoutTabFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"tiptap"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutTabFragmentFragment, unknown>;export const PageLayoutFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"tiptap"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<PageLayoutFragmentFragment, unknown>;export const GettingStartedProgressFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GettingStartedProgressFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GettingStartedProgress"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"steps"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"actionKey"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"doneTitle"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"iconColor"}},{"kind":"Field","name":{"kind":"Name","value":"promptLabel"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"completedStepActionKeys"}},{"kind":"Field","name":{"kind":"Name","value":"selectedStepActionKey"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"isHidden"}}]}}]} as unknown as DocumentNode<GettingStartedProgressFieldsFragment, unknown>;-export const MarketplaceAppDetailFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"aboutDescription"}},{"kind":"Field","name":{"kind":"Name","value":"pricingDescription"}},{"kind":"Field","name":{"kind":"Name","value":"termsUrl"}},{"kind":"Field","name":{"kind":"Name","value":"emailSupport"}},{"kind":"Field","name":{"kind":"Name","value":"issueReportUrl"}},{"kind":"Field","name":{"kind":"Name","value":"galleryImages"}},{"kind":"Field","name":{"kind":"Name","value":"installCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"requestedCapabilities"}},{"kind":"Field","name":{"kind":"Name","value":"billsCredits"}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlagUniversalIdentifiers"}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"fieldUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}}]}}]}}]}}]} as unknown as DocumentNode<MarketplaceAppDetailFieldsFragment, unknown>;+export const MarketplaceAppDetailFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"aboutDescription"}},{"kind":"Field","name":{"kind":"Name","value":"pricingDescription"}},{"kind":"Field","name":{"kind":"Name","value":"termsUrl"}},{"kind":"Field","name":{"kind":"Name","value":"emailSupport"}},{"kind":"Field","name":{"kind":"Name","value":"issueReportUrl"}},{"kind":"Field","name":{"kind":"Name","value":"galleryImages"}},{"kind":"Field","name":{"kind":"Name","value":"installCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"requestedCapabilities"}},{"kind":"Field","name":{"kind":"Name","value":"requestedIframeMediaPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"origin"}},{"kind":"Field","name":{"kind":"Name","value":"microphone"}},{"kind":"Field","name":{"kind":"Name","value":"camera"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billsCredits"}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlagUniversalIdentifiers"}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"fieldUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}}]}}]}}]}}]} as unknown as DocumentNode<MarketplaceAppDetailFieldsFragment, unknown>;export const MarketplaceAppFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceApp"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}}]}}]} as unknown as DocumentNode<MarketplaceAppFieldsFragment, unknown>;export const NavigationMenuItemFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"agentChatChannelId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<NavigationMenuItemFieldsFragment, unknown>;export const NavigationMenuItemQueryFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemQueryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NavigationMenuItemFields"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordIdentifier"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifier"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"agentChatChannelId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<NavigationMenuItemQueryFieldsFragment, unknown>;@@ -3017,7 +3032,7 @@ export const OnAgentChatEventDocument = {"kind":"Document","definitions":[{"kindexport const TrackAnalyticsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"TrackAnalytics"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"type"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AnalyticsType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"event"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"properties"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"trackAnalytics"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"type"},"value":{"kind":"Variable","name":{"kind":"Name","value":"type"}}},{"kind":"Argument","name":{"kind":"Name","value":"event"},"value":{"kind":"Variable","name":{"kind":"Name","value":"event"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"properties"},"value":{"kind":"Variable","name":{"kind":"Name","value":"properties"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode<TrackAnalyticsMutation, TrackAnalyticsMutationVariables>;export const RunApplicationHealthCheckDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RunApplicationHealthCheck"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"runApplicationHealthCheck"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"action"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"location"}}]}}]}}]}}]} as unknown as DocumentNode<RunApplicationHealthCheckMutation, RunApplicationHealthCheckMutationVariables>;export const FindManyApplicationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}}]}}]}}]} as unknown as DocumentNode<FindManyApplicationsQuery, FindManyApplicationsQueryVariables>;-export const FindOneApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApplicationFields"}},{"kind":"Field","name":{"kind":"Name","value":"isUninstallBlockedByOtherWorkspaceInstallations"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isAuditLogged"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"executionMode"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"toolTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"workflowActionTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Application"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canBeUninstalled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpgrade"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationQuery, FindOneApplicationQueryVariables>;+export const FindOneApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApplicationFields"}},{"kind":"Field","name":{"kind":"Name","value":"isUninstallBlockedByOtherWorkspaceInstallations"}},{"kind":"Field","name":{"kind":"Name","value":"requestedIframeMediaPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"origin"}},{"kind":"Field","name":{"kind":"Name","value":"microphone"}},{"kind":"Field","name":{"kind":"Name","value":"camera"}}]}},{"kind":"Field","name":{"kind":"Name","value":"grantedIframeMediaPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"origin"}},{"kind":"Field","name":{"kind":"Name","value":"microphone"}},{"kind":"Field","name":{"kind":"Name","value":"camera"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isAuditLogged"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"executionMode"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"toolTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"workflowActionTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Application"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canBeUninstalled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpgrade"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationQuery, FindOneApplicationQueryVariables>;export const FindOneApplicationByUniversalIdentifierDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationByUniversalIdentifier"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationByUniversalIdentifierQuery, FindOneApplicationByUniversalIdentifierQueryVariables>;export const FindOneApplicationNameDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationName"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationNameQuery, FindOneApplicationNameQueryVariables>;export const FindOneApplicationSummaryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationSummary"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationSummaryQuery, FindOneApplicationSummaryQueryVariables>;@@ -3071,7 +3086,7 @@ export const GrantApplicationCapabilitiesDocument = {"kind":"Document","definitiexport const RenewApplicationTokenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RenewApplicationToken"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationRefreshToken"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"renewApplicationToken"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationRefreshToken"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationRefreshToken"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applicationAccessToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"applicationRefreshToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]}}]}}]} as unknown as DocumentNode<RenewApplicationTokenMutation, RenewApplicationTokenMutationVariables>;export const FindFrontComponentApplicationCapabilitiesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindFrontComponentApplicationCapabilities"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationGrantedCapabilities"}}]}}]}}]} as unknown as DocumentNode<FindFrontComponentApplicationCapabilitiesQuery, FindFrontComponentApplicationCapabilitiesQueryVariables>;export const FindManyFrontComponentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyFrontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentPath"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"widgetAvailability"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pageLayoutType"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceComponentPath"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}}]}}]}}]} as unknown as DocumentNode<FindManyFrontComponentsQuery, FindManyFrontComponentsQueryVariables>;-export const FindOneFrontComponentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneFrontComponent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationName"}},{"kind":"Field","name":{"kind":"Name","value":"applicationGrantedCapabilities"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"}}]}}]}}]} as unknown as DocumentNode<FindOneFrontComponentQuery, FindOneFrontComponentQueryVariables>;+export const FindOneFrontComponentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneFrontComponent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationName"}},{"kind":"Field","name":{"kind":"Name","value":"applicationGrantedCapabilities"}},{"kind":"Field","name":{"kind":"Name","value":"applicationGrantedIframeMediaPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"origin"}},{"kind":"Field","name":{"kind":"Name","value":"microphone"}},{"kind":"Field","name":{"kind":"Name","value":"camera"}}]}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"}}]}}]}}]} as unknown as DocumentNode<FindOneFrontComponentQuery, FindOneFrontComponentQueryVariables>;export const GetApplicationSdkClientChecksumsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetApplicationSdkClientChecksums"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applicationSdkClientChecksums"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"core"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}}]}}]}}]} as unknown as DocumentNode<GetApplicationSdkClientChecksumsQuery, GetApplicationSdkClientChecksumsQueryVariables>;export const GetAutoCompleteAddressDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAutoCompleteAddress"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"address"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"country"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"isFieldCity"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getAutoCompleteAddress"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"address"},"value":{"kind":"Variable","name":{"kind":"Name","value":"address"}}},{"kind":"Argument","name":{"kind":"Name","value":"token"},"value":{"kind":"Variable","name":{"kind":"Name","value":"token"}}},{"kind":"Argument","name":{"kind":"Name","value":"country"},"value":{"kind":"Variable","name":{"kind":"Name","value":"country"}}},{"kind":"Argument","name":{"kind":"Name","value":"isFieldCity"},"value":{"kind":"Variable","name":{"kind":"Name","value":"isFieldCity"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"text"}},{"kind":"Field","name":{"kind":"Name","value":"placeId"}}]}}]}}]} as unknown as DocumentNode<GetAutoCompleteAddressQuery, GetAutoCompleteAddressQueryVariables>;export const GetAddressDetailsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAddressDetails"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"placeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getAddressDetails"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"placeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"placeId"}}},{"kind":"Argument","name":{"kind":"Name","value":"token"},"value":{"kind":"Variable","name":{"kind":"Name","value":"token"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"street"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"location"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"lat"}},{"kind":"Field","name":{"kind":"Name","value":"lng"}}]}}]}}]}}]} as unknown as DocumentNode<GetAddressDetailsQuery, GetAddressDetailsQueryVariables>;@@ -3093,7 +3108,7 @@ export const TriggerInstallApplicationDocument = {"kind":"Document","definitionsexport const TriggerUpgradeApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"TriggerUpgradeApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TriggerUpgradeApplicationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"triggerUpgradeApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"jobId"}}]}}]}}]} as unknown as DocumentNode<TriggerUpgradeApplicationMutation, TriggerUpgradeApplicationMutationVariables>;export const FindInstallApplicationJobStatusDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindInstallApplicationJobStatus"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"jobId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findInstallApplicationJobStatus"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}},{"kind":"Argument","name":{"kind":"Name","value":"jobId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"jobId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"jobId"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"failedReason"}},{"kind":"Field","name":{"kind":"Name","value":"progress"}}]}}]}}]} as unknown as DocumentNode<FindInstallApplicationJobStatusQuery, FindInstallApplicationJobStatusQueryVariables>;export const FindManyMarketplaceAppsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyMarketplaceApps"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyMarketplaceApps"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MarketplaceAppFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceApp"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}}]}}]} as unknown as DocumentNode<FindManyMarketplaceAppsQuery, FindManyMarketplaceAppsQueryVariables>;-export const FindMarketplaceAppDetailDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindMarketplaceAppDetail"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findMarketplaceAppDetail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MarketplaceAppDetailFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"aboutDescription"}},{"kind":"Field","name":{"kind":"Name","value":"pricingDescription"}},{"kind":"Field","name":{"kind":"Name","value":"termsUrl"}},{"kind":"Field","name":{"kind":"Name","value":"emailSupport"}},{"kind":"Field","name":{"kind":"Name","value":"issueReportUrl"}},{"kind":"Field","name":{"kind":"Name","value":"galleryImages"}},{"kind":"Field","name":{"kind":"Name","value":"installCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"requestedCapabilities"}},{"kind":"Field","name":{"kind":"Name","value":"billsCredits"}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlagUniversalIdentifiers"}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"fieldUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}}]}}]}}]}}]} as unknown as DocumentNode<FindMarketplaceAppDetailQuery, FindMarketplaceAppDetailQueryVariables>;+export const FindMarketplaceAppDetailDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindMarketplaceAppDetail"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findMarketplaceAppDetail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MarketplaceAppDetailFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"aboutDescription"}},{"kind":"Field","name":{"kind":"Name","value":"pricingDescription"}},{"kind":"Field","name":{"kind":"Name","value":"termsUrl"}},{"kind":"Field","name":{"kind":"Name","value":"emailSupport"}},{"kind":"Field","name":{"kind":"Name","value":"issueReportUrl"}},{"kind":"Field","name":{"kind":"Name","value":"galleryImages"}},{"kind":"Field","name":{"kind":"Name","value":"installCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"requestedCapabilities"}},{"kind":"Field","name":{"kind":"Name","value":"requestedIframeMediaPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"origin"}},{"kind":"Field","name":{"kind":"Name","value":"microphone"}},{"kind":"Field","name":{"kind":"Name","value":"camera"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billsCredits"}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlagUniversalIdentifiers"}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"fieldUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}}]}}]}}]}}]} as unknown as DocumentNode<FindMarketplaceAppDetailQuery, FindMarketplaceAppDetailQueryVariables>;export const FindMarketplaceAppManifestDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindMarketplaceAppManifest"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findMarketplaceAppDetail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"manifest"}}]}}]}}]} as unknown as DocumentNode<FindMarketplaceAppManifestQuery, FindMarketplaceAppManifestQueryVariables>;export const FindUpgradeApplicationJobStatusDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindUpgradeApplicationJobStatus"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"jobId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findUpgradeApplicationJobStatus"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}},{"kind":"Argument","name":{"kind":"Name","value":"jobId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"jobId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"jobId"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"failedReason"}},{"kind":"Field","name":{"kind":"Name","value":"progress"}}]}}]}}]} as unknown as DocumentNode<FindUpgradeApplicationJobStatusQuery, FindUpgradeApplicationJobStatusQueryVariables>;export const FindMinimalMetadataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindMinimalMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"minimalMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}}]}},{"kind":"Field","name":{"kind":"Name","value":"views"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"Field","name":{"kind":"Name","value":"collectionHashes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"collectionName"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}}]}}]}}]}}]} as unknown as DocumentNode<FindMinimalMetadataQuery, FindMinimalMetadataQueryVariables>;@@ -3137,6 +3152,7 @@ export const CallRecordingIdForCalendarEventDocument = {"kind":"Document","definexport const BarChartDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BarChartData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartDataInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"barChartData"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"indexBy"}},{"kind":"Field","name":{"kind":"Name","value":"keys"}},{"kind":"Field","name":{"kind":"Name","value":"series"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"xAxisLabel"}},{"kind":"Field","name":{"kind":"Name","value":"yAxisLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showLegend"}},{"kind":"Field","name":{"kind":"Name","value":"showDataLabels"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"hasTooManyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"formattedToRawLookup"}}]}}]}}]} as unknown as DocumentNode<BarChartDataQuery, BarChartDataQueryVariables>;export const LineChartDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"LineChartData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartDataInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"lineChartData"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"series"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"x"}},{"kind":"Field","name":{"kind":"Name","value":"y"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"xAxisLabel"}},{"kind":"Field","name":{"kind":"Name","value":"yAxisLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showLegend"}},{"kind":"Field","name":{"kind":"Name","value":"showDataLabels"}},{"kind":"Field","name":{"kind":"Name","value":"hasTooManyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"formattedToRawLookup"}}]}}]}}]} as unknown as DocumentNode<LineChartDataQuery, LineChartDataQueryVariables>;export const PieChartDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PieChartData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartDataInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pieChartData"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"showLegend"}},{"kind":"Field","name":{"kind":"Name","value":"showDataLabels"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"hasTooManyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"formattedToRawLookup"}}]}}]}}]} as unknown as DocumentNode<PieChartDataQuery, PieChartDataQueryVariables>;+export const GetIframeWidgetMediaPermissionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetIframeWidgetMediaPermissions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayoutWidget"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationName"}},{"kind":"Field","name":{"kind":"Name","value":"applicationGrantedIframeMediaPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"origin"}},{"kind":"Field","name":{"kind":"Name","value":"microphone"}},{"kind":"Field","name":{"kind":"Name","value":"camera"}}]}}]}}]}}]} as unknown as DocumentNode<GetIframeWidgetMediaPermissionsQuery, GetIframeWidgetMediaPermissionsQueryVariables>;export const ExportRecordsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"ExportRecords"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateRecordExportInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"exportRecords"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"progress"}},{"kind":"Field","name":{"kind":"Name","value":"errorMessage"}},{"kind":"Field","name":{"kind":"Name","value":"downloadPath"}}]}}]}}]} as unknown as DocumentNode<ExportRecordsSubscription, ExportRecordsSubscriptionVariables>;export const CreateRelatedRecordPathDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateRelatedRecordPath"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateRelatedRecordPathInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createRelatedRecordPath"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RelatedRecordPathFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RelatedRecordPathFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RelatedRecordPath"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"firstFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"thirdFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isInherent"}}]}}]} as unknown as DocumentNode<CreateRelatedRecordPathMutation, CreateRelatedRecordPathMutationVariables>;export const DeleteRelatedRecordPathDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteRelatedRecordPath"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteRelatedRecordPath"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RelatedRecordPathFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RelatedRecordPathFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RelatedRecordPath"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"firstFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"thirdFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isInherent"}}]}}]} as unknown as DocumentNode<DeleteRelatedRecordPathMutation, DeleteRelatedRecordPathMutationVariables>;@@ -3173,6 +3189,7 @@ export const FindClaimableApplicationRegistrationDocument = {"kind":"Document","export const FindManyApplicationRegistrationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyApplicationRegistrations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyApplicationRegistrations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApplicationRegistrationListItem"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationRegistrationListItem"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApplicationRegistration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}}]} as unknown as DocumentNode<FindManyApplicationRegistrationsQuery, FindManyApplicationRegistrationsQueryVariables>;export const FindOneApplicationRegistrationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationRegistration"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplicationRegistration"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApplicationRegistrationFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationRegistrationFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApplicationRegistration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"galleryImagesUrls"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthClientId"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthRedirectUris"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthScopes"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"isPreInstalled"}},{"kind":"Field","name":{"kind":"Name","value":"isConfigured"}},{"kind":"Field","name":{"kind":"Name","value":"ownerWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindOneApplicationRegistrationQuery, FindOneApplicationRegistrationQueryVariables>;export const GithubClaimAuthorizationUrlDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GithubClaimAuthorizationUrl"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"githubClaimAuthorizationUrl"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationRegistrationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}}}]}]}}]} as unknown as DocumentNode<GithubClaimAuthorizationUrlQuery, GithubClaimAuthorizationUrlQueryVariables>;+export const ApproveApplicationIframeMediaPermissionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ApproveApplicationIframeMediaPermissions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"approvedIframeMediaPermissions"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"IframeMediaPermissionInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"approveApplicationIframeMediaPermissions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}}},{"kind":"Argument","name":{"kind":"Name","value":"approvedIframeMediaPermissions"},"value":{"kind":"Variable","name":{"kind":"Name","value":"approvedIframeMediaPermissions"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"grantedIframeMediaPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"origin"}},{"kind":"Field","name":{"kind":"Name","value":"microphone"}},{"kind":"Field","name":{"kind":"Name","value":"camera"}}]}}]}}]}}]} as unknown as DocumentNode<ApproveApplicationIframeMediaPermissionsMutation, ApproveApplicationIframeMediaPermissionsMutationVariables>;export const TriggerUninstallApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"TriggerUninstallApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TriggerUninstallApplicationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"triggerUninstallApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"jobId"}}]}}]}}]} as unknown as DocumentNode<TriggerUninstallApplicationMutation, TriggerUninstallApplicationMutationVariables>;export const UninstallApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UninstallApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uninstallApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}]}]}}]} as unknown as DocumentNode<UninstallApplicationMutation, UninstallApplicationMutationVariables>;export const UpdateApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateApplicationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpgrade"}}]}}]}}]} as unknown as DocumentNode<UpdateApplicationMutation, UpdateApplicationMutationVariables>;diff --git a/packages/twenty-front/src/generated-metadata/schema.ts b/packages/twenty-front/src/generated-metadata/schema.tsindex 9938ec0556c..972787829b4 100644--- a/packages/twenty-front/src/generated-metadata/schema.ts+++ b/packages/twenty-front/src/generated-metadata/schema.ts@@ -494,6 +494,7 @@ export type Application = {defaultRoleId?: Maybe<Scalars['String']['output']>;description?: Maybe<Scalars['String']['output']>;frontComponents: Array<FrontComponent>;+ grantedIframeMediaPermissions: Array<IframeMediaPermission>;healthCheckLogicFunctionId?: Maybe<Scalars['UUID']['output']>;id: Scalars['UUID']['output'];isUninstallBlockedByOtherWorkspaceInstallations: Scalars['Boolean']['output'];@@ -504,6 +505,7 @@ export type Application = {objects: Array<Object>;packageJsonChecksum?: Maybe<Scalars['String']['output']>;packageJsonFileId?: Maybe<Scalars['UUID']['output']>;+ requestedIframeMediaPermissions: Array<IframeMediaPermission>;runOnUserPreferences: Scalars['Boolean']['output'];settingsCustomTabFrontComponentId?: Maybe<Scalars['UUID']['output']>;settingsMenuItems?: Maybe<Array<SettingsMenuItem>>;@@ -2692,6 +2694,7 @@ export type FormFieldConfiguration = {export type FrontComponent = {__typename?: 'FrontComponent';applicationGrantedCapabilities?: Maybe<Array<Scalars['String']['output']>>;+ applicationGrantedIframeMediaPermissions?: Maybe<Array<IframeMediaPermission>>;applicationId: Scalars['UUID']['output'];applicationName?: Maybe<Scalars['String']['output']>;/** @deprecated Use generateFrontComponentApplicationTokenPair */@@ -2873,6 +2876,12 @@ export type IframeMediaPermission = {origin: Scalars['String']['output'];};+export type IframeMediaPermissionInput = {+ camera: Scalars['Boolean']['input'];+ microphone: Scalars['Boolean']['input'];+ origin: Scalars['String']['input'];+};+export type ImapSmtpCaldavConnectionSuccess = {__typename?: 'ImapSmtpCaldavConnectionSuccess';connectedAccountId: Scalars['String']['output'];@@ -3199,6 +3208,7 @@ export type MarketplaceAppDetail = {objects?: Maybe<Array<MarketplaceAppObject>>;pricingDescription?: Maybe<Scalars['String']['output']>;requestedCapabilities: Array<Scalars['String']['output']>;+ requestedIframeMediaPermissions: Array<IframeMediaPermission>;roles?: Maybe<Array<MarketplaceAppRole>>;/** @deprecated Use galleryImages instead */screenshots: Array<Scalars['String']['output']>;@@ -3506,6 +3516,7 @@ export type Mutation = {activateWorkspace: Workspace;addAgentChatMessageReaction: Array<AgentMessageReactionSummary>;addQueryToEventStream: Scalars['Boolean']['output'];+ approveApplicationIframeMediaPermissions: Application;assignAgentChatThread: Scalars['Boolean']['output'];assignRoleToAgent: Scalars['Boolean']['output'];assignRoleToApiKey: Scalars['Boolean']['output'];@@ -3832,6 +3843,12 @@ export type MutationAddQueryToEventStreamArgs = {};+export type MutationApproveApplicationIframeMediaPermissionsArgs = {+ applicationId: Scalars['UUID']['input'];+ approvedIframeMediaPermissions: Array<IframeMediaPermissionInput>;+};++export type MutationAssignAgentChatThreadArgs = {assigneeWorkspaceMemberId?: InputMaybe<Scalars['UUID']['input']>;threadId: Scalars['UUID']['input'];@@ -5627,7 +5644,9 @@ export enum PageLayoutType {export type PageLayoutWidget = {__typename?: 'PageLayoutWidget';+ applicationGrantedIframeMediaPermissions?: Maybe<Array<IframeMediaPermission>>;applicationId: Scalars['UUID']['output'];+ applicationName?: Maybe<Scalars['String']['output']>;conditionalAvailabilityExpression?: Maybe<Scalars['String']['output']>;conditionalDisplay?: Maybe<Scalars['JSON']['output']>;configuration: WidgetConfiguration;diff --git a/packages/twenty-front/src/modules/applications/graphql/queries/findOneApplication.ts b/packages/twenty-front/src/modules/applications/graphql/queries/findOneApplication.tsindex 637aee8f2fc..5babb99ff38 100644--- a/packages/twenty-front/src/modules/applications/graphql/queries/findOneApplication.ts+++ b/packages/twenty-front/src/modules/applications/graphql/queries/findOneApplication.ts@@ -7,6 +7,16 @@ export const FIND_ONE_APPLICATION = gql`findOneApplication(id: $id) {...ApplicationFieldsisUninstallBlockedByOtherWorkspaceInstallations+ requestedIframeMediaPermissions {+ origin+ microphone+ camera+ }+ grantedIframeMediaPermissions {+ origin+ microphone+ camera+ }}}`;diff --git a/packages/twenty-front/src/modules/front-components/components/FrontComponentRenderer.tsx b/packages/twenty-front/src/modules/front-components/components/FrontComponentRenderer.tsxindex 4267153bd69..3a66b548224 100644--- a/packages/twenty-front/src/modules/front-components/components/FrontComponentRenderer.tsx+++ b/packages/twenty-front/src/modules/front-components/components/FrontComponentRenderer.tsx@@ -249,7 +249,14 @@ const FrontComponentRendererContent = ({!isReadyToRender &&loadingFallback}{isReadyToRender && (- <FrontComponentRendererProvider frontComponentId={frontComponentId}>+ <FrontComponentRendererProvider+ frontComponentId={frontComponentId}+ applicationId={applicationId}+ applicationName={resolvedApplicationName}+ applicationGrantedIframeMediaPermissions={+ frontComponent.applicationGrantedIframeMediaPermissions ?? []+ }+ ><SharedFrontComponentRenderercolorScheme={colorScheme}componentUrl={componentUrl}diff --git a/packages/twenty-front/src/modules/front-components/components/FrontComponentRendererProvider.tsx b/packages/twenty-front/src/modules/front-components/components/FrontComponentRendererProvider.tsxindex 840639fcce8..7858f79e7bd 100644--- a/packages/twenty-front/src/modules/front-components/components/FrontComponentRendererProvider.tsx+++ b/packages/twenty-front/src/modules/front-components/components/FrontComponentRendererProvider.tsx@@ -1,19 +1,31 @@import { useCallback } from 'react';-import { FrontComponentInputFocusContext } from 'twenty-front-component-renderer';+import {+ FrontComponentInputFocusContext,+ FrontComponentIframeHostContext,+} from 'twenty-front-component-renderer';import { FrontComponentInputFocusCleanupEffect } from '@/front-components/components/FrontComponentInputFocusCleanupEffect';+import { FrontComponentManagedIframe } from '@/front-components/media-session/components/FrontComponentManagedIframe';+import { FrontComponentIframeOwnerProvider } from '@/front-components/media-session/contexts/FrontComponentIframeOwnerContext';import { FrontComponentInstanceContext } from '@/front-components/states/contexts/FrontComponentInstanceContext';import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePushFocusItemToFocusStack';import { useRemoveFocusItemFromFocusStackById } from '@/ui/utilities/focus/hooks/useRemoveFocusItemFromFocusStackById';import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType';+import { type IframeMediaPermission } from 'twenty-shared/types';type FrontComponentRendererProviderProps = {frontComponentId: string;+ applicationId: string;+ applicationName: string;+ applicationGrantedIframeMediaPermissions: readonly IframeMediaPermission[];children: React.ReactNode;};export const FrontComponentRendererProvider = ({frontComponentId,+ applicationId,+ applicationName,+ applicationGrantedIframeMediaPermissions,children,}: FrontComponentRendererProviderProps) => {const focusId = `front-component-input-focus-${frontComponentId}`;@@ -48,7 +60,22 @@ export const FrontComponentRendererProvider = ({><FrontComponentInputFocusContext.Provider value={setEditableFocused}><FrontComponentInputFocusCleanupEffect focusId={focusId} />- {children}+ <FrontComponentIframeOwnerProvider+ value={{+ owner: {+ type: 'application',+ id: applicationId,+ name: applicationName,+ },+ iframeMediaPermissions: applicationGrantedIframeMediaPermissions,+ }}+ >+ <FrontComponentIframeHostContext.Provider+ value={FrontComponentManagedIframe}+ >+ {children}+ </FrontComponentIframeHostContext.Provider>+ </FrontComponentIframeOwnerProvider></FrontComponentInputFocusContext.Provider></FrontComponentInstanceContext.Provider>);diff --git a/packages/twenty-front/src/modules/front-components/components/__tests__/FrontComponentRendererProvider.test.tsx b/packages/twenty-front/src/modules/front-components/components/__tests__/FrontComponentRendererProvider.test.tsxindex 59316990fb5..f9bbeda60a6 100644--- a/packages/twenty-front/src/modules/front-components/components/__tests__/FrontComponentRendererProvider.test.tsx+++ b/packages/twenty-front/src/modules/front-components/components/__tests__/FrontComponentRendererProvider.test.tsx@@ -11,6 +11,7 @@ jest.mock('twenty-front-component-renderer', () => {return {FrontComponentInputFocusContext:ReactForMock.createContext<SetEditableFocused | null>(null),+ FrontComponentIframeHostContext: ReactForMock.createContext(null),};});@@ -44,7 +45,12 @@ const renderProviderWithStore = () => {const result = render(<JotaiProvider store={store}>- <FrontComponentRendererProvider frontComponentId={FRONT_COMPONENT_ID}>+ <FrontComponentRendererProvider+ frontComponentId={FRONT_COMPONENT_ID}+ applicationId="application-1"+ applicationName="Test application"+ applicationGrantedIframeMediaPermissions={[]}+ ><TestConsumerEffectonCallbackResolved={(callback) => {resolvedSetEditableFocused = callback;diff --git a/packages/twenty-front/src/modules/front-components/graphql/queries/findOneFrontComponent.ts b/packages/twenty-front/src/modules/front-components/graphql/queries/findOneFrontComponent.tsindex 462ad9049e3..b8cf1d4d91f 100644--- a/packages/twenty-front/src/modules/front-components/graphql/queries/findOneFrontComponent.ts+++ b/packages/twenty-front/src/modules/front-components/graphql/queries/findOneFrontComponent.ts@@ -8,6 +8,11 @@ export const FIND_ONE_FRONT_COMPONENT = gql`applicationIdapplicationNameapplicationGrantedCapabilities+ applicationGrantedIframeMediaPermissions {+ origin+ microphone+ camera+ }builtComponentChecksumisHeadlessusesSdkClientdiff --git a/packages/twenty-front/src/modules/front-components/hooks/__tests__/useUpdateFrontComponentApolloCache.test.tsx b/packages/twenty-front/src/modules/front-components/hooks/__tests__/useUpdateFrontComponentApolloCache.test.tsxindex 32e06610175..057304a9aa7 100644--- a/packages/twenty-front/src/modules/front-components/hooks/__tests__/useUpdateFrontComponentApolloCache.test.tsx+++ b/packages/twenty-front/src/modules/front-components/hooks/__tests__/useUpdateFrontComponentApolloCache.test.tsx@@ -152,6 +152,49 @@ describe('useUpdateFrontComponentApolloCache', () => {});});+ it('should keep the cached application iframe media permissions', () => {+ const { result } = renderHook(() =>+ useUpdateFrontComponentApolloCache({+ frontComponentId: FRONT_COMPONENT_ID,+ }),+ );++ const detail: MetadataOperationBrowserEventDetail<FrontComponent> = {+ metadataName: 'frontComponent',+ operation: {+ type: 'update',+ updatedRecord: buildFrontComponentRecord({+ applicationGrantedIframeMediaPermissions: undefined,+ }),+ },+ };++ result.current.updateFrontComponentApolloCache(detail);++ const updaterFn = mockUpdateQuery.mock.calls[0][1];+ const applicationGrantedIframeMediaPermissions = [+ {+ __typename: 'IframeMediaPermission' as const,+ origin: 'https://phone.example.com',+ microphone: true,+ camera: false,+ },+ ];++ const updatedData = updaterFn({+ frontComponent: {+ id: FRONT_COMPONENT_ID,+ name: 'Test Component',+ applicationGrantedIframeMediaPermissions,+ __typename: 'FrontComponent' as const,+ },+ });++ expect(+ updatedData.frontComponent.applicationGrantedIframeMediaPermissions,+ ).toEqual(applicationGrantedIframeMediaPermissions);+ });+it('should return existing data when frontComponent is not in cache', () => {const { result } = renderHook(() =>useUpdateFrontComponentApolloCache({diff --git a/packages/twenty-front/src/modules/front-components/hooks/useUpdateFrontComponentApolloCache.ts b/packages/twenty-front/src/modules/front-components/hooks/useUpdateFrontComponentApolloCache.tsindex fd65be4abdc..da2a8e6b8e4 100644--- a/packages/twenty-front/src/modules/front-components/hooks/useUpdateFrontComponentApolloCache.ts+++ b/packages/twenty-front/src/modules/front-components/hooks/useUpdateFrontComponentApolloCache.ts@@ -44,6 +44,9 @@ export const useUpdateFrontComponentApolloCache = ({frontComponent: {...existingData.frontComponent,...updatedRecord,+ applicationGrantedIframeMediaPermissions:+ existingData.frontComponent+ .applicationGrantedIframeMediaPermissions,},};},diff --git a/packages/twenty-front/src/modules/front-components/media-session/components/FrontComponentManagedIframe.tsx b/packages/twenty-front/src/modules/front-components/media-session/components/FrontComponentManagedIframe.tsxnew file mode 100644index 00000000000..7b7c0eee836--- /dev/null+++ b/packages/twenty-front/src/modules/front-components/media-session/components/FrontComponentManagedIframe.tsx@@ -0,0 +1,37 @@+import { useFrontComponentIframeOwnerOrThrow } from '@/front-components/media-session/contexts/FrontComponentIframeOwnerContext';+import { ManagedIframe } from '@/media-access/components/ManagedIframe';+import { limitToDocumentIframeMediaPermissions } from '@/media-access/utils/limitToDocumentIframeMediaPermissions';+import {+ type FrontComponentIframeHostProps,+ getRequestedIframeMediaCapabilities,+} from 'twenty-front-component-renderer';++type FrontComponentManagedIframeProps = FrontComponentIframeHostProps;++export const FrontComponentManagedIframe = ({+ iframeProps,+ iframeElement,+ renderIframe,+}: FrontComponentManagedIframeProps) => {+ const { owner, iframeMediaPermissions } =+ useFrontComponentIframeOwnerOrThrow();++ return (+ <ManagedIframe+ renderIframe={renderIframe}+ iframeElement={iframeElement}+ owner={owner}+ iframeMediaPermissions={limitToDocumentIframeMediaPermissions(+ iframeMediaPermissions,+ )}+ requestedMediaCapabilities={getRequestedIframeMediaCapabilities(+ iframeProps.allow,+ )}+ src={iframeProps.src}+ srcDoc={iframeProps.srcDoc}+ hidden={iframeProps.hidden}+ sandbox={iframeProps.sandbox}+ allow={iframeProps.allow}+ />+ );+};diff --git a/packages/twenty-front/src/modules/front-components/media-session/contexts/FrontComponentIframeOwnerContext.ts b/packages/twenty-front/src/modules/front-components/media-session/contexts/FrontComponentIframeOwnerContext.tsnew file mode 100644index 00000000000..fc9cc324ef5--- /dev/null+++ b/packages/twenty-front/src/modules/front-components/media-session/contexts/FrontComponentIframeOwnerContext.ts@@ -0,0 +1,11 @@+import { type MediaAccessOwner } from '@/media-access/types/MediaAccessOwner';+import { type IframeMediaPermission } from 'twenty-shared/types';+import { createRequiredContext } from '~/utils/createRequiredContext';++export const [+ FrontComponentIframeOwnerProvider,+ useFrontComponentIframeOwnerOrThrow,+] = createRequiredContext<{+ owner: MediaAccessOwner;+ iframeMediaPermissions: readonly IframeMediaPermission[];+}>('FrontComponentIframeOwner');diff --git a/packages/twenty-front/src/modules/getting-started/components/GettingStartedAppInstallButton.tsx b/packages/twenty-front/src/modules/getting-started/components/GettingStartedAppInstallButton.tsxindex 9a6df579ae5..25ef18a48c6 100644--- a/packages/twenty-front/src/modules/getting-started/components/GettingStartedAppInstallButton.tsx+++ b/packages/twenty-front/src/modules/getting-started/components/GettingStartedAppInstallButton.tsx@@ -66,6 +66,9 @@ export const GettingStartedAppInstallButton = ({)}appObjects={marketplaceAppDetail.objects ?? undefined}requestedCapabilities={marketplaceAppDetail.requestedCapabilities}+ requestedIframeMediaPermissions={+ marketplaceAppDetail.requestedIframeMediaPermissions+ }billsCredits={marketplaceAppDetail.billsCredits}isListed={marketplaceAppDetail.isListed}onAuthorize={install}diff --git a/packages/twenty-front/src/modules/marketplace/components/SettingsApplicationInstallPermissionValidationModal.tsx b/packages/twenty-front/src/modules/marketplace/components/SettingsApplicationInstallPermissionValidationModal.tsxindex 4ec0b19e2f4..afa6e1247fb 100644--- a/packages/twenty-front/src/modules/marketplace/components/SettingsApplicationInstallPermissionValidationModal.tsx+++ b/packages/twenty-front/src/modules/marketplace/components/SettingsApplicationInstallPermissionValidationModal.tsx@@ -4,6 +4,7 @@ import { AppConnectionHeader } from '@/applications/components/AppConnectionHeadimport { AuthorizeActionButtons } from '@/applications/components/AuthorizeActionButtons';import { buildApplicationBillingSummary } from '@/marketplace/utils/buildApplicationBillingSummary';import { buildApplicationCapabilitySummary } from '@/marketplace/utils/buildApplicationCapabilitySummary';+import { buildApplicationIframeMediaPermissionSummary } from '@/marketplace/utils/buildApplicationIframeMediaPermissionSummary';import {buildPermissionSummaryFromRoleManifest,type PermissionSummaryItem,@@ -15,6 +16,7 @@ import { styled } from '@linaria/react';import { t } from '@lingui/core/macro';import { useMemo } from 'react';import { type RoleManifest } from 'twenty-shared/application';+import { type IframeMediaPermission } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';import { InlineBanner } from 'twenty-ui/components/feedback';import { LightButton } from 'twenty-ui/components/input';@@ -32,6 +34,7 @@ type SettingsApplicationInstallPermissionValidationModalProps = {defaultRole?: RoleManifest;appObjects?: MarketplaceAppObject[];requestedCapabilities?: string[];+ requestedIframeMediaPermissions?: readonly IframeMediaPermission[];billsCredits?: boolean;isListed?: boolean;onAuthorize: () => void;@@ -137,6 +140,7 @@ export const SettingsApplicationInstallPermissionValidationModal = ({defaultRole,appObjects,requestedCapabilities = [],+ requestedIframeMediaPermissions = [],billsCredits = false,isListed = false,onAuthorize,@@ -178,10 +182,14 @@ export const SettingsApplicationInstallPermissionValidationModal = ({return [...rolePermissionItems,...buildApplicationCapabilitySummary(requestedCapabilities),+ ...buildApplicationIframeMediaPermissionSummary(+ requestedIframeMediaPermissions,+ ),...buildApplicationBillingSummary(billsCredits),];}, [requestedCapabilities,+ requestedIframeMediaPermissions,defaultRole,objectLabelsByUniversalIdentifier,appObjectUniversalIdentifiers,diff --git a/packages/twenty-front/src/modules/marketplace/graphql/fragments/marketplaceAppDetailFragment.ts b/packages/twenty-front/src/modules/marketplace/graphql/fragments/marketplaceAppDetailFragment.tsindex 5f61d20c8e1..6353ca0d003 100644--- a/packages/twenty-front/src/modules/marketplace/graphql/fragments/marketplaceAppDetailFragment.ts+++ b/packages/twenty-front/src/modules/marketplace/graphql/fragments/marketplaceAppDetailFragment.ts@@ -23,6 +23,11 @@ export const MARKETPLACE_APP_DETAIL_FRAGMENT = gql`installCountdefaultRoleUniversalIdentifierrequestedCapabilities+ requestedIframeMediaPermissions {+ origin+ microphone+ camera+ }billsCreditsobjects {universalIdentifierdiff --git a/packages/twenty-front/src/modules/marketplace/utils/__tests__/buildApplicationIframeMediaPermissionSummary.test.ts b/packages/twenty-front/src/modules/marketplace/utils/__tests__/buildApplicationIframeMediaPermissionSummary.test.tsnew file mode 100644index 00000000000..c18315b5f4f--- /dev/null+++ b/packages/twenty-front/src/modules/marketplace/utils/__tests__/buildApplicationIframeMediaPermissionSummary.test.ts@@ -0,0 +1,25 @@+import { buildApplicationIframeMediaPermissionSummary } from '@/marketplace/utils/buildApplicationIframeMediaPermissionSummary';++describe('buildApplicationIframeMediaPermissionSummary', () => {+ it('shows the embedded websites and the media they can use during installation', () => {+ expect(+ buildApplicationIframeMediaPermissionSummary([+ {+ origin: 'https://phone.example.com',+ microphone: true,+ camera: false,+ },+ {+ origin: 'https://photo.example.com',+ microphone: false,+ camera: true,+ },+ { origin: 'https://video.example.com', microphone: true, camera: true },+ ]).map(({ label }) => label),+ ).toEqual([+ 'Let phone.example.com use your microphone',+ 'Let photo.example.com use your camera',+ 'Let video.example.com use your microphone and camera',+ ]);+ });+});diff --git a/packages/twenty-front/src/modules/marketplace/utils/buildApplicationIframeMediaPermissionSummary.ts b/packages/twenty-front/src/modules/marketplace/utils/buildApplicationIframeMediaPermissionSummary.tsnew file mode 100644index 00000000000..9c11b1ceb32--- /dev/null+++ b/packages/twenty-front/src/modules/marketplace/utils/buildApplicationIframeMediaPermissionSummary.ts@@ -0,0 +1,32 @@+import { t } from '@lingui/core/macro';+import { type IframeMediaPermission } from 'twenty-shared/types';+import { getUrlSafely } from 'twenty-shared/utils';+import { IconFrame } from 'twenty-ui/icon';++import { type PermissionSummaryItem } from '@/marketplace/types/PermissionSummaryItem';++const getIframeMediaPermissionLabel = ({+ origin,+ microphone,+ camera,+}: IframeMediaPermission) => {+ const host = getUrlSafely(origin)?.host ?? origin;++ if (microphone && camera) {+ return t`Let ${host} use your microphone and camera`;+ }++ if (camera) {+ return t`Let ${host} use your camera`;+ }++ return t`Let ${host} use your microphone`;+};++export const buildApplicationIframeMediaPermissionSummary = (+ iframeMediaPermissions: readonly IframeMediaPermission[],+): PermissionSummaryItem[] =>+ iframeMediaPermissions.map((iframeMediaPermission) => ({+ Icon: IconFrame,+ label: getIframeMediaPermissionLabel(iframeMediaPermission),+ }));diff --git a/packages/twenty-front/src/modules/media-access/components/ManagedIframe.tsx b/packages/twenty-front/src/modules/media-access/components/ManagedIframe.tsxindex a2e9bbece24..7a662fb2c34 100644--- a/packages/twenty-front/src/modules/media-access/components/ManagedIframe.tsx+++ b/packages/twenty-front/src/modules/media-access/components/ManagedIframe.tsx@@ -17,6 +17,8 @@ export const ManagedIframe = ({sandbox,allow,allowFullScreen,+ renderIframe,+ iframeElement,owner,requestedMediaCapabilities,iframeMediaPermissions,@@ -46,6 +48,8 @@ export const ManagedIframe = ({sandbox={sandbox}allow={allow}allowFullScreen={allowFullScreen}+ renderIframe={renderIframe}+ iframeElement={iframeElement}ownerId={ownerId}ownerName={owner.name}permission={permission}diff --git a/packages/twenty-front/src/modules/media-access/components/ManagedIframeEnableButton.tsx b/packages/twenty-front/src/modules/media-access/components/ManagedIframeEnableButton.tsxindex d64d6e23339..dd5cf314d54 100644--- a/packages/twenty-front/src/modules/media-access/components/ManagedIframeEnableButton.tsx+++ b/packages/twenty-front/src/modules/media-access/components/ManagedIframeEnableButton.tsx@@ -1,6 +1,7 @@import { MANAGED_IFRAME_ENABLE_BUTTON_INSET_PX } from '@/media-access/constants/ManagedIframeEnableButtonInsetPx';import { autoUpdate, hide, offset, useFloating } from '@floating-ui/react';import { styled } from '@linaria/react';+import { FRONT_COMPONENT_HOST_UI_CLASS_NAME } from 'twenty-front-component-renderer';import { Button } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';@@ -42,6 +43,7 @@ export const ManagedIframeEnableButton = ({return (<StyledControlsref={refs.setFloating}+ className={FRONT_COMPONENT_HOST_UI_CLASS_NAME}style={{ ...floatingStyles, visibility: isHidden ? 'hidden' : 'visible' }}><Button size="sm" variant="outline" onClick={onClick}>diff --git a/packages/twenty-front/src/modules/media-access/components/ManagedIframeSession.tsx b/packages/twenty-front/src/modules/media-access/components/ManagedIframeSession.tsxindex eebec5301a8..4c4e2791657 100644--- a/packages/twenty-front/src/modules/media-access/components/ManagedIframeSession.tsx+++ b/packages/twenty-front/src/modules/media-access/components/ManagedIframeSession.tsx@@ -2,12 +2,12 @@ import { ManagedIframeEnableButton } from '@/media-access/components/ManagedIfraimport { ManagedIframeMediaAccessSessionEffect } from '@/media-access/components/ManagedIframeMediaAccessSessionEffect';import { type ManagedIframeElementProps } from '@/media-access/types/ManagedIframeElementProps';import { getDelegatedIframeMediaPermission } from '@/media-access/utils/getDelegatedIframeMediaPermission';-import { getIframeMediaAllow } from '@/media-access/utils/getIframeMediaAllow';+import { isIframeMediaPermissionCovered } from '@/media-access/utils/isIframeMediaPermissionCovered';import { t } from '@lingui/core/macro';import { isNonEmptyString } from '@sniptt/guards';-import { useCallback, useId, useState } from 'react';+import { Fragment, useCallback, useId, useState } from 'react';import { type IframeMediaPermission } from 'twenty-shared/types';-import { isDefined } from 'twenty-shared/utils';+import { getIframeMediaAllow, isDefined } from 'twenty-shared/utils';type ManagedIframeSessionProps = ManagedIframeElementProps & {ownerId: string;@@ -41,14 +41,15 @@ export const ManagedIframeSession = ({sandbox,allow,allowFullScreen,+ renderIframe,+ iframeElement,ownerId,ownerName,permission,}: ManagedIframeSessionProps) => {const mediaAccessSessionId = useId();- const [iframeElement, setIframeElement] = useState<HTMLIFrameElement | null>(- null,- );+ const [nativeIframeElement, setNativeIframeElement] =+ useState<HTMLIFrameElement | null>(null);const [activatedPermission, setActivatedPermission] =useState<IframeMediaPermission | null>(null);const delegatedPermission = getDelegatedIframeMediaPermission({@@ -56,15 +57,38 @@ export const ManagedIframeSession = ({permission,});const isActivated = isDefined(delegatedPermission);+ const isAvailablePermissionActivated =+ isDefined(permission) &&+ isIframeMediaPermissionCovered({+ permission,+ coveringPermission: delegatedPermission,+ });if (isDefined(activatedPermission) && !isActivated) {setActivatedPermission(null);}+ const anchorElement = iframeElement ?? nativeIframeElement;const handleDeactivate = useCallback(() => {setActivatedPermission(null);}, []);const handleEnable = () => {+ if (!isDefined(permission)) {+ return;+ }++ if (+ !window.confirm(+ [+ t`Enable media access for ${ownerName}?`,+ getEnableLabel(permission),+ permission.origin,+ ].join('\n'),+ )+ ) {+ return;+ }+setActivatedPermission(permission);};const iframeAllow = getIframeMediaAllow({@@ -92,29 +116,34 @@ export const ManagedIframeSession = ({onStop={handleDeactivate}/>)}- <iframe- key={isActivated ? 'media-enabled' : 'media-disabled'}- ref={setIframeElement}- src={src}- srcDoc={srcDoc}- title={title}- className={className}- style={style}- width={width}- height={height}- hidden={hidden}- onLoad={onLoad}- onError={onError}- sandbox={iframeSandbox}- allow={iframeAllow}- allowFullScreen={allowFullScreen}- />+ <Fragment key={iframeAllow}>+ {isDefined(renderIframe) ? (+ renderIframe({ allow: iframeAllow, sandbox: iframeSandbox })+ ) : (+ <iframe+ ref={setNativeIframeElement}+ src={src}+ srcDoc={srcDoc}+ title={title}+ className={className}+ style={style}+ width={width}+ height={height}+ hidden={hidden}+ onLoad={onLoad}+ onError={onError}+ sandbox={iframeSandbox}+ allow={iframeAllow}+ allowFullScreen={allowFullScreen}+ />+ )}+ </Fragment>{isDefined(permission) &&- !isActivated &&+ !isAvailablePermissionActivated &&!hidden &&- isDefined(iframeElement) && (+ isDefined(anchorElement) && (<ManagedIframeEnableButton- anchorElement={iframeElement}+ anchorElement={anchorElement}label={getEnableLabel(permission)}onClick={handleEnable}/>diff --git a/packages/twenty-front/src/modules/media-access/components/__stories__/ManagedIframe.stories.tsx b/packages/twenty-front/src/modules/media-access/components/__stories__/ManagedIframe.stories.tsxindex 42cd639523d..2c292045589 100644--- a/packages/twenty-front/src/modules/media-access/components/__stories__/ManagedIframe.stories.tsx+++ b/packages/twenty-front/src/modules/media-access/components/__stories__/ManagedIframe.stories.tsx@@ -2,11 +2,22 @@ import { ManagedIframe } from '@/media-access/components/ManagedIframe';import { MediaAccessIndicator } from '@/media-access/components/MediaAccessIndicator';import { mediaAccessSessionsState } from '@/media-access/states/mediaAccessSessionsState';import { type MediaAccessSession } from '@/media-access/types/MediaAccessSession';+import { type MediaAccessOwner } from '@/media-access/types/MediaAccessOwner';import { getMediaAccessOwnerId } from '@/media-access/utils/getMediaAccessOwnerId';import { type Meta, type StoryObj } from '@storybook/react-vite';import { createStore, Provider } from 'jotai';-import { type CSSProperties, useState } from 'react';-import { expect, fn, screen, userEvent, waitFor, within } from 'storybook/test';+import { type CSSProperties, StrictMode, useState } from 'react';+import {+ expect,+ fn,+ mocked,+ screen,+ spyOn,+ userEvent,+ waitFor,+ within,+} from 'storybook/test';+import { type IframeMediaPermission } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';import { Button } from 'twenty-ui/primitives/input';import { ComponentDecorator } from 'twenty-ui/testing';@@ -15,6 +26,11 @@ const meta: Meta<typeof ManagedIframe> = {title: 'Modules/MediaAccess/ManagedIframe',component: ManagedIframe,decorators: [ComponentDecorator],+ beforeEach: () => {+ const confirm = spyOn(window, 'confirm').mockReturnValue(true);++ return () => confirm.mockRestore();+ },};export default meta;@@ -40,13 +56,20 @@ const ManagedIframePreview = ({hasNativeCapture = false,iframeStyle,iframeClassName,+ initialPermission = MICROPHONE_PERMISSION,+ ownerType = 'workspace-widget',+ iframeContainerStyle,}: {hasNativeCapture?: boolean;iframeStyle?: CSSProperties;iframeClassName?: string;+ initialPermission?: IframeMediaPermission;+ ownerType?: MediaAccessOwner['type'];+ iframeContainerStyle?: CSSProperties;}) => {const [isHidden, setIsHidden] = useState(false);const [isGranted, setIsGranted] = useState(true);+ const [permission, setPermission] = useState(initialPermission);const [store] = useState(() => {const previewStore = createStore();previewStore.set(@@ -65,12 +88,22 @@ const ManagedIframePreview = ({{isHidden ? 'Show phone' : 'Hide phone'}</Button><Button onClick={() => setIsGranted(!isGranted)}>- {isGranted ? 'Revoke microphone' : 'Grant microphone'}+ {isGranted ? 'Revoke media access' : 'Grant media access'}+ </Button>+ <Button+ onClick={() =>+ setPermission((currentPermission) => ({+ ...currentPermission,+ camera: !currentPermission.camera,+ }))+ }+ >+ {permission.camera ? 'Revoke camera' : 'Grant camera'}</Button>- <div style={{ width: 500, height: 250 }}>+ <div style={{ width: 500, height: 250, ...iframeContainerStyle }}><ManagedIframe- owner={{ type: 'workspace-widget', id: 'phone', name: 'Aircall' }}- iframeMediaPermissions={isGranted ? [MICROPHONE_PERMISSION] : []}+ owner={{ type: ownerType, id: 'phone', name: 'Aircall' }}+ iframeMediaPermissions={isGranted ? [permission] : []}requestedMediaCapabilities={['microphone', 'camera']}src="https://example.com"title="Aircall phone"@@ -146,6 +179,60 @@ export const EnableAndDisable: StoryObj<typeof ManagedIframe> = {},};+export const ConfirmsOutsideAppControlledContent: StoryObj<+ typeof ManagedIframe+> = {+ render: () => (+ <StrictMode>+ <style>{`.front-component-host-ui, [role="dialog"] { opacity: 0 !important; position: fixed !important; inset: 0 !important; z-index: 2147483647 !important; }`}</style>+ <ManagedIframePreview+ ownerType="application"+ iframeContainerStyle={{ opacity: 0 }}+ />+ </StrictMode>+ ),+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);+ const documentBody = within(canvasElement.ownerDocument.body);+ const initialFrame = canvas.getByTitle('Aircall phone');+ const confirm = mocked(window.confirm)+ .mockReturnValueOnce(false)+ .mockReturnValueOnce(true);++ try {+ const enableButton = await canvas.findByRole('button', {+ name: 'Enable microphone',+ });++ await expect(enableButton).not.toBeVisible();+ await userEvent.click(enableButton);+ await expect(confirm).toHaveBeenCalledTimes(1);+ await expect(confirm).toHaveBeenLastCalledWith(+ 'Enable media access for Aircall?\nEnable microphone\nhttps://example.com',+ );+ await expect(documentBody.queryByRole('dialog')).not.toBeInTheDocument();+ await expect(canvas.getByTitle('Aircall phone')).toBe(initialFrame);+ await expect(initialFrame).toHaveAttribute(+ 'allow',+ "microphone 'none'; camera 'none'; encrypted-media",+ );++ await userEvent.click(enableButton);+ await expect(confirm).toHaveBeenCalledTimes(2);+ await expect(confirm).toHaveBeenLastCalledWith(+ 'Enable media access for Aircall?\nEnable microphone\nhttps://example.com',+ );+ await expect(canvas.getByTitle('Aircall phone')).not.toBe(initialFrame);+ await expect(canvas.getByTitle('Aircall phone')).toHaveAttribute(+ 'allow',+ "microphone https://example.com; camera 'none'; encrypted-media",+ );+ } finally {+ confirm.mockReset().mockReturnValue(true);+ }+ },+};+export const RevokedPermission: StoryObj<typeof ManagedIframe> = {render: () => <ManagedIframePreview />,play: async ({ canvasElement }) => {@@ -155,7 +242,7 @@ export const RevokedPermission: StoryObj<typeof ManagedIframe> = {);const enabledFrame = canvas.getByTitle('Aircall phone');await userEvent.click(- canvas.getByRole('button', { name: 'Revoke microphone' }),+ canvas.getByRole('button', { name: 'Revoke media access' }),);await waitFor(() => expect(enabledFrame).not.toBeInTheDocument());@@ -166,7 +253,7 @@ export const RevokedPermission: StoryObj<typeof ManagedIframe> = {canvas.queryByRole('button', { name: 'Enable microphone' }),).not.toBeInTheDocument();await userEvent.click(- canvas.getByRole('button', { name: 'Grant microphone' }),+ canvas.getByRole('button', { name: 'Grant media access' }),);await expect(await canvas.findByRole('button', { name: 'Enable microphone' }),@@ -181,6 +268,143 @@ export const RevokedPermission: StoryObj<typeof ManagedIframe> = {},};+export const RevokedPermissionDuringConfirmation: StoryObj<+ typeof ManagedIframe+> = {+ render: () => (+ <StrictMode>+ <ManagedIframePreview ownerType="application" />+ </StrictMode>+ ),+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);+ const initialFrame = canvas.getByTitle('Aircall phone');+ const revokeMediaAccess = canvas.getByRole('button', {+ name: 'Revoke media access',+ });+ const confirm = mocked(window.confirm)+ .mockImplementationOnce(() => {+ revokeMediaAccess.click();++ return true;+ })+ .mockReturnValue(true);++ try {+ await userEvent.click(+ await canvas.findByRole('button', { name: 'Enable microphone' }),+ );++ await expect(confirm).toHaveBeenCalledTimes(1);+ await expect(canvas.getByTitle('Aircall phone')).toBe(initialFrame);+ await expect(initialFrame).toHaveAttribute(+ 'allow',+ "microphone 'none'; camera 'none'; encrypted-media",+ );+ await expect(+ canvas.queryByRole('button', { name: 'Enable microphone' }),+ ).not.toBeInTheDocument();+ await userEvent.click(+ canvas.getByRole('button', { name: 'Grant media access' }),+ );+ await expect(initialFrame).toHaveAttribute(+ 'allow',+ "microphone 'none'; camera 'none'; encrypted-media",+ );+ await userEvent.click(+ await canvas.findByRole('button', { name: 'Enable microphone' }),+ );+ await expect(confirm).toHaveBeenCalledTimes(2);+ await expect(canvas.getByTitle('Aircall phone')).not.toBe(initialFrame);+ await expect(canvas.getByTitle('Aircall phone')).toHaveAttribute(+ 'allow',+ "microphone https://example.com; camera 'none'; encrypted-media",+ );+ } finally {+ confirm.mockReset().mockReturnValue(true);+ }+ },+};++export const CameraPermission: StoryObj<typeof ManagedIframe> = {+ render: () => (+ <ManagedIframePreview+ initialPermission={{+ ...MICROPHONE_PERMISSION,+ microphone: false,+ camera: true,+ }}+ />+ ),+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);+ const initialFrame = canvas.getByTitle('Aircall phone');++ await userEvent.click(+ await canvas.findByRole('button', { name: 'Enable camera' }),+ );++ const enabledFrame = canvas.getByTitle('Aircall phone');++ await expect(enabledFrame).not.toBe(initialFrame);+ await expect(enabledFrame).toHaveAttribute(+ 'allow',+ "microphone 'none'; camera https://example.com; encrypted-media",+ );+ await userEvent.click(+ canvas.getByRole('button', { name: 'Media access enabled' }),+ );+ await expect(+ await screen.findByText('Camera access enabled'),+ ).toBeVisible();+ },+};++export const ExpandedPermission: StoryObj<typeof ManagedIframe> = {+ render: () => <ManagedIframePreview />,+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);++ await userEvent.click(+ await canvas.findByRole('button', { name: 'Enable microphone' }),+ );++ const microphoneFrame = canvas.getByTitle('Aircall phone');++ await userEvent.click(canvas.getByRole('button', { name: 'Grant camera' }));+ await expect(+ await canvas.findByRole('button', {+ name: 'Enable microphone and camera',+ }),+ ).toBeVisible();+ await expect(canvas.getByTitle('Aircall phone')).toBe(microphoneFrame);+ await expect(microphoneFrame).toHaveAttribute(+ 'allow',+ "microphone https://example.com; camera 'none'; encrypted-media",+ );+ await userEvent.click(+ canvas.getByRole('button', { name: 'Enable microphone and camera' }),+ );++ const combinedFrame = canvas.getByTitle('Aircall phone');++ await expect(combinedFrame).not.toBe(microphoneFrame);+ await expect(combinedFrame).toHaveAttribute(+ 'allow',+ 'microphone https://example.com; camera https://example.com; encrypted-media',+ );+ await expect(+ canvas.queryByRole('button', { name: 'Enable microphone and camera' }),+ ).not.toBeInTheDocument();+ await userEvent.click(+ canvas.getByRole('button', { name: 'Media access enabled' }),+ );+ await expect(+ await screen.findByText('Microphone and camera access enabled'),+ ).toBeVisible();+ },+};+export const NativeCaptureAndExternalAccess: StoryObj<typeof ManagedIframe> = {render: () => <ManagedIframePreview hasNativeCapture />,play: async ({ canvasElement }) => {diff --git a/packages/twenty-front/src/modules/media-access/types/ManagedIframeElementProps.ts b/packages/twenty-front/src/modules/media-access/types/ManagedIframeElementProps.tsindex 2dc5dc979e3..0d9b9d84e87 100644--- a/packages/twenty-front/src/modules/media-access/types/ManagedIframeElementProps.ts+++ b/packages/twenty-front/src/modules/media-access/types/ManagedIframeElementProps.ts@@ -1,4 +1,5 @@import { type IframeHTMLAttributes } from 'react';+import { type FrontComponentIframeHostProps } from 'twenty-front-component-renderer';export type ManagedIframeElementProps = Pick<IframeHTMLAttributes<HTMLIFrameElement>,@@ -15,4 +16,7 @@ export type ManagedIframeElementProps = Pick<| 'sandbox'| 'allow'| 'allowFullScreen'->;+> & {+ renderIframe?: FrontComponentIframeHostProps['renderIframe'];+ iframeElement?: Element | null;+};diff --git a/packages/twenty-front/src/modules/media-access/utils/__tests__/getDelegatedIframeMediaPermission.test.ts b/packages/twenty-front/src/modules/media-access/utils/__tests__/getDelegatedIframeMediaPermission.test.tsindex ca15ceb0dc6..eca056b28e4 100644--- a/packages/twenty-front/src/modules/media-access/utils/__tests__/getDelegatedIframeMediaPermission.test.ts+++ b/packages/twenty-front/src/modules/media-access/utils/__tests__/getDelegatedIframeMediaPermission.test.ts@@ -33,4 +33,13 @@ describe('getDelegatedIframeMediaPermission', () => {}),).toBeNull();});++ it('drops the activated permission when one capability is revoked', () => {+ expect(+ getDelegatedIframeMediaPermission({+ activatedPermission: { ...ACTIVATED_PERMISSION, camera: true },+ permission: ACTIVATED_PERMISSION,+ }),+ ).toBeNull();+ });});diff --git a/packages/twenty-front/src/modules/media-access/utils/__tests__/isIframeMediaPermissionCovered.test.ts b/packages/twenty-front/src/modules/media-access/utils/__tests__/isIframeMediaPermissionCovered.test.tsindex ad139de8421..2b1a8ee1c03 100644--- a/packages/twenty-front/src/modules/media-access/utils/__tests__/isIframeMediaPermissionCovered.test.ts+++ b/packages/twenty-front/src/modules/media-access/utils/__tests__/isIframeMediaPermissionCovered.test.ts@@ -12,14 +12,20 @@ describe('isIframeMediaPermissionCovered', () => {).toBe(true);});- it('is no longer covered when a delegated capability is revoked', () => {- expect(- isIframeMediaPermissionCovered({- permission: { origin: ORIGIN, microphone: true, camera: true },- coveringPermission: { origin: ORIGIN, microphone: true, camera: false },- }),- ).toBe(false);- });+ it.each([+ { origin: ORIGIN, microphone: true, camera: false },+ { origin: ORIGIN, microphone: false, camera: true },+ ])(+ 'is no longer covered when a delegated capability is revoked: %o',+ (coveringPermission) => {+ expect(+ isIframeMediaPermissionCovered({+ permission: { origin: ORIGIN, microphone: true, camera: true },+ coveringPermission,+ }),+ ).toBe(false);+ },+ );it.each([null,diff --git a/packages/twenty-front/src/modules/media-access/utils/__tests__/limitToDocumentIframeMediaPermissions.test.ts b/packages/twenty-front/src/modules/media-access/utils/__tests__/limitToDocumentIframeMediaPermissions.test.tsindex 6f54b36c5fa..3ba12dbaa9d 100644--- a/packages/twenty-front/src/modules/media-access/utils/__tests__/limitToDocumentIframeMediaPermissions.test.ts+++ b/packages/twenty-front/src/modules/media-access/utils/__tests__/limitToDocumentIframeMediaPermissions.test.ts@@ -34,4 +34,18 @@ describe('limitToDocumentIframeMediaPermissions', () => {PERMISSIONS[0],]);});++ it('keeps only capabilities allowed when the document was served', () => {+ const documentPermission = { ...PERMISSIONS[1], camera: false };+ const element = document.createElement('script');++ element.id = IFRAME_MEDIA_PERMISSIONS_BOOTSTRAP_ELEMENT_ID;+ element.type = 'application/json';+ element.textContent = JSON.stringify([documentPermission]);+ document.head.append(element);++ expect(limitToDocumentIframeMediaPermissions(PERMISSIONS)).toEqual([+ documentPermission,+ ]);+ });});diff --git a/packages/twenty-front/src/modules/media-access/utils/limitToDocumentIframeMediaPermissions.ts b/packages/twenty-front/src/modules/media-access/utils/limitToDocumentIframeMediaPermissions.tsindex 0f2884b2cf9..613259a5bc8 100644--- a/packages/twenty-front/src/modules/media-access/utils/limitToDocumentIframeMediaPermissions.ts+++ b/packages/twenty-front/src/modules/media-access/utils/limitToDocumentIframeMediaPermissions.ts@@ -1,7 +1,9 @@import { getDocumentIframeMediaPermissions } from '@/media-access/utils/getDocumentIframeMediaPermissions';-import { intersectIframeMediaPermissions } from '@/media-access/utils/intersectIframeMediaPermissions';import { type IframeMediaPermission } from 'twenty-shared/types';-import { isDefined } from 'twenty-shared/utils';+import {+ intersectIframeMediaPermissions,+ isDefined,+} from 'twenty-shared/utils';export const limitToDocumentIframeMediaPermissions = (permissions: readonly IframeMediaPermission[],diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant.tsindex 1ba15ded38d..9073be1dc58 100644--- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant.ts+++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant.ts@@ -4,6 +4,8 @@ export const CUSTOM_WORKSPACE_APPLICATION_MOCK = {id: 'dc75f982-35a2-4c1b-a63d-bd1131215377',agents: [],applicationVariables: [],+ grantedIframeMediaPermissions: [],+ requestedIframeMediaPermissions: [],frontComponents: [],commandMenuItems: [],settingsMenuItems: [],diff --git a/packages/twenty-front/src/modules/page-layout/widgets/iframe/components/IframeWidget.tsx b/packages/twenty-front/src/modules/page-layout/widgets/iframe/components/IframeWidget.tsxindex 5c46445af21..87fcc5aaaee 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/iframe/components/IframeWidget.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/iframe/components/IframeWidget.tsx@@ -1,16 +1,19 @@import { ManagedIframe } from '@/media-access/components/ManagedIframe';import { useWorkspaceIframeMediaPermissions } from '@/media-access/hooks/useWorkspaceIframeMediaPermissions';+import { limitToDocumentIframeMediaPermissions } from '@/media-access/utils/limitToDocumentIframeMediaPermissions';import { useGetIsMetadataItemCustom } from '@/object-metadata/hooks/useGetIsMetadataItemCustom';import { useIsPageLayoutInEditMode } from '@/page-layout/hooks/useIsPageLayoutInEditMode';import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';import { PageLayoutWidgetNoDataDisplay } from '@/page-layout/widgets/components/PageLayoutWidgetNoDataDisplay';import { WidgetSkeletonLoader } from '@/page-layout/widgets/components/WidgetSkeletonLoader';+import { useQuery } from '@apollo/client/react';import { styled } from '@linaria/react';import { useState } from 'react';import { MEDIA_CAPABILITIES } from 'twenty-shared/constants';import { getSafeUrl, isDefined, isHttpUrl } from 'twenty-shared/utils';import { doNotTranslate } from 'twenty-shared/i18n';import { themeCssVariables } from 'twenty-ui/theme';+import { GetIframeWidgetMediaPermissionsDocument } from '~/generated-metadata/graphql';const StyledContainer = styled.div<{ $isEditMode: boolean }>`background: ${themeCssVariables.background.primary};@@ -62,9 +65,32 @@ type IframeWidgetProps = {export const IframeWidget = ({ widget }: IframeWidgetProps) => {const isPageLayoutInEditMode = useIsPageLayoutInEditMode();- const iframeMediaPermissions = useWorkspaceIframeMediaPermissions();+ const workspaceIframeMediaPermissions = useWorkspaceIframeMediaPermissions();const getIsMetadataItemCustom = useGetIsMetadataItemCustom();const isWorkspaceWidget = getIsMetadataItemCustom(widget);+ const { data, error } = useQuery(GetIframeWidgetMediaPermissionsDocument, {+ variables: { id: widget.id },+ skip: isWorkspaceWidget,+ fetchPolicy: 'cache-and-network',+ });+ const applicationWidget = data?.getPageLayoutWidget;+ const hasMatchingApplication =+ !isDefined(error) &&+ applicationWidget?.id === widget.id &&+ applicationWidget?.applicationId === widget.applicationId;+ const applicationIframeMediaPermissions =+ applicationWidget?.applicationGrantedIframeMediaPermissions ?? [];+ const matchingApplicationIframeMediaPermissions = hasMatchingApplication+ ? applicationIframeMediaPermissions+ : [];+ const iframeMediaPermissions = isWorkspaceWidget+ ? workspaceIframeMediaPermissions+ : limitToDocumentIframeMediaPermissions(+ matchingApplicationIframeMediaPermissions,+ );+ const applicationName = hasMatchingApplication+ ? (applicationWidget?.applicationName ?? widget.title)+ : widget.title;const configuration = widget.configuration;@@ -111,9 +137,17 @@ export const IframeWidget = ({ widget }: IframeWidgetProps) => {)}<StyledIframe$isEditMode={isPageLayoutInEditMode}- owner={{ type: 'workspace-widget', id: widget.id, name: title }}+ owner={+ isWorkspaceWidget+ ? { type: 'workspace-widget', id: widget.id, name: title }+ : {+ type: 'application',+ id: widget.applicationId,+ name: applicationName,+ }+ }iframeMediaPermissions={iframeMediaPermissions}- requestedMediaCapabilities={isWorkspaceWidget ? MEDIA_CAPABILITIES : []}+ requestedMediaCapabilities={MEDIA_CAPABILITIES}src={safeUrl}title={title}onLoad={handleIframeLoad}diff --git a/packages/twenty-front/src/modules/page-layout/widgets/iframe/components/__stories__/IframeWidget.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/iframe/components/__stories__/IframeWidget.stories.tsxnew file mode 100644index 00000000000..1f36f3bafe3--- /dev/null+++ b/packages/twenty-front/src/modules/page-layout/widgets/iframe/components/__stories__/IframeWidget.stories.tsx@@ -0,0 +1,253 @@+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';+import { MediaAccessIndicator } from '@/media-access/components/MediaAccessIndicator';+import { PageLayoutEditModeProviderContext } from '@/page-layout/contexts/PageLayoutEditModeContext';+import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';+import { IframeWidget } from '@/page-layout/widgets/iframe/components/IframeWidget';+import { type Meta, type StoryObj } from '@storybook/react-vite';+import { createStore, Provider } from 'jotai';+import { graphql, HttpResponse } from 'msw';+import { useState } from 'react';+import {+ expect,+ fn,+ mocked,+ spyOn,+ userEvent,+ waitFor,+ within,+} from 'storybook/test';+import { IFRAME_MEDIA_PERMISSIONS_BOOTSTRAP_ELEMENT_ID } from 'twenty-shared/constants';+import { ComponentDecorator } from 'twenty-ui/testing';+import {+ GetIframeWidgetMediaPermissionsDocument,+ type GetIframeWidgetMediaPermissionsQuery,+ type GetIframeWidgetMediaPermissionsQueryVariables,+ PageLayoutTabLayoutMode,+ WidgetConfigurationType,+ WidgetType,+} from '~/generated-metadata/graphql';+import { RootDecorator } from '~/testing/decorators/RootDecorator';+import { mockCurrentWorkspace } from '~/testing/mock-data/users';+import { mockedApolloClient } from '~/testing/mockedApolloClient';++const APPLICATION_ID = 'phone-application';+const APPLICATION_NAME = 'Phone app';+const WORKSPACE_APPLICATION_ID = 'workspace-custom-application';+const APP_WIDGET_ID = 'app-phone-widget';+const FOREIGN_ORIGIN_WIDGET_ID = 'app-workspace-origin-widget';+const WORKSPACE_WIDGET_ID = 'workspace-phone-widget';+const WIDGET_TITLE = 'Phone widget';+const APPLICATION_PERMISSION = {+ origin: 'https://example.com',+ microphone: true,+ camera: false,+};+const WORKSPACE_PERMISSION = {+ origin: 'https://workspace.example.com',+ microphone: true,+ camera: false,+};+const permissionRequest = fn();++type IframeWidgetStoryProps = {+ widgetId: string;+ applicationId: string;+ url: string;+};++const IframeWidgetStory = ({+ widgetId,+ applicationId,+ url,+}: IframeWidgetStoryProps) => {+ const [store] = useState(() => {+ const storyStore = createStore();++ storyStore.set(currentWorkspaceState.atom, {+ ...mockCurrentWorkspace,+ workspaceCustomApplication: { id: WORKSPACE_APPLICATION_ID },+ iframeMediaPermissions: [WORKSPACE_PERMISSION],+ });++ return storyStore;+ });+ const widget: PageLayoutWidget = {+ __typename: 'PageLayoutWidget',+ id: widgetId,+ applicationId,+ universalIdentifier: widgetId,+ pageLayoutTabId: 'phone-tab',+ title: WIDGET_TITLE,+ type: WidgetType.IFRAME,+ configuration: {+ __typename: 'IframeConfiguration',+ configurationType: WidgetConfigurationType.IFRAME,+ url,+ },+ position: {+ __typename: 'PageLayoutWidgetGridPosition',+ layoutMode: PageLayoutTabLayoutMode.GRID,+ row: 0,+ column: 0,+ rowSpan: 4,+ columnSpan: 4,+ },+ isActive: true,+ isSystemSideEffect: false,+ createdAt: '2026-11-02T00:00:00.000Z',+ updatedAt: '2026-11-02T00:00:00.000Z',+ deletedAt: null,+ };++ return (+ <Provider store={store}>+ <script+ id={IFRAME_MEDIA_PERMISSIONS_BOOTSTRAP_ELEMENT_ID}+ type="application/json"+ >+ {JSON.stringify([APPLICATION_PERMISSION, WORKSPACE_PERMISSION])}+ </script>+ <PageLayoutEditModeProviderContext value={{ isInEditMode: false }}>+ <MediaAccessIndicator />+ <div style={{ width: 500, height: 250 }}>+ <IframeWidget widget={widget} />+ </div>+ </PageLayoutEditModeProviderContext>+ </Provider>+ );+};++const meta: Meta<typeof IframeWidgetStory> = {+ title: 'Modules/PageLayout/Widgets/IframeWidget',+ component: IframeWidgetStory,+ decorators: [RootDecorator, ComponentDecorator],+ args: {+ widgetId: APP_WIDGET_ID,+ applicationId: APPLICATION_ID,+ url: APPLICATION_PERMISSION.origin,+ },+ beforeEach: () => {+ permissionRequest.mockClear();+ const confirm = spyOn(window, 'confirm').mockReturnValue(true);++ return () => confirm.mockRestore();+ },+ parameters: {+ msw: {+ handlers: [+ graphql.query<+ GetIframeWidgetMediaPermissionsQuery,+ GetIframeWidgetMediaPermissionsQueryVariables+ >('GetIframeWidgetMediaPermissions', ({ variables }) => {+ permissionRequest(variables);++ return HttpResponse.json({+ data: {+ getPageLayoutWidget: {+ __typename: 'PageLayoutWidget',+ id: variables.id,+ applicationId: APPLICATION_ID,+ applicationName: APPLICATION_NAME,+ applicationGrantedIframeMediaPermissions: [+ {+ __typename: 'IframeMediaPermission',+ ...APPLICATION_PERMISSION,+ },+ ],+ },+ },+ });+ }),+ ],+ },+ },+};++export default meta;++type Story = StoryObj<typeof IframeWidgetStory>;++export const ConfirmsOwningApplicationAccess: Story = {+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);+ const initialFrame = canvas.getByTitle(WIDGET_TITLE);+ const confirm = mocked(window.confirm).mockReturnValueOnce(false);++ await userEvent.click(+ await canvas.findByRole('button', { name: 'Enable microphone' }),+ );++ await expect(confirm).toHaveBeenCalledTimes(1);+ await expect(confirm).toHaveBeenLastCalledWith(+ `Enable media access for ${APPLICATION_NAME}?\nEnable microphone\n${APPLICATION_PERMISSION.origin}`,+ );+ await expect(canvas.getByTitle(WIDGET_TITLE)).toBe(initialFrame);+ await expect(initialFrame).toHaveAttribute(+ 'allow',+ "microphone 'none'; camera 'none'; encrypted-media",+ );++ await userEvent.click(+ await canvas.findByRole('button', { name: 'Enable microphone' }),+ );++ await expect(confirm).toHaveBeenCalledTimes(2);+ await expect(canvas.getByTitle(WIDGET_TITLE)).not.toBe(initialFrame);+ await expect(canvas.getByTitle(WIDGET_TITLE)).toHaveAttribute(+ 'allow',+ `microphone ${APPLICATION_PERMISSION.origin}; camera 'none'; encrypted-media`,+ );+ },+};++export const DoesNotInheritWorkspaceGrants: Story = {+ args: {+ widgetId: FOREIGN_ORIGIN_WIDGET_ID,+ url: WORKSPACE_PERMISSION.origin,+ },+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);++ await waitFor(() =>+ expect(+ mockedApolloClient.cache.readQuery({+ query: GetIframeWidgetMediaPermissionsDocument,+ variables: { id: FOREIGN_ORIGIN_WIDGET_ID },+ })?.getPageLayoutWidget?.applicationName,+ ).toBe(APPLICATION_NAME),+ );+ await expect(+ canvas.queryByRole('button', { name: 'Enable microphone' }),+ ).not.toBeInTheDocument();+ await expect(canvas.getByTitle(WIDGET_TITLE)).toHaveAttribute(+ 'allow',+ "microphone 'none'; camera 'none'; encrypted-media",+ );+ await expect(window.confirm).not.toHaveBeenCalled();+ },+};++export const WorkspaceWidgetUsesWorkspaceGrants: Story = {+ args: {+ widgetId: WORKSPACE_WIDGET_ID,+ applicationId: WORKSPACE_APPLICATION_ID,+ url: WORKSPACE_PERMISSION.origin,+ },+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);++ await userEvent.click(+ await canvas.findByRole('button', { name: 'Enable microphone' }),+ );++ await expect(window.confirm).toHaveBeenCalledTimes(1);+ await expect(window.confirm).toHaveBeenLastCalledWith(+ `Enable media access for ${WIDGET_TITLE}?\nEnable microphone\n${WORKSPACE_PERMISSION.origin}`,+ );+ await expect(canvas.getByTitle(WIDGET_TITLE)).toHaveAttribute(+ 'allow',+ `microphone ${WORKSPACE_PERMISSION.origin}; camera 'none'; encrypted-media`,+ );+ await expect(permissionRequest).not.toHaveBeenCalled();+ },+};diff --git a/packages/twenty-front/src/modules/page-layout/widgets/iframe/graphql/queries/getIframeWidgetMediaPermissions.ts b/packages/twenty-front/src/modules/page-layout/widgets/iframe/graphql/queries/getIframeWidgetMediaPermissions.tsnew file mode 100644index 00000000000..295d2b6f828--- /dev/null+++ b/packages/twenty-front/src/modules/page-layout/widgets/iframe/graphql/queries/getIframeWidgetMediaPermissions.ts@@ -0,0 +1,16 @@+import { gql } from '@apollo/client';++export const GET_IFRAME_WIDGET_MEDIA_PERMISSIONS = gql`+ query GetIframeWidgetMediaPermissions($id: String!) {+ getPageLayoutWidget(id: $id) {+ id+ applicationId+ applicationName+ applicationGrantedIframeMediaPermissions {+ origin+ microphone+ camera+ }+ }+ }+`;diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationIframeMediaPermissionsSection.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationIframeMediaPermissionsSection.tsxnew file mode 100644index 00000000000..54bf01d3ece--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationIframeMediaPermissionsSection.tsx@@ -0,0 +1,130 @@+import { getToastOptionsFromError } from '@/error-handler/utils/getToastOptionsFromError';+import { buildApplicationIframeMediaPermissionSummary } from '@/marketplace/utils/buildApplicationIframeMediaPermissionSummary';+import { getPendingApplicationIframeMediaPermissions } from '@/settings/applications/utils/getPendingApplicationIframeMediaPermissions';+import { useApolloClient, useMutation } from '@apollo/client/react';+import { styled } from '@linaria/react';+import { t } from '@lingui/core/macro';+import { useState } from 'react';+import { type IframeMediaPermission } from 'twenty-shared/types';+import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';+import { useToast } from 'twenty-ui/components/feedback';+import { Section } from 'twenty-ui/components/layout';+import { Button } from 'twenty-ui/primitives/input';+import { Text } from 'twenty-ui/primitives/typography';+import { themeCssVariables } from 'twenty-ui/theme';+import {+ ApproveApplicationIframeMediaPermissionsDocument,+ FindOneApplicationDocument,+} from '~/generated-metadata/graphql';++type SettingsApplicationIframeMediaPermissionsSectionProps = {+ applicationId: string;+ applicationName: string;+ requestedPermissions: readonly IframeMediaPermission[];+ grantedPermissions: readonly IframeMediaPermission[];+};++const StyledContent = styled.div`+ display: flex;+ flex-direction: column;+ gap: ${themeCssVariables.spacing[4]};+`;++export const SettingsApplicationIframeMediaPermissionsSection = ({+ applicationId,+ applicationName,+ requestedPermissions,+ grantedPermissions,+}: SettingsApplicationIframeMediaPermissionsSectionProps) => {+ const { enqueueToast } = useToast();+ const apolloClient = useApolloClient();+ const [hasSavedChanges, setHasSavedChanges] = useState(false);+ const [approvePermissions, { loading: isSaving }] = useMutation(+ ApproveApplicationIframeMediaPermissionsDocument,+ );+ const pendingPermissions = getPendingApplicationIframeMediaPermissions({+ requestedPermissions,+ grantedPermissions,+ });++ const refreshApplication = async () => {+ try {+ await apolloClient.query({+ query: FindOneApplicationDocument,+ variables: { id: applicationId },+ fetchPolicy: 'network-only',+ });+ } catch (error) {+ enqueueToast(getToastOptionsFromError({ error }));+ }+ };++ const reviewPermissions = async () => {+ const approvedPermissions = pendingPermissions;++ if (isSaving || !isNonEmptyArray(approvedPermissions)) {+ return;+ }++ const permissionSummary =+ buildApplicationIframeMediaPermissionSummary(approvedPermissions);+ const confirmationMessage = [+ t`Approve media access for ${applicationName}?`,+ t`This grants access to this app for everyone in your workspace.`,+ ...permissionSummary.map(({ label }) => label),+ ].join('\n');++ if (!window.confirm(confirmationMessage)) {+ return;+ }++ try {+ const { data } = await approvePermissions({+ variables: {+ applicationId,+ approvedIframeMediaPermissions: approvedPermissions,+ },+ });++ if (isDefined(data?.approveApplicationIframeMediaPermissions)) {+ setHasSavedChanges(true);+ }+ } catch (error) {+ enqueueToast(getToastOptionsFromError({ error }));+ await refreshApplication();+ }+ };++ if (!isNonEmptyArray(pendingPermissions) && !hasSavedChanges) {+ return null;+ }++ return (+ <Section.Root>+ <Section.Header+ title={t`Embedded website media access`}+ description={t`Review additional microphone or camera access requested by this app. Members still need to enable access and approve the browser permission.`}+ />+ <StyledContent>+ {isNonEmptyArray(pendingPermissions) && (+ <Button+ variant="outline"+ size="sm"+ onClick={reviewPermissions}+ disabled={isSaving}+ >{t`Review media access`}</Button>+ )}+ {hasSavedChanges && (+ <>+ <Text role="status">{t`Changes saved. Reload open Twenty tabs to apply the updated permissions. Reloading ends active calls and recordings.`}</Text>+ <Button+ variant="outline"+ size="sm"+ onClick={() => window.location.reload()}+ >{t`Reload page`}</Button>+ </>+ )}+ </StyledContent>+ </Section.Root>+ );+};diff --git a/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationIframeMediaPermissionsSection.stories.tsx b/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationIframeMediaPermissionsSection.stories.tsxnew file mode 100644index 00000000000..707d3aa4a2f--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationIframeMediaPermissionsSection.stories.tsx@@ -0,0 +1,276 @@+import { SettingsApplicationIframeMediaPermissionsSection } from '@/settings/applications/components/SettingsApplicationIframeMediaPermissionsSection';+import { type Meta, type StoryObj } from '@storybook/react-vite';+import { isArray } from '@sniptt/guards';+import { graphql, HttpResponse } from 'msw';+import { expect, fn, spyOn, userEvent, waitFor, within } from 'storybook/test';+import { Toaster } from 'twenty-ui/components/feedback';+import { ComponentDecorator } from 'twenty-ui/testing';+import { ToastDecorator } from '~/testing/decorators/ToastDecorator';+import { mockedApolloClient } from '~/testing/mockedApolloClient';+import {+ type ApproveApplicationIframeMediaPermissionsMutation,+ type ApproveApplicationIframeMediaPermissionsMutationVariables,+ type FindOneApplicationQuery,+ type FindOneApplicationQueryVariables,+} from '~/generated-metadata/graphql';++const APPLICATION_ID = '20202020-6a7b-4c3d-8e4f-000000000001';+const PHONE_ORIGIN = 'https://phone.example.com';+const VIDEO_ORIGIN = 'https://video.example.com';+const CONFIRMATION_MESSAGE =+ 'Approve media access for Recorder?\nThis grants access to this app for everyone in your workspace.\nLet phone.example.com use your camera\nLet video.example.com use your microphone and camera';+const approveRequest = fn();+const refetchApplicationRequest = fn();++const APPROVED_PERMISSIONS = [+ { origin: PHONE_ORIGIN, microphone: false, camera: true },+ { origin: VIDEO_ORIGIN, microphone: true, camera: true },+];++const REFRESHED_APPLICATION: FindOneApplicationQuery['findOneApplication'] = {+ __typename: 'Application',+ id: APPLICATION_ID,+ name: 'Recorder',+ description: null,+ logoUrl: null,+ version: '1.1.0',+ universalIdentifier: APPLICATION_ID,+ applicationRegistrationId: null,+ applicationRegistration: null,+ canBeUninstalled: true,+ isUninstallBlockedByOtherWorkspaceInstallations: false,+ autoUpgrade: false,+ createdAt: '2026-11-02T00:00:00.000Z',+ defaultRoleId: null,+ settingsCustomTabFrontComponentId: null,+ healthCheckLogicFunctionId: null,+ availablePackages: {},+ requestedIframeMediaPermissions: [+ {+ __typename: 'IframeMediaPermission',+ origin: VIDEO_ORIGIN,+ microphone: true,+ camera: false,+ },+ ],+ grantedIframeMediaPermissions: [],+ applicationVariables: [],+ agents: [],+ frontComponents: [],+ commandMenuItems: [],+ settingsMenuItems: [],+ objects: [],+ logicFunctions: [],+};++const refetchApplicationHandler = graphql.query<+ FindOneApplicationQuery,+ FindOneApplicationQueryVariables+>('FindOneApplication', ({ variables }) => {+ refetchApplicationRequest(variables);++ return HttpResponse.json({+ data: { findOneApplication: REFRESHED_APPLICATION },+ });+});++const rejectedApprovalHandler = graphql.mutation(+ 'ApproveApplicationIframeMediaPermissions',+ () =>+ HttpResponse.json({+ errors: [+ {+ message: 'Application permissions changed. Review them again.',+ },+ ],+ }),+);++const meta: Meta<typeof SettingsApplicationIframeMediaPermissionsSection> = {+ title:+ 'Modules/Settings/Applications/SettingsApplicationIframeMediaPermissionsSection',+ component: SettingsApplicationIframeMediaPermissionsSection,+ decorators: [ToastDecorator, ComponentDecorator],+ args: {+ applicationId: APPLICATION_ID,+ applicationName: 'Recorder',+ requestedPermissions: [+ { origin: PHONE_ORIGIN, microphone: true, camera: true },+ { origin: VIDEO_ORIGIN, microphone: true, camera: true },+ ],+ grantedPermissions: [+ { origin: PHONE_ORIGIN, microphone: true, camera: false },+ ],+ },+ beforeEach: async () => {+ approveRequest.mockClear();+ refetchApplicationRequest.mockClear();+ await mockedApolloClient.clearStore();+ },+ parameters: {+ msw: {+ handlers: [+ refetchApplicationHandler,+ graphql.mutation<+ ApproveApplicationIframeMediaPermissionsMutation,+ ApproveApplicationIframeMediaPermissionsMutationVariables+ >('ApproveApplicationIframeMediaPermissions', ({ variables }) => {+ approveRequest(variables);+ const approvedPermissions = isArray(+ variables.approvedIframeMediaPermissions,+ )+ ? variables.approvedIframeMediaPermissions+ : [variables.approvedIframeMediaPermissions];++ return HttpResponse.json({+ data: {+ approveApplicationIframeMediaPermissions: {+ __typename: 'Application',+ id: APPLICATION_ID,+ grantedIframeMediaPermissions: approvedPermissions.map(+ (permission) => ({+ __typename: 'IframeMediaPermission',+ ...permission,+ }),+ ),+ },+ },+ });+ }),+ ],+ },+ },+};++export default meta;++type Story = StoryObj<typeof meta>;++export const ApprovesOnlyReviewedAdditionalAccess: Story = {+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);+ const reviewButton = canvas.getByRole('button', {+ name: 'Review media access',+ });+ const confirm = spyOn(window, 'confirm')+ .mockReturnValueOnce(false)+ .mockReturnValue(true);++ try {+ await userEvent.click(reviewButton);++ expect(confirm).toHaveBeenCalledTimes(1);+ expect(confirm).toHaveBeenLastCalledWith(CONFIRMATION_MESSAGE);+ expect(approveRequest).not.toHaveBeenCalled();++ await userEvent.click(reviewButton);++ expect(confirm).toHaveBeenCalledTimes(2);+ expect(confirm).toHaveBeenLastCalledWith(CONFIRMATION_MESSAGE);+ await waitFor(() => {+ expect(approveRequest).toHaveBeenCalledTimes(1);+ expect(approveRequest).toHaveBeenLastCalledWith({+ applicationId: APPLICATION_ID,+ approvedIframeMediaPermissions: APPROVED_PERMISSIONS,+ });+ });+ expect(await canvas.findByRole('status')).toHaveTextContent(+ 'Reloading ends active calls and recordings.',+ );+ expect(canvas.getByRole('button', { name: 'Reload page' })).toBeVisible();+ expect(refetchApplicationRequest).not.toHaveBeenCalled();+ } finally {+ confirm.mockRestore();+ }+ },+};++export const DoesNotApplyRejectedApproval: Story = {+ parameters: {+ msw: {+ handlers: [rejectedApprovalHandler, refetchApplicationHandler],+ },+ },+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);+ const confirm = spyOn(window, 'confirm').mockReturnValue(true);++ try {+ await userEvent.click(+ canvas.getByRole('button', { name: 'Review media access' }),+ );++ expect(confirm).toHaveBeenCalledWith(CONFIRMATION_MESSAGE);+ await waitFor(() => {+ expect(refetchApplicationRequest).toHaveBeenCalledTimes(1);+ expect(refetchApplicationRequest).toHaveBeenLastCalledWith({+ id: APPLICATION_ID,+ });+ });+ expect(+ canvas.queryByRole('button', { name: 'Reload page' }),+ ).not.toBeInTheDocument();+ expect(+ canvas.getByRole('button', { name: 'Review media access' }),+ ).toBeEnabled();+ } finally {+ confirm.mockRestore();+ }+ },+};++export const ReportsFailedRefresh: Story = {+ decorators: [+ (Story) => (+ <>+ <Story />+ <Toaster getToastProps={() => ({ progress: 100 })} />+ </>+ ),+ ],+ parameters: {+ msw: {+ handlers: [+ rejectedApprovalHandler,+ graphql.query('FindOneApplication', ({ variables }) => {+ refetchApplicationRequest(variables);++ return HttpResponse.json({+ errors: [+ {+ message: 'Application refresh failed.',+ extensions: {+ userFriendlyMessage: 'Application refresh failed.',+ },+ },+ ],+ });+ }),+ ],+ },+ },+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);+ const body = within(canvasElement.ownerDocument.body);+ const confirm = spyOn(window, 'confirm').mockReturnValue(true);++ try {+ await userEvent.click(+ canvas.getByRole('button', { name: 'Review media access' }),+ );++ expect(+ await body.findByText('Application refresh failed.'),+ ).toBeVisible();+ expect(refetchApplicationRequest).toHaveBeenCalledTimes(1);+ expect(refetchApplicationRequest).toHaveBeenLastCalledWith({+ id: APPLICATION_ID,+ });+ expect(+ canvas.queryByRole('button', { name: 'Reload page' }),+ ).not.toBeInTheDocument();+ } finally {+ confirm.mockRestore();+ }+ },+};diff --git a/packages/twenty-front/src/modules/settings/applications/graphql/mutations/approveApplicationIframeMediaPermissions.ts b/packages/twenty-front/src/modules/settings/applications/graphql/mutations/approveApplicationIframeMediaPermissions.tsnew file mode 100644index 00000000000..11698f3a024--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/graphql/mutations/approveApplicationIframeMediaPermissions.ts@@ -0,0 +1,20 @@+import { gql } from '@apollo/client';++export const APPROVE_APPLICATION_IFRAME_MEDIA_PERMISSIONS = gql`+ mutation ApproveApplicationIframeMediaPermissions(+ $applicationId: UUID!+ $approvedIframeMediaPermissions: [IframeMediaPermissionInput!]!+ ) {+ approveApplicationIframeMediaPermissions(+ applicationId: $applicationId+ approvedIframeMediaPermissions: $approvedIframeMediaPermissions+ ) {+ id+ grantedIframeMediaPermissions {+ origin+ microphone+ camera+ }+ }+ }+`;diff --git a/packages/twenty-front/src/modules/settings/applications/utils/__tests__/getPendingApplicationIframeMediaPermissions.test.ts b/packages/twenty-front/src/modules/settings/applications/utils/__tests__/getPendingApplicationIframeMediaPermissions.test.tsnew file mode 100644index 00000000000..3a3818c2443--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/utils/__tests__/getPendingApplicationIframeMediaPermissions.test.ts@@ -0,0 +1,60 @@+import { getPendingApplicationIframeMediaPermissions } from '@/settings/applications/utils/getPendingApplicationIframeMediaPermissions';++describe('getPendingApplicationIframeMediaPermissions', () => {+ it('includes new origins and additional devices without repeating existing grants', () => {+ expect(+ getPendingApplicationIframeMediaPermissions({+ requestedPermissions: [+ {+ origin: 'https://phone.example.com',+ microphone: true,+ camera: true,+ },+ {+ origin: 'https://video.example.com',+ microphone: true,+ camera: true,+ },+ ],+ grantedPermissions: [+ {+ origin: 'https://phone.example.com',+ microphone: true,+ camera: false,+ },+ {+ origin: 'https://removed.example.com',+ microphone: true,+ camera: true,+ },+ ],+ }),+ ).toEqual([+ {+ origin: 'https://phone.example.com',+ microphone: false,+ camera: true,+ },+ {+ origin: 'https://video.example.com',+ microphone: true,+ camera: true,+ },+ ]);+ });++ it('has no pending permissions when all requested devices are already granted', () => {+ const permission = {+ origin: 'https://phone.example.com',+ microphone: true,+ camera: false,+ };++ expect(+ getPendingApplicationIframeMediaPermissions({+ requestedPermissions: [permission],+ grantedPermissions: [permission],+ }),+ ).toEqual([]);+ });+});diff --git a/packages/twenty-front/src/modules/settings/applications/utils/getPendingApplicationIframeMediaPermissions.ts b/packages/twenty-front/src/modules/settings/applications/utils/getPendingApplicationIframeMediaPermissions.tsnew file mode 100644index 00000000000..f63b81a676e--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/utils/getPendingApplicationIframeMediaPermissions.ts@@ -0,0 +1,26 @@+import { type IframeMediaPermission } from 'twenty-shared/types';++export const getPendingApplicationIframeMediaPermissions = ({+ requestedPermissions,+ grantedPermissions,+}: {+ requestedPermissions: readonly IframeMediaPermission[];+ grantedPermissions: readonly IframeMediaPermission[];+}): IframeMediaPermission[] =>+ requestedPermissions.flatMap(({ origin, microphone, camera }) => {+ const grantedPermission = grantedPermissions.find(+ (permission) => permission.origin === origin,+ );+ const isMicrophonePending = microphone && !grantedPermission?.microphone;+ const isCameraPending = camera && !grantedPermission?.camera;++ return isMicrophonePending || isCameraPending+ ? [+ {+ origin,+ microphone: isMicrophonePending,+ camera: isCameraPending,+ },+ ]+ : [];+ });diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsxindex 8ad910ee1f4..4acb47d88f6 100644--- a/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx+++ b/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx@@ -271,6 +271,9 @@ export const SettingsAvailableApplicationDetails = () => {defaultRole={defaultRole}appObjects={detail?.objects ?? undefined}requestedCapabilities={detail?.requestedCapabilities}+ requestedIframeMediaPermissions={+ detail?.requestedIframeMediaPermissions+ }billsCredits={detail?.billsCredits}isListed={detail?.isListed}onAuthorize={install}diff --git a/packages/twenty-front/src/pages/settings/applications/__stories__/SettingsApplicationDetails.stories.tsx b/packages/twenty-front/src/pages/settings/applications/__stories__/SettingsApplicationDetails.stories.tsxindex 05e5c63d409..499f996dab9 100644--- a/packages/twenty-front/src/pages/settings/applications/__stories__/SettingsApplicationDetails.stories.tsx+++ b/packages/twenty-front/src/pages/settings/applications/__stories__/SettingsApplicationDetails.stories.tsx@@ -131,6 +131,7 @@ const MARKETPLACE_APP_DETAIL: FindMarketplaceAppDetailQuery['findMarketplaceAppDinstallCount: 12,defaultRoleUniversalIdentifier: null,requestedCapabilities: [],+ requestedIframeMediaPermissions: [],billsCredits: false,objects: [],roles: [],@@ -163,6 +164,8 @@ const buildApplicationHandlers = ({settingsCustomTabFrontComponentId: null,healthCheckLogicFunctionId: null,availablePackages: {},+ requestedIframeMediaPermissions: [],+ grantedIframeMediaPermissions: [],applicationVariables: [USER_VARIABLE, buildWorkspaceVariable()],agents: [],frontComponents: [],diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationShareLinkButtons.tsx b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationShareLinkButtons.tsxindex 429b6a415fe..ff8098a9479 100644--- a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationShareLinkButtons.tsx+++ b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationShareLinkButtons.tsx@@ -91,6 +91,9 @@ export const SettingsApplicationRegistrationShareLinkButtons = ({defaultRole={defaultRole}appObjects={detail?.objects ?? undefined}requestedCapabilities={detail?.requestedCapabilities}+ requestedIframeMediaPermissions={+ detail?.requestedIframeMediaPermissions+ }billsCredits={detail?.billsCredits}isListed={detail?.isListed}onAuthorize={install}diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailGeneralTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailGeneralTab.tsxindex ebaf28ffd0b..702db6da2d6 100644--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailGeneralTab.tsx+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailGeneralTab.tsx@@ -1,6 +1,7 @@import { formatQueueJobProgressLabel } from '@/queue-job/utils/formatQueueJobProgressLabel';import { SettingsApplicationOverviewCard } from '@/settings/applications/components/SettingsApplicationOverviewCard';import { SettingsApplicationUninstallButton } from '@/settings/applications/components/SettingsApplicationUninstallButton';+import { SettingsApplicationIframeMediaPermissionsSection } from '@/settings/applications/components/SettingsApplicationIframeMediaPermissionsSection';import { useHasPermissionFlag } from '@/settings/roles/hooks/useHasPermissionFlag';import { t } from '@lingui/core/macro';import { isNonEmptyString } from '@sniptt/guards';@@ -30,6 +31,8 @@ type SettingsApplicationDetailGeneralTabProps = {| 'isUninstallBlockedByOtherWorkspaceInstallations'| 'applicationRegistration'| 'logicFunctions'+ | 'requestedIframeMediaPermissions'+ | 'grantedIframeMediaPermissions'>;displayName: string;description?: string;@@ -154,6 +157,15 @@ export const SettingsApplicationDetailGeneralTab = ({autoUpgrade={application.autoUpgrade}/>)}+ {canManageApplications && (+ <SettingsApplicationIframeMediaPermissionsSection+ key={application.id}+ applicationId={application.id}+ applicationName={displayName}+ requestedPermissions={application.requestedIframeMediaPermissions}+ grantedPermissions={application.grantedIframeMediaPermissions}+ />+ )}{applicationHasHttpTriggeredFunctions(application) && (<SettingsApplicationFunctionDomainSectionapplicationId={application.id}diff --git a/packages/twenty-sdk/src/sdk/define/application/__tests__/define-app.spec.ts b/packages/twenty-sdk/src/sdk/define/application/__tests__/define-app.spec.tsindex 9f4e28f6ed8..444fb5f0852 100644--- a/packages/twenty-sdk/src/sdk/define/application/__tests__/define-app.spec.ts+++ b/packages/twenty-sdk/src/sdk/define/application/__tests__/define-app.spec.ts@@ -1,4 +1,5 @@import { MAX_RECURRING_CHARGE_MICRO_CREDITS_PER_UNIT } from 'twenty-shared/application';+import { MAX_ALLOWED_IFRAME_ORIGINS } from 'twenty-shared/constants';import { FieldMetadataType } from 'twenty-shared/types';import { defineApplication } from '@/sdk/define';@@ -470,6 +471,119 @@ describe('defineApplication', () => {);});+ it('should accept requested iframe media permissions for exact HTTPS origins', () => {+ const config = {+ universalIdentifier: 'a9faf5f8-cf7e-4f24-9d37-fd523c30febe',+ displayName: 'My App',+ description: 'My app description',+ requestedIframeMediaPermissions: [+ {+ origin: 'https://phone.example.com',+ microphone: true,+ camera: false,+ },+ { origin: 'https://video.example.com', microphone: true, camera: true },+ ],+ };++ const result = defineApplication(config);++ expect(result.success).toBe(true);+ expect(result.config?.requestedIframeMediaPermissions).toEqual(+ config.requestedIframeMediaPermissions,+ );+ });++ it.each([+ 'http://phone.example.com',+ 'https://phone.example.com/',+ 'https://phone.example.com/calls',+ 'https://*.example.com',+ ])(+ 'should return error when a requested iframe media origin is %p',+ (origin) => {+ const result = defineApplication({+ universalIdentifier: 'a9faf5f8-cf7e-4f24-9d37-fd523c30febe',+ displayName: 'My App',+ description: 'My app description',+ requestedIframeMediaPermissions: [+ { origin, microphone: true, camera: false },+ ],+ });++ expect(result.success).toBe(false);+ expect(result.errors).toContain(+ `Requested iframe media origin "${origin}" must be an exact HTTPS origin, such as https://example.com`,+ );+ },+ );++ it('should return error when a requested iframe media permission allows no media', () => {+ const result = defineApplication({+ universalIdentifier: 'a9faf5f8-cf7e-4f24-9d37-fd523c30febe',+ displayName: 'My App',+ description: 'My app description',+ requestedIframeMediaPermissions: [+ {+ origin: 'https://phone.example.com',+ microphone: false,+ camera: false,+ },+ ],+ });++ expect(result.success).toBe(false);+ expect(result.errors).toContain(+ 'Requested iframe media origin "https://phone.example.com" must allow the microphone, the camera, or both',+ );+ });++ it('should return error when a requested iframe media origin is declared twice', () => {+ const result = defineApplication({+ universalIdentifier: 'a9faf5f8-cf7e-4f24-9d37-fd523c30febe',+ displayName: 'My App',+ description: 'My app description',+ requestedIframeMediaPermissions: [+ {+ origin: 'https://phone.example.com',+ microphone: true,+ camera: false,+ },+ {+ origin: 'https://phone.example.com',+ microphone: false,+ camera: true,+ },+ ],+ });++ expect(result.success).toBe(false);+ expect(result.errors).toContain(+ 'Requested iframe media origin "https://phone.example.com" is declared more than once',+ );+ });++ it('should return error when an application requests too many iframe media origins', () => {+ const result = defineApplication({+ universalIdentifier: 'a9faf5f8-cf7e-4f24-9d37-fd523c30febe',+ displayName: 'My App',+ description: 'My app description',+ requestedIframeMediaPermissions: Array.from(+ { length: MAX_ALLOWED_IFRAME_ORIGINS + 1 },+ (_, index) => ({+ origin: `https://phone-${index}.example.com`,+ microphone: true,+ camera: false,+ }),+ ),+ });++ expect(result.success).toBe(false);+ expect(result.errors).toContain(+ `An application can request iframe media access for up to ${MAX_ALLOWED_IFRAME_ORIGINS} origins`,+ );+ });+it('should return error when universalIdentifier is missing', () => {const config = {displayName: 'My App',diff --git a/packages/twenty-sdk/src/sdk/define/application/define-application.ts b/packages/twenty-sdk/src/sdk/define/application/define-application.tsindex 4e879e0c40e..9d51b92454e 100644--- a/packages/twenty-sdk/src/sdk/define/application/define-application.ts+++ b/packages/twenty-sdk/src/sdk/define/application/define-application.ts@@ -12,8 +12,13 @@ import {RECURRING_CHARGE_UNITS,USAGE_OPERATION_TYPES,} from 'twenty-shared/application';+import { MAX_ALLOWED_IFRAME_ORIGINS } from 'twenty-shared/constants';import { FieldMetadataType } from 'twenty-shared/types';-import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';+import {+ isDefined,+ isNonEmptyArray,+ normalizeIframeOrigin,+} from 'twenty-shared/utils';import { type ApplicationConfig } from '@/sdk/define/application/application-config';import { normalizeApplicationAssets } from '@/sdk/define/application/utils/normalize-application-assets';@@ -166,6 +171,42 @@ export const defineApplication: DefineEntity<ApplicationConfig> = (config) => {}}+ const requestedIframeMediaPermissions =+ config.requestedIframeMediaPermissions ?? [];++ if (requestedIframeMediaPermissions.length > MAX_ALLOWED_IFRAME_ORIGINS) {+ errors.push(+ `An application can request iframe media access for up to ${MAX_ALLOWED_IFRAME_ORIGINS} origins`,+ );+ }++ const requestedIframeMediaOrigins = new Set<string>();++ for (const permission of requestedIframeMediaPermissions) {+ if (+ normalizeIframeOrigin(permission.origin, { isHttpsOnly: true }) !==+ permission.origin+ ) {+ errors.push(+ `Requested iframe media origin "${permission.origin}" must be an exact HTTPS origin, such as https://example.com`,+ );+ }++ if (!permission.microphone && !permission.camera) {+ errors.push(+ `Requested iframe media origin "${permission.origin}" must allow the microphone, the camera, or both`,+ );+ }++ if (requestedIframeMediaOrigins.has(permission.origin)) {+ errors.push(+ `Requested iframe media origin "${permission.origin}" is declared more than once`,+ );+ }++ requestedIframeMediaOrigins.add(permission.origin);+ }+if (config.defaultRoleUniversalIdentifier) {warnings.push('`defaultRoleUniversalIdentifier` on defineApplication() is deprecated. Use defineApplicationRole() in your role file instead.',diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-56/2-56-instance-command-fast-1793700975254-add-application-granted-iframe-media-permissions.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-56/2-56-instance-command-fast-1793700975254-add-application-granted-iframe-media-permissions.tsnew file mode 100644index 00000000000..d0d9f3b8680--- /dev/null+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-56/2-56-instance-command-fast-1793700975254-add-application-granted-iframe-media-permissions.ts@@ -0,0 +1,21 @@+import { type QueryRunner } from 'typeorm';++import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-instance-command.decorator';+import { type FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';++@RegisteredInstanceCommand('2.56.0', 1793700975254)+export class AddApplicationGrantedIframeMediaPermissionsFastInstanceCommand+ implements FastInstanceCommand+{+ public async up(queryRunner: QueryRunner): Promise<void> {+ await queryRunner.query(+ 'ALTER TABLE "core"."application" ADD COLUMN IF NOT EXISTS "grantedIframeMediaPermissions" jsonb NOT NULL DEFAULT \'[]\'',+ );+ }++ public async down(queryRunner: QueryRunner): Promise<void> {+ await queryRunner.query(+ 'ALTER TABLE "core"."application" DROP COLUMN "grantedIframeMediaPermissions"',+ );+ }+}diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.tsindex d94bf47dbce..3d845de25c0 100644--- a/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts@@ -280,6 +280,7 @@ import { IndexTemporaryFileExpirationSlowInstanceCommand } from 'src/database/coimport { EnableUserHealthCheckFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-55/2-55-instance-command-fast-1793473469981-enable-user-health-check';import { AddSettingsMenuItemSlugFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-55/2-55-instance-command-fast-1793618487873-add-settings-menu-item-slug';import { AddApplicationRoleTargetFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-55/2-55-instance-command-fast-1793627583457-add-application-role-target';+import { AddApplicationGrantedIframeMediaPermissionsFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-56/2-56-instance-command-fast-1793700975254-add-application-granted-iframe-media-permissions';export const INSTANCE_COMMANDS = [AddViewFieldGroupIdIndexOnViewFieldFastInstanceCommand,@@ -562,4 +563,5 @@ export const INSTANCE_COMMANDS = [EnableUserHealthCheckFastInstanceCommand,AddSettingsMenuItemSlugFastInstanceCommand,AddApplicationRoleTargetFastInstanceCommand,+ AddApplicationGrantedIframeMediaPermissionsFastInstanceCommand,];diff --git a/packages/twenty-server/src/engine/core-modules/application/application-install/application-iframe-media-permission.resolver.ts b/packages/twenty-server/src/engine/core-modules/application/application-install/application-iframe-media-permission.resolver.tsnew file mode 100644index 00000000000..d3a46128d8b--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/application-install/application-iframe-media-permission.resolver.ts@@ -0,0 +1,115 @@+import { UseFilters, UseGuards, UsePipes } from '@nestjs/common';+import { Args, Mutation, Parent, ResolveField } from '@nestjs/graphql';++import { PermissionFlagType } from 'twenty-shared/constants';+import { type IframeMediaPermission } from 'twenty-shared/types';+import { isDefined } from 'twenty-shared/utils';++import { MetadataResolver } from 'src/engine/api/graphql/graphql-config/decorators/metadata-resolver.decorator';+import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';+import { ApplicationExceptionFilter } from 'src/engine/core-modules/application/application-exception-filter';+import { ApplicationIframeMediaPermissionService } from 'src/engine/core-modules/application/application-install/application-iframe-media-permission.service';+import { type ApplicationEntity } from 'src/engine/core-modules/application/application.entity';+import { ApplicationService } from 'src/engine/core-modules/application/application.service';+import { ApplicationDTO } from 'src/engine/core-modules/application/dtos/application.dto';+import { IframeMediaPermissionInput } from 'src/engine/core-modules/application/dtos/iframe-media-permission.input';+import { type FlatApplication } from 'src/engine/core-modules/application/types/flat-application.type';+import { toIframeMediaPermissions } from 'src/engine/core-modules/application/utils/to-iframe-media-permissions.util';+import { AuthGraphqlApiExceptionFilter } from 'src/engine/core-modules/auth/filters/auth-graphql-api-exception.filter';+import { ResolverValidationPipe } from 'src/engine/core-modules/graphql/pipes/resolver-validation.pipe';+import { IframeMediaPermissionDTO } from 'src/engine/core-modules/workspace/dtos/iframe-media-permission.dto';+import { type WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';+import { AuthApplication } from 'src/engine/decorators/auth/auth-application.decorator';+import { AuthWorkspace } from 'src/engine/decorators/auth/auth-workspace.decorator';+import { AuthPrincipalGuard } from 'src/engine/guards/auth-principal.guard';+import { SettingsPermissionGuard } from 'src/engine/guards/settings-permission.guard';++@MetadataResolver(() => ApplicationDTO)+@UsePipes(ResolverValidationPipe)+@UseFilters(ApplicationExceptionFilter, AuthGraphqlApiExceptionFilter)+@UseGuards(+ AuthPrincipalGuard({+ userSession: {+ standard: true,+ impersonated: true,+ playground: false,+ workspaceAgnostic: false,+ },+ apiKey: false,+ oauthClient: false,+ application: false,+ }),+ SettingsPermissionGuard(PermissionFlagType.APPLICATIONS),+)+export class ApplicationIframeMediaPermissionResolver {+ constructor(+ private readonly applicationIframeMediaPermissionService: ApplicationIframeMediaPermissionService,+ private readonly applicationService: ApplicationService,+ ) {}++ @ResolveField(() => [IframeMediaPermissionDTO])+ async requestedIframeMediaPermissions(+ @Parent() application: Pick<ApplicationDTO, 'id'>,+ @AuthWorkspace()+ { id: workspaceId, workspaceCustomApplicationId }: WorkspaceEntity,+ @AuthApplication({ allowUndefined: true })+ callingApplication: FlatApplication | undefined,+ ): Promise<IframeMediaPermission[]> {+ const readableApplication =+ await this.applicationService.findReadableInstalledFlatApplication({+ applicationId: application.id,+ workspaceId,+ workspaceCustomApplicationId,+ callingApplication,+ });++ if (!isDefined(readableApplication)) {+ return [];+ }++ return this.applicationIframeMediaPermissionService.findRequestedPermissions(+ {+ universalIdentifier: readableApplication.universalIdentifier,+ workspaceId,+ },+ );+ }++ @ResolveField(() => [IframeMediaPermissionDTO])+ async grantedIframeMediaPermissions(+ @Parent() application: Pick<ApplicationDTO, 'id'>,+ @AuthWorkspace()+ { id: workspaceId, workspaceCustomApplicationId }: WorkspaceEntity,+ @AuthApplication({ allowUndefined: true })+ callingApplication: FlatApplication | undefined,+ ): Promise<IframeMediaPermission[]> {+ const readableApplication =+ await this.applicationService.findReadableInstalledFlatApplication({+ applicationId: application.id,+ workspaceId,+ workspaceCustomApplicationId,+ callingApplication,+ });++ return toIframeMediaPermissions(+ readableApplication?.grantedIframeMediaPermissions,+ );+ }++ @Mutation(() => ApplicationDTO)+ approveApplicationIframeMediaPermissions(+ @Args('applicationId', { type: () => UUIDScalarType })+ applicationId: string,+ @Args('approvedIframeMediaPermissions', {+ type: () => [IframeMediaPermissionInput],+ })+ approvedIframeMediaPermissions: IframeMediaPermissionInput[],+ @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,+ ): Promise<ApplicationEntity> {+ return this.applicationIframeMediaPermissionService.approve({+ applicationId,+ workspaceId,+ approvedIframeMediaPermissions,+ });+ }+}diff --git a/packages/twenty-server/src/engine/core-modules/application/application-install/application-iframe-media-permission.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-install/application-iframe-media-permission.service.tsnew file mode 100644index 00000000000..8cf32e96b98--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/application-install/application-iframe-media-permission.service.ts@@ -0,0 +1,109 @@+import { Injectable } from '@nestjs/common';++import { msg } from '@lingui/core/macro';+import { isObject } from '@sniptt/guards';+import isEqual from 'lodash.isequal';+import { FileFolder, type IframeMediaPermission } from 'twenty-shared/types';+import {+ intersectIframeMediaPermissions,+ parseJson,+} from 'twenty-shared/utils';++import { type ApplicationEntity } from 'src/engine/core-modules/application/application.entity';+import {+ ApplicationException,+ ApplicationExceptionCode,+} from 'src/engine/core-modules/application/application.exception';+import { ApplicationService } from 'src/engine/core-modules/application/application.service';+import { toRequestedIframeMediaPermissionsOrThrow } from 'src/engine/core-modules/application/utils/to-requested-iframe-media-permissions-or-throw.util';+import { FileStorageService } from 'src/engine/core-modules/file-storage/services/file-storage.service';+import { streamToBuffer } from 'src/utils/stream-to-buffer';++const APPLICATION_MANIFEST_FILE_NAME = 'manifest.json';++@Injectable()+export class ApplicationIframeMediaPermissionService {+ constructor(+ private readonly applicationService: ApplicationService,+ private readonly fileStorageService: FileStorageService,+ ) {}++ async findRequestedPermissions({+ universalIdentifier,+ workspaceId,+ }: Pick<ApplicationEntity, 'universalIdentifier' | 'workspaceId'>): Promise<+ IframeMediaPermission[]+ > {+ const resource = {+ fileFolder: FileFolder.Source,+ applicationUniversalIdentifier: universalIdentifier,+ workspaceId,+ resourcePath: APPLICATION_MANIFEST_FILE_NAME,+ };++ if (!(await this.fileStorageService.checkFileExists(resource))) {+ return [];+ }++ const manifestBuffer = await streamToBuffer(+ await this.fileStorageService.readFile(resource),+ );+ const manifest = parseJson<unknown>(manifestBuffer.toString());++ if (+ !isObject(manifest) ||+ !('application' in manifest) ||+ !isObject(manifest.application)+ ) {+ return [];+ }++ return toRequestedIframeMediaPermissionsOrThrow(+ 'requestedIframeMediaPermissions' in manifest.application+ ? manifest.application.requestedIframeMediaPermissions+ : undefined,+ );+ }++ async approve({+ applicationId,+ workspaceId,+ approvedIframeMediaPermissions,+ }: {+ applicationId: string;+ workspaceId: string;+ approvedIframeMediaPermissions: IframeMediaPermission[];+ }): Promise<ApplicationEntity> {+ const application = await this.applicationService.findOneApplicationOrThrow(+ {+ id: applicationId,+ workspaceId,+ },+ );+ const requestedPermissions =+ await this.findRequestedPermissions(application);+ const approvedPermissions = toRequestedIframeMediaPermissionsOrThrow(+ approvedIframeMediaPermissions,+ );+ const allowedPermissions = intersectIframeMediaPermissions({+ permissions: approvedPermissions,+ allowedPermissions: requestedPermissions,+ });++ if (!isEqual(approvedPermissions, allowedPermissions)) {+ throw new ApplicationException(+ 'Approved iframe media permissions are not requested by the installed application',+ ApplicationExceptionCode.INVALID_INPUT,+ {+ userFriendlyMessage: msg`The application's requested permissions have changed. Review them again before approving.`,+ },+ );+ }++ return this.applicationService.grantIframeMediaPermissions({+ applicationId,+ workspaceId,+ permissions: approvedPermissions,+ });+ }+}diff --git a/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.module.ts b/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.module.tsindex 68d03d01b26..5b644d4d351 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.module.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.module.ts@@ -11,6 +11,8 @@ import { ApplicationPackageModule } from 'src/engine/core-modules/application/apimport { MarketplaceModule } from 'src/engine/core-modules/application/application-marketplace/marketplace.module';import { ApplicationInstallResolver } from 'src/engine/core-modules/application/application-install/application-install.resolver';import { ApplicationCapabilityResolver } from 'src/engine/core-modules/application/application-install/application-capability.resolver';+import { ApplicationIframeMediaPermissionResolver } from 'src/engine/core-modules/application/application-install/application-iframe-media-permission.resolver';+import { ApplicationIframeMediaPermissionService } from 'src/engine/core-modules/application/application-install/application-iframe-media-permission.service';import { ApplicationInstallService } from 'src/engine/core-modules/application/application-install/application-install.service';import { InstallApplicationCommand } from 'src/engine/core-modules/application/application-install/commands/install-application.command';import { ApplicationLifecycleJobService } from 'src/engine/core-modules/application/application-install/services/application-lifecycle-job.service';@@ -48,6 +50,8 @@ import { ApplicationRegistrationVersionModule } from 'src/engine/core-modules/ap],providers: [ApplicationCapabilityResolver,+ ApplicationIframeMediaPermissionResolver,+ ApplicationIframeMediaPermissionService,ApplicationInstallResolver,ApplicationInstallService,ApplicationLifecycleJobService,diff --git a/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.service.tsindex c00149f3955..5cf843d4e9a 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.service.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.service.ts@@ -8,12 +8,16 @@ import {type ApplicationCapability,Manifest,} from 'twenty-shared/application';-import { FileFolder } from 'twenty-shared/types';-import { isDefined } from 'twenty-shared/utils';+import { FileFolder, type IframeMediaPermission } from 'twenty-shared/types';+import {+ intersectIframeMediaPermissions,+ isDefined,+} from 'twenty-shared/utils';import { Repository } from 'typeorm';import { buildApplicationFileList } from 'src/engine/core-modules/application/application-install/utils/build-application-file-list.util';import { toApplicationCapabilities } from 'src/engine/core-modules/application/utils/to-application-capabilities.util';+import { toRequestedIframeMediaPermissionsOrThrow } from 'src/engine/core-modules/application/utils/to-requested-iframe-media-permissions-or-throw.util';import { ApplicationManifestApplyService } from 'src/engine/core-modules/application/application-manifest/application-manifest-apply.service';import { ApplicationSyncService } from 'src/engine/core-modules/application/application-manifest/application-sync.service';import {@@ -409,6 +413,14 @@ export class ApplicationInstallService {const grantedCapabilities = toApplicationCapabilities(resolvedPackage.manifest.application.requestedCapabilities,).filter((capability) => approvedCapabilities.includes(capability));+ const grantedIframeMediaPermissions = intersectIframeMediaPermissions({+ permissions: toRequestedIframeMediaPermissionsOrThrow(+ resolvedPackage.manifest.application.requestedIframeMediaPermissions,+ ),+ allowedPermissions: toRequestedIframeMediaPermissionsOrThrow(+ appRegistration.manifest?.application?.requestedIframeMediaPermissions,+ ),+ });const shouldApplyApprovedCapabilities =params.hasUserApprovedCapabilities && isDefined(appRegistration.manifest);@@ -417,6 +429,7 @@ export class ApplicationInstallService {universalIdentifier,name: resolvedPackage.manifest.application.displayName,grantedCapabilities,+ grantedIframeMediaPermissions,workspaceId: params.workspaceId,applicationRegistrationId: appRegistration.id,sourceType: appRegistration.sourceType,@@ -469,6 +482,7 @@ export class ApplicationInstallService {if (isVersionUpgrade && shouldApplyApprovedCapabilities) {await this.applicationService.update(application.id, {grantedCapabilities,+ grantedIframeMediaPermissions,workspaceId: params.workspaceId,});}@@ -963,6 +977,7 @@ export class ApplicationInstallService {universalIdentifier,name,grantedCapabilities,+ grantedIframeMediaPermissions,workspaceId,applicationRegistrationId,sourceType,@@ -972,6 +987,7 @@ export class ApplicationInstallService {universalIdentifier: string;name: string;grantedCapabilities: ApplicationCapability[];+ grantedIframeMediaPermissions: IframeMediaPermission[];workspaceId: string;applicationRegistrationId: string;sourceType: ApplicationRegistrationSourceType;@@ -985,6 +1001,7 @@ export class ApplicationInstallService {universalIdentifier,name,grantedCapabilities,+ grantedIframeMediaPermissions,sourcePath: universalIdentifier,sourceType,applicationRegistrationId,diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/application-sync.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/application-sync.service.tsindex 6af8ef4d84f..24e47639ca3 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/application-sync.service.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/application-sync.service.ts@@ -14,7 +14,9 @@ import { type ApplicationLifecycleProgressReporter } from 'src/engine/core-modulimport { createApplicationLifecycleProgressReporter } from 'src/engine/core-modules/application/application-install/utils/create-application-lifecycle-progress-reporter.util';import { ApplicationRegistrationSourceType } from 'src/engine/core-modules/application/application-registration/enums/application-registration-source-type.enum';import { resolveSyncedApplicationCapabilities } from 'src/engine/core-modules/application/utils/resolve-synced-application-capabilities.util';+import { resolveSyncedApplicationIframeMediaPermissions } from 'src/engine/core-modules/application/utils/resolve-synced-application-iframe-media-permissions.util';import { toApplicationCapabilities } from 'src/engine/core-modules/application/utils/to-application-capabilities.util';+import { toRequestedIframeMediaPermissionsOrThrow } from 'src/engine/core-modules/application/utils/to-requested-iframe-media-permissions-or-throw.util';import { ApplicationManifestMigrationService } from 'src/engine/core-modules/application/application-manifest/application-manifest-migration.service';import { ApplicationUninstallService } from 'src/engine/core-modules/application/application-manifest/services/application-uninstall.service';import { enrichApplicationManifestSyncError } from 'src/engine/core-modules/application/application-manifest/utils/enrich-application-manifest-sync-error.util';@@ -88,6 +90,10 @@ export class ApplicationSyncService {);}+ toRequestedIframeMediaPermissionsOrThrow(+ manifest.application.requestedIframeMediaPermissions,+ );+const ownerFlatApplication: FlatApplication = dryRun? await this.resolveDryRunOwnerFlatApplication({ workspaceId, manifest }): await this.syncApplication({@@ -189,6 +195,9 @@ export class ApplicationSyncService {grantedCapabilities: toApplicationCapabilities(manifest.application.requestedCapabilities,),+ grantedIframeMediaPermissions: toRequestedIframeMediaPermissionsOrThrow(+ manifest.application.requestedIframeMediaPermissions,+ ),logicFunctionLayerId: null,defaultRoleId: null,defaultRole: null,@@ -300,6 +309,14 @@ export class ApplicationSyncService {grantedCapabilities: application.grantedCapabilities,requestedCapabilities: manifest.application.requestedCapabilities,}),+ grantedIframeMediaPermissions:+ resolveSyncedApplicationIframeMediaPermissions({+ sourceType: application.sourceType,+ grantedIframeMediaPermissions:+ application.grantedIframeMediaPermissions,+ requestedIframeMediaPermissions:+ manifest.application.requestedIframeMediaPermissions,+ }),frontComponentSharedDependenciesChecksum,frontComponentSharedDependenciesBuiltPath,applicationRegistrationId: resolvedRegistrationId,diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-flat-application-to-application-manifest.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-flat-application-to-application-manifest.util.spec.tsindex 5cd1280130b..bc11df5b06b 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-flat-application-to-application-manifest.util.spec.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-flat-application-to-application-manifest.util.spec.ts@@ -14,6 +14,7 @@ const buildFlatApplication = (logo: null,billing: {},grantedCapabilities: [],+ grantedIframeMediaPermissions: [],packageJsonChecksum: 'package-json-checksum',yarnLockChecksum: 'yarn-lock-checksum',...overrides,@@ -61,6 +62,23 @@ describe('fromFlatApplicationToApplicationManifest', () => {).toMatchObject({ requestedCapabilities: ['microphone', 'camera'] });});+ it('should emit granted iframe media permissions', () => {+ const iframeMediaPermissions = [+ { origin: 'https://phone.example.com', microphone: true, camera: false },+ ];++ expect(+ fromFlatApplicationToApplicationManifest({+ flatApplication: buildFlatApplication({+ grantedIframeMediaPermissions: iframeMediaPermissions,+ }),+ defaultRoleUniversalIdentifier: ROLE_UID,+ }),+ ).toMatchObject({+ requestedIframeMediaPermissions: iframeMediaPermissions,+ });+ });+it('should default a missing description to an empty string', () => {expect(fromFlatApplicationToApplicationManifest({diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-flat-application-to-application-manifest.util.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-flat-application-to-application-manifest.util.tsindex 61215440bb3..d344b928f9f 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-flat-application-to-application-manifest.util.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-flat-application-to-application-manifest.util.ts@@ -11,6 +11,7 @@ export type FlatApplicationHeader = Pick<| 'logo'| 'billing'| 'grantedCapabilities'+ | 'grantedIframeMediaPermissions'| 'packageJsonChecksum'| 'yarnLockChecksum'>;@@ -38,6 +39,12 @@ export const fromFlatApplicationToApplicationManifest = ({...(isNonEmptyArray(flatApplication.grantedCapabilities)? { requestedCapabilities: flatApplication.grantedCapabilities }: {}),+ ...(isNonEmptyArray(flatApplication.grantedIframeMediaPermissions)+ ? {+ requestedIframeMediaPermissions:+ flatApplication.grantedIframeMediaPermissions,+ }+ : {}),...(isDefined(settingsFrontComponentUniversalIdentifier)? {settingsFrontComponent: {diff --git a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto.ts b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto.tsindex 39993910f77..455a0ef5a3c 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto.ts@@ -12,10 +12,12 @@ import {type ApplicationCapability,type Manifest,} from 'twenty-shared/application';+import { type IframeMediaPermission } from 'twenty-shared/types';import { MarketplaceAppObjectDTO } from 'src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-object.dto';import { MarketplaceAppRoleDTO } from 'src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-role.dto';import { ApplicationRegistrationSourceType } from 'src/engine/core-modules/application/application-registration/enums/application-registration-source-type.enum';+import { IframeMediaPermissionDTO } from 'src/engine/core-modules/workspace/dtos/iframe-media-permission.dto';@ObjectType('MarketplaceAppDetail')export class MarketplaceAppDetailDTO {@@ -129,6 +131,9 @@ export class MarketplaceAppDetailDTO {@Field(() => [String])requestedCapabilities: ApplicationCapability[];+ @Field(() => [IframeMediaPermissionDTO])+ requestedIframeMediaPermissions: IframeMediaPermission[];+@Field(() => Boolean)billsCredits: boolean;diff --git a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/marketplace-query.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/marketplace-query.service.tsindex 30d2a4a170b..21d5f2cb9c3 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/marketplace-query.service.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/marketplace-query.service.ts@@ -14,6 +14,7 @@ import { MarketplaceAppDTO } from 'src/engine/core-modules/application/applicatiimport { MarketplaceAppDetailDTO } from 'src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto';import { doesApplicationBillCredits } from 'src/engine/core-modules/application/utils/does-application-bill-credits.util';import { toApplicationCapabilities } from 'src/engine/core-modules/application/utils/to-application-capabilities.util';+import { toRequestedIframeMediaPermissionsOrThrow } from 'src/engine/core-modules/application/utils/to-requested-iframe-media-permissions-or-throw.util';import { MarketplaceAppRoleDTO } from 'src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-role.dto';import { ApplicationRegistrationAssetUrlService } from 'src/engine/core-modules/application/application-registration/application-registration-asset-url.service';import { type ApplicationRegistrationEntity } from 'src/engine/core-modules/application/application-registration/application-registration.entity';@@ -178,6 +179,9 @@ export class MarketplaceQueryService {requestedCapabilities: toApplicationCapabilities(manifest?.application?.requestedCapabilities,),+ requestedIframeMediaPermissions: toRequestedIframeMediaPermissionsOrThrow(+ manifest?.application?.requestedIframeMediaPermissions,+ ),billsCredits: doesApplicationBillCredits(manifest?.application?.billing),manifest: registration.manifest ?? undefined,};diff --git a/packages/twenty-server/src/engine/core-modules/application/application.entity.ts b/packages/twenty-server/src/engine/core-modules/application/application.entity.tsindex 3fcfc2360ef..0318e34fa7a 100644--- a/packages/twenty-server/src/engine/core-modules/application/application.entity.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application.entity.ts@@ -4,6 +4,7 @@ import {type ApplicationBilling,type ApplicationCapability,} from 'twenty-shared/application';+import { type IframeMediaPermission } from 'twenty-shared/types';import {Column,CreateDateColumn,@@ -137,6 +138,13 @@ export class ApplicationEntity extends WorkspaceRelatedEntity {})grantedCapabilities: ApplicationCapability[];+ @Column({ type: 'jsonb', nullable: false, default: [] })+ @WasIntroducedInUpgrade({+ upgradeCommandName:+ '2.56.0_AddApplicationGrantedIframeMediaPermissionsFastInstanceCommand_1793700975254',+ })+ grantedIframeMediaPermissions: IframeMediaPermission[];+@Column({ nullable: true, type: 'uuid' })logicFunctionLayerId: string | null;diff --git a/packages/twenty-server/src/engine/core-modules/application/application.service.ts b/packages/twenty-server/src/engine/core-modules/application/application.service.tsindex fd2f687eb14..7c1717201ad 100644--- a/packages/twenty-server/src/engine/core-modules/application/application.service.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application.service.ts@@ -3,7 +3,7 @@ import { Injectable, Logger } from '@nestjs/common';import { InjectDataSource, InjectRepository } from '@nestjs/typeorm';import { msg } from '@lingui/core/macro';-import { FileFolder } from 'twenty-shared/types';+import { FileFolder, type IframeMediaPermission } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';import {type DataSource,@@ -28,7 +28,11 @@ import {ApplicationExceptionCode,} from 'src/engine/core-modules/application/application.exception';import { WORKSPACE_CUSTOM_APPLICATION_NAME } from 'src/engine/core-modules/application/constants/workspace-custom-application.constant';+import { type ApplicationCallerOperation } from 'src/engine/core-modules/application/types/application-caller-operation.type';import { type FlatApplication } from 'src/engine/core-modules/application/types/flat-application.type';+import { canCallerReachApplication } from 'src/engine/core-modules/application/utils/can-caller-reach-application.util';+import { buildApplicationIframeMediaPermissionGrantQuery } from 'src/engine/core-modules/application/utils/build-application-iframe-media-permission-grant-query.util';+import { findActiveFlatApplicationById } from 'src/engine/core-modules/application/utils/find-active-flat-application-by-id.util';import { FileStorageService } from 'src/engine/core-modules/file-storage/services/file-storage.service';import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';import { AgentEntity } from 'src/engine/metadata-modules/ai/ai-agent/entities/agent.entity';@@ -172,6 +176,46 @@ export class ApplicationService {});}+ async findInstalledFlatApplication({+ applicationId,+ workspaceId,+ }: {+ applicationId: string;+ workspaceId: string;+ }): Promise<FlatApplication | undefined> {+ const { flatApplicationMaps } =+ await this.workspaceCacheService.getOrRecompute(workspaceId, [+ 'flatApplicationMaps',+ ]);++ return findActiveFlatApplicationById(flatApplicationMaps, applicationId);+ }++ async findReadableInstalledFlatApplication({+ applicationId,+ workspaceId,+ workspaceCustomApplicationId,+ callingApplication,+ }: {+ applicationId: string;+ workspaceId: string;+ workspaceCustomApplicationId: string;+ callingApplication: ApplicationCallerOperation['callingApplication'];+ }): Promise<FlatApplication | undefined> {+ if (+ !canCallerReachApplication({+ applicationId,+ callingApplication,+ operation: 'read',+ workspaceCustomApplicationId,+ })+ ) {+ return undefined;+ }++ return this.findInstalledFlatApplication({ applicationId, workspaceId });+ }+async findManyInstalledFlatApplications(workspaceId: string,): Promise<FlatApplication[]> {@@ -807,6 +851,44 @@ export class ApplicationService {}}+ async grantIframeMediaPermissions({+ applicationId,+ workspaceId,+ permissions,+ }: {+ applicationId: string;+ workspaceId: string;+ permissions: IframeMediaPermission[];+ }): Promise<ApplicationEntity> {+ const grantQuery =+ buildApplicationIframeMediaPermissionGrantQuery(permissions);++ await this.applicationRepository+ .createQueryBuilder()+ .update()+ .set({ grantedIframeMediaPermissions: () => grantQuery.query })+ .where({ id: applicationId, workspaceId, deletedAt: IsNull() })+ .setParameters(grantQuery.parameters)+ .execute();++ await this.workspaceCacheService.invalidateAndRecompute(workspaceId, [+ 'flatApplicationMaps',+ ]);++ const application = await this.findOneApplicationOrThrow({+ id: applicationId,+ workspaceId,+ });++ await this.broadcastApplicationEvent({+ type: 'updated',+ application,+ updatedFields: ['grantedIframeMediaPermissions'],+ });++ return application;+ }+async update(id: string,data: QueryDeepPartialEntity<ApplicationEntity> & {diff --git a/packages/twenty-server/src/engine/core-modules/application/dtos/application.dto.ts b/packages/twenty-server/src/engine/core-modules/application/dtos/application.dto.tsindex 4d13468dd0e..f5af505feb2 100644--- a/packages/twenty-server/src/engine/core-modules/application/dtos/application.dto.ts+++ b/packages/twenty-server/src/engine/core-modules/application/dtos/application.dto.ts@@ -9,6 +9,7 @@ import {IsUUID,} from 'class-validator';import GraphQLJSON from 'graphql-type-json';+import { type IframeMediaPermission } from 'twenty-shared/types';import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';import { ApplicationRegistrationSummaryDTO } from 'src/engine/core-modules/application/application-registration/dtos/application-registration-summary.dto';@@ -20,6 +21,7 @@ import { FrontComponentDTO } from 'src/engine/metadata-modules/front-component/dimport { LogicFunctionDTO } from 'src/engine/metadata-modules/logic-function/dtos/logic-function.dto';import { ObjectMetadataDTO } from 'src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto';import { RoleDTO } from 'src/engine/metadata-modules/role/dtos/role.dto';+import { IframeMediaPermissionDTO } from 'src/engine/core-modules/workspace/dtos/iframe-media-permission.dto';@ObjectType('Application')export class ApplicationDTO {@@ -144,4 +146,10 @@ export class ApplicationDTO {@IsOptional()@Field(() => ApplicationRegistrationSummaryDTO, { nullable: true })applicationRegistration?: ApplicationRegistrationSummaryDTO;++ @Field(() => [IframeMediaPermissionDTO])+ requestedIframeMediaPermissions?: IframeMediaPermission[];++ @Field(() => [IframeMediaPermissionDTO])+ grantedIframeMediaPermissions?: IframeMediaPermission[];}diff --git a/packages/twenty-server/src/engine/core-modules/application/dtos/iframe-media-permission.input.ts b/packages/twenty-server/src/engine/core-modules/application/dtos/iframe-media-permission.input.tsnew file mode 100644index 00000000000..e41d7677241--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/dtos/iframe-media-permission.input.ts@@ -0,0 +1,18 @@+import { Field, InputType } from '@nestjs/graphql';+import { IsBoolean, IsString } from 'class-validator';+import { type IframeMediaPermission } from 'twenty-shared/types';++@InputType()+export class IframeMediaPermissionInput implements IframeMediaPermission {+ @Field()+ @IsString()+ origin: string;++ @Field()+ @IsBoolean()+ microphone: boolean;++ @Field()+ @IsBoolean()+ camera: boolean;+}diff --git a/packages/twenty-server/src/engine/core-modules/application/utils/__tests__/build-application-iframe-media-permission-grant-query.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/utils/__tests__/build-application-iframe-media-permission-grant-query.util.spec.tsnew file mode 100644index 00000000000..9686e2369a9--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/utils/__tests__/build-application-iframe-media-permission-grant-query.util.spec.ts@@ -0,0 +1,26 @@+import { DataSource } from 'typeorm';++import { buildApplicationIframeMediaPermissionGrantQuery } from 'src/engine/core-modules/application/utils/build-application-iframe-media-permission-grant-query.util';++describe('buildApplicationIframeMediaPermissionGrantQuery', () => {+ it('binds reviewed permissions as data without interpolating them into SQL', () => {+ const permission = {+ origin: "https://phone's.example.com",+ microphone: true,+ camera: false,+ };+ const grantQuery = buildApplicationIframeMediaPermissionGrantQuery([+ permission,+ ]);+ const dataSource = new DataSource({ type: 'postgres' });+ const [query, parameters] = dataSource.driver.escapeQueryWithParameters(+ grantQuery.query,+ grantQuery.parameters,+ {},+ );++ expect(query).toContain('$1::jsonb');+ expect(query).not.toContain(permission.origin);+ expect(parameters).toEqual([JSON.stringify([permission])]);+ });+});diff --git a/packages/twenty-server/src/engine/core-modules/application/utils/__tests__/resolve-synced-application-iframe-media-permissions.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/utils/__tests__/resolve-synced-application-iframe-media-permissions.util.spec.tsnew file mode 100644index 00000000000..cce794e034c--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/utils/__tests__/resolve-synced-application-iframe-media-permissions.util.spec.ts@@ -0,0 +1,45 @@+import { ApplicationRegistrationSourceType } from 'src/engine/core-modules/application/application-registration/enums/application-registration-source-type.enum';+import { resolveSyncedApplicationIframeMediaPermissions } from 'src/engine/core-modules/application/utils/resolve-synced-application-iframe-media-permissions.util';++const PHONE_PERMISSION = {+ origin: 'https://phone.example.com',+ microphone: true,+ camera: false,+};+const VIDEO_PERMISSION = {+ origin: 'https://video.example.com',+ microphone: true,+ camera: true,+};++describe('resolveSyncedApplicationIframeMediaPermissions', () => {+ it('should not widen a grant on a published application update', () => {+ expect(+ resolveSyncedApplicationIframeMediaPermissions({+ sourceType: ApplicationRegistrationSourceType.NPM,+ grantedIframeMediaPermissions: [PHONE_PERMISSION],+ requestedIframeMediaPermissions: [PHONE_PERMISSION, VIDEO_PERMISSION],+ }),+ ).toEqual([PHONE_PERMISSION]);+ });++ it('should grant the requested permissions to a local application', () => {+ expect(+ resolveSyncedApplicationIframeMediaPermissions({+ sourceType: ApplicationRegistrationSourceType.LOCAL,+ grantedIframeMediaPermissions: [PHONE_PERMISSION],+ requestedIframeMediaPermissions: [VIDEO_PERMISSION],+ }),+ ).toEqual([PHONE_PERMISSION, VIDEO_PERMISSION]);+ });++ it('should treat a missing grant as no permission', () => {+ expect(+ resolveSyncedApplicationIframeMediaPermissions({+ sourceType: ApplicationRegistrationSourceType.TARBALL,+ grantedIframeMediaPermissions: undefined,+ requestedIframeMediaPermissions: [VIDEO_PERMISSION],+ }),+ ).toEqual([]);+ });+});diff --git a/packages/twenty-server/src/engine/core-modules/application/utils/__tests__/to-iframe-media-permissions.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/utils/__tests__/to-iframe-media-permissions.util.spec.tsnew file mode 100644index 00000000000..3f29b338646--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/utils/__tests__/to-iframe-media-permissions.util.spec.ts@@ -0,0 +1,66 @@+import { toIframeMediaPermissions } from 'src/engine/core-modules/application/utils/to-iframe-media-permissions.util';++const PHONE_ORIGIN = 'https://phone.example.com';++describe('toIframeMediaPermissions', () => {+ it('should keep valid permissions in the declared order', () => {+ expect(+ toIframeMediaPermissions([+ { origin: 'https://video.example.com', microphone: true, camera: true },+ { origin: PHONE_ORIGIN, microphone: true, camera: false },+ ]),+ ).toEqual([+ { origin: 'https://video.example.com', microphone: true, camera: true },+ { origin: PHONE_ORIGIN, microphone: true, camera: false },+ ]);+ });++ it('should normalize origins and merge duplicates', () => {+ expect(+ toIframeMediaPermissions([+ {+ origin: 'https://Phone.Example.com/',+ microphone: true,+ camera: false,+ },+ { origin: PHONE_ORIGIN, microphone: false, camera: true },+ ]),+ ).toEqual([{ origin: PHONE_ORIGIN, microphone: true, camera: true }]);+ });++ it('should drop origins that are not exact HTTPS origins', () => {+ expect(+ toIframeMediaPermissions([+ { origin: 'http://phone.example.com', microphone: true, camera: false },+ { origin: `${PHONE_ORIGIN}/calls`, microphone: true, camera: false },+ { origin: 'https://*.example.com', microphone: true, camera: false },+ ]),+ ).toEqual([]);+ });++ it('should drop permissions that allow no media', () => {+ expect(+ toIframeMediaPermissions([+ { origin: PHONE_ORIGIN, microphone: false, camera: false },+ { origin: PHONE_ORIGIN, microphone: 'yes', camera: 1 },+ ]),+ ).toEqual([]);+ });++ it('should treat a manifest value that is not an array as no permission', () => {+ expect(toIframeMediaPermissions(undefined)).toEqual([]);+ expect(toIframeMediaPermissions({ origin: PHONE_ORIGIN })).toEqual([]);+ expect(toIframeMediaPermissions(null)).toEqual([]);+ });++ it('should ignore elements that are not permissions', () => {+ expect(+ toIframeMediaPermissions([+ null,+ PHONE_ORIGIN,+ { microphone: true },+ { origin: PHONE_ORIGIN, microphone: true, camera: false },+ ]),+ ).toEqual([{ origin: PHONE_ORIGIN, microphone: true, camera: false }]);+ });+});diff --git a/packages/twenty-server/src/engine/core-modules/application/utils/build-application-iframe-media-permission-grant-query.util.ts b/packages/twenty-server/src/engine/core-modules/application/utils/build-application-iframe-media-permission-grant-query.util.tsnew file mode 100644index 00000000000..a2064b46810--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/utils/build-application-iframe-media-permission-grant-query.util.ts@@ -0,0 +1,19 @@+import { type IframeMediaPermission } from 'twenty-shared/types';++export const buildApplicationIframeMediaPermissionGrantQuery = (+ permissions: IframeMediaPermission[],+) => ({+ query: `(+ SELECT COALESCE(jsonb_agg(permission), '[]'::jsonb)+ FROM (+ SELECT origin, bool_or(microphone) AS microphone, bool_or(camera) AS camera+ FROM jsonb_to_recordset("grantedIframeMediaPermissions" || :approvedIframeMediaPermissions::jsonb)+ AS requested_permission(origin text, microphone boolean, camera boolean)+ GROUP BY origin+ ORDER BY origin+ ) AS permission+ )`,+ parameters: {+ approvedIframeMediaPermissions: JSON.stringify(permissions),+ },+});diff --git a/packages/twenty-server/src/engine/core-modules/application/utils/resolve-synced-application-iframe-media-permissions.util.ts b/packages/twenty-server/src/engine/core-modules/application/utils/resolve-synced-application-iframe-media-permissions.util.tsnew file mode 100644index 00000000000..abbfbb91837--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/utils/resolve-synced-application-iframe-media-permissions.util.ts@@ -0,0 +1,26 @@+import { type IframeMediaPermission } from 'twenty-shared/types';++import { ApplicationRegistrationSourceType } from 'src/engine/core-modules/application/application-registration/enums/application-registration-source-type.enum';+import { toIframeMediaPermissions } from 'src/engine/core-modules/application/utils/to-iframe-media-permissions.util';+import { toRequestedIframeMediaPermissionsOrThrow } from 'src/engine/core-modules/application/utils/to-requested-iframe-media-permissions-or-throw.util';++export const resolveSyncedApplicationIframeMediaPermissions = ({+ sourceType,+ grantedIframeMediaPermissions,+ requestedIframeMediaPermissions,+}: {+ sourceType: ApplicationRegistrationSourceType;+ grantedIframeMediaPermissions: IframeMediaPermission[] | undefined;+ requestedIframeMediaPermissions: IframeMediaPermission[] | undefined;+}): IframeMediaPermission[] => {+ if (sourceType !== ApplicationRegistrationSourceType.LOCAL) {+ return toIframeMediaPermissions(grantedIframeMediaPermissions);+ }++ return toIframeMediaPermissions([+ ...toIframeMediaPermissions(grantedIframeMediaPermissions),+ ...toRequestedIframeMediaPermissionsOrThrow(+ requestedIframeMediaPermissions,+ ),+ ]);+};diff --git a/packages/twenty-server/src/engine/core-modules/application/utils/to-iframe-media-permissions.util.ts b/packages/twenty-server/src/engine/core-modules/application/utils/to-iframe-media-permissions.util.tsnew file mode 100644index 00000000000..96be67c080e--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/utils/to-iframe-media-permissions.util.ts@@ -0,0 +1,44 @@+import { isArray, isObject, isString } from '@sniptt/guards';+import { type IframeMediaPermission } from 'twenty-shared/types';+import { isDefined, normalizeIframeOrigin } from 'twenty-shared/utils';++export const toIframeMediaPermissions = (+ permissions: unknown,+): IframeMediaPermission[] => {+ if (!isArray(permissions)) {+ return [];+ }++ const permissionsByOrigin = new Map<string, IframeMediaPermission>();++ for (const permission of permissions) {+ if (+ !isObject(permission) ||+ !('origin' in permission) ||+ !isString(permission.origin)+ ) {+ continue;+ }++ const origin = normalizeIframeOrigin(permission.origin, {+ isHttpsOnly: true,+ });+ const microphone =+ 'microphone' in permission && permission.microphone === true;+ const camera = 'camera' in permission && permission.camera === true;++ if (!isDefined(origin) || (!microphone && !camera)) {+ continue;+ }++ const existingPermission = permissionsByOrigin.get(origin);++ permissionsByOrigin.set(origin, {+ origin,+ microphone: microphone || (existingPermission?.microphone ?? false),+ camera: camera || (existingPermission?.camera ?? false),+ });+ }++ return [...permissionsByOrigin.values()];+};diff --git a/packages/twenty-server/src/engine/core-modules/application/utils/to-requested-iframe-media-permissions-or-throw.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/utils/to-requested-iframe-media-permissions-or-throw.util.spec.tsnew file mode 100644index 00000000000..e068e13042b--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/utils/to-requested-iframe-media-permissions-or-throw.util.spec.ts@@ -0,0 +1,40 @@+import { i18n } from '@lingui/core';+import { MAX_ALLOWED_IFRAME_ORIGINS } from 'twenty-shared/constants';++import { ApplicationException } from 'src/engine/core-modules/application/application.exception';+import { toRequestedIframeMediaPermissionsOrThrow } from 'src/engine/core-modules/application/utils/to-requested-iframe-media-permissions-or-throw.util';++const PERMISSIONS = Array.from(+ { length: MAX_ALLOWED_IFRAME_ORIGINS + 1 },+ (_, index) => ({+ origin: `https://phone-${index}.example.com`,+ microphone: true,+ camera: false,+ }),+);++describe('toRequestedIframeMediaPermissionsOrThrow', () => {+ it('accepts a manifest at the origin limit', () => {+ const permissions = PERMISSIONS.slice(0, MAX_ALLOWED_IFRAME_ORIGINS);++ expect(toRequestedIframeMediaPermissionsOrThrow(permissions)).toEqual(+ permissions,+ );+ });++ it('reports the translated origin limit before granting permissions', () => {+ expect.assertions(1);++ try {+ toRequestedIframeMediaPermissionsOrThrow(PERMISSIONS);+ } catch (error) {+ if (!(error instanceof ApplicationException)) {+ throw error;+ }++ expect(i18n._(error.userFriendlyMessage)).toBe(+ `An application can request iframe media access for up to ${MAX_ALLOWED_IFRAME_ORIGINS} origins`,+ );+ }+ });+});diff --git a/packages/twenty-server/src/engine/core-modules/application/utils/to-requested-iframe-media-permissions-or-throw.util.ts b/packages/twenty-server/src/engine/core-modules/application/utils/to-requested-iframe-media-permissions-or-throw.util.tsnew file mode 100644index 00000000000..fb03cefc55d--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/utils/to-requested-iframe-media-permissions-or-throw.util.ts@@ -0,0 +1,27 @@+import { msg } from '@lingui/core/macro';+import { isArray } from '@sniptt/guards';+import { MAX_ALLOWED_IFRAME_ORIGINS } from 'twenty-shared/constants';+import { doNotTranslate } from 'twenty-shared/i18n';+import { type IframeMediaPermission } from 'twenty-shared/types';++import {+ ApplicationException,+ ApplicationExceptionCode,+} from 'src/engine/core-modules/application/application.exception';+import { toIframeMediaPermissions } from 'src/engine/core-modules/application/utils/to-iframe-media-permissions.util';++export const toRequestedIframeMediaPermissionsOrThrow = (+ permissions: unknown,+): IframeMediaPermission[] => {+ if (isArray(permissions) && permissions.length > MAX_ALLOWED_IFRAME_ORIGINS) {+ throw new ApplicationException(+ doNotTranslate('Too many requested iframe media origins'),+ ApplicationExceptionCode.INVALID_INPUT,+ {+ userFriendlyMessage: msg`An application can request iframe media access for up to ${MAX_ALLOWED_IFRAME_ORIGINS} origins`,+ },+ );+ }++ return toIframeMediaPermissions(permissions);+};diff --git a/packages/twenty-server/src/engine/core-modules/frontend/frontend.module.ts b/packages/twenty-server/src/engine/core-modules/frontend/frontend.module.tsindex 7a00747ede3..e9bfbc37385 100644--- a/packages/twenty-server/src/engine/core-modules/frontend/frontend.module.ts+++ b/packages/twenty-server/src/engine/core-modules/frontend/frontend.module.ts@@ -13,9 +13,10 @@ import { ClientConfigModule } from 'src/engine/core-modules/client-config/clientimport { WorkspaceDomainsModule } from 'src/engine/core-modules/domain/workspace-domains/workspace-domains.module';import { DOCUMENT_CONTENT_SECURITY_POLICY_DIRECTIVES } from 'src/engine/core-modules/frontend/constants/document-content-security-policy-directives.constant';import { FrontendService } from 'src/engine/core-modules/frontend/frontend.service';+import { WorkspaceCacheModule } from 'src/engine/workspace-cache/workspace-cache.module';@Module({- imports: [ClientConfigModule, WorkspaceDomainsModule],+ imports: [ClientConfigModule, WorkspaceDomainsModule, WorkspaceCacheModule],providers: [FrontendService,{ provide: 'FRONTEND_PATH', useValue: join(__dirname, '../../../front') },diff --git a/packages/twenty-server/src/engine/core-modules/frontend/frontend.service.ts b/packages/twenty-server/src/engine/core-modules/frontend/frontend.service.tsindex f534103d553..37779f57a98 100644--- a/packages/twenty-server/src/engine/core-modules/frontend/frontend.service.ts+++ b/packages/twenty-server/src/engine/core-modules/frontend/frontend.service.ts@@ -6,16 +6,23 @@ import { Readable } from 'stream';import { type ReadableStream } from 'stream/web';import { type NextFunction, type Request, type Response } from 'express';+import { type IframeMediaPermission } from 'twenty-shared/types';import { isDefined, normalizeIframeOrigin } from 'twenty-shared/utils';+import { toIframeMediaPermissions } from 'src/engine/core-modules/application/utils/to-iframe-media-permissions.util';+import { ClientConfigService } from 'src/engine/core-modules/client-config/services/client-config.service';import { WorkspaceDomainsService } from 'src/engine/core-modules/domain/workspace-domains/services/workspace-domains.service';import { DOCUMENT_CONTENT_SECURITY_POLICY_DIRECTIVES } from 'src/engine/core-modules/frontend/constants/document-content-security-policy-directives.constant';import { buildIframeMediaPermissionsPolicy } from 'src/engine/core-modules/frontend/utils/build-iframe-media-permissions-policy.util';+import { fitIframeMediaPermissionsToPolicySizeLimit } from 'src/engine/core-modules/frontend/utils/fit-iframe-media-permissions-to-policy-size-limit.util';+import { getActiveApplicationIframeMediaPermissions } from 'src/engine/core-modules/frontend/utils/get-active-application-iframe-media-permissions.util';import { isFrontendDocumentRequest } from 'src/engine/core-modules/frontend/utils/is-frontend-document-request.util';import { renderFrontendHtml } from 'src/engine/core-modules/frontend/utils/render-frontend-html.util';import { TwentyConfigService } from 'src/engine/core-modules/twenty-config/twenty-config.service';+import { type WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';import { WorkspaceNotFoundDefaultError } from 'src/engine/core-modules/workspace/workspace.exception';+import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';import { getRequestBaseUrl } from 'src/utils/get-request-base-url.util';import { streamToBuffer } from 'src/utils/stream-to-buffer';@@ -30,6 +37,7 @@ export class FrontendService {constructor(private readonly clientConfigService: ClientConfigService,private readonly workspaceDomainsService: WorkspaceDomainsService,+ private readonly workspaceCacheService: WorkspaceCacheService,@Inject('FRONTEND_PATH') readonly frontPath: string,twentyConfigService: TwentyConfigService,) {@@ -93,6 +101,52 @@ export class FrontendService {return template;}+ private async getDocumentIframeMediaPermissions(+ workspace: WorkspaceEntity | undefined,+ ): Promise<IframeMediaPermission[]> {+ if (!isDefined(workspace)) {+ return [];+ }++ const workspaceIframeMediaPermissions =+ workspace.iframeMediaPermissions ?? [];++ try {+ const { flatApplicationMaps } =+ await this.workspaceCacheService.getOrRecompute(workspace.id, [+ 'flatApplicationMaps',+ ]);+ const permissions = toIframeMediaPermissions([+ ...workspaceIframeMediaPermissions,+ ...getActiveApplicationIframeMediaPermissions(+ Object.values(flatApplicationMaps.byId),+ ),+ ]);+ const fittingPermissions = fitIframeMediaPermissionsToPolicySizeLimit({+ permissions,+ reservedPermissions: workspaceIframeMediaPermissions,+ });+ const hasDroppedPermissions =+ buildIframeMediaPermissionsPolicy(fittingPermissions) !==+ buildIframeMediaPermissionsPolicy(permissions);++ if (hasDroppedPermissions) {+ this.logger.warn(+ `Dropped iframe media permissions over the Permissions-Policy size limit for workspace ${workspace.id}`,+ );+ }++ return fittingPermissions;+ } catch (error) {+ this.logger.error(+ `Unable to load application iframe media permissions for workspace ${workspace.id}`,+ error,+ );++ return workspaceIframeMediaPermissions;+ }+ }+async serveDocument(request: Request,response: Response,@@ -144,7 +198,8 @@ export class FrontendService {.map((origin) => normalizeIframeOrigin(origin)).filter(isDefined);- const iframeMediaPermissions = workspace?.iframeMediaPermissions ?? [];+ const iframeMediaPermissions =+ await this.getDocumentIframeMediaPermissions(workspace);response.setHeader('Permissions-Policy',diff --git a/packages/twenty-server/src/engine/core-modules/frontend/utils/__tests__/get-active-application-iframe-media-permissions.util.spec.ts b/packages/twenty-server/src/engine/core-modules/frontend/utils/__tests__/get-active-application-iframe-media-permissions.util.spec.tsnew file mode 100644index 00000000000..bb258d016f2--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/frontend/utils/__tests__/get-active-application-iframe-media-permissions.util.spec.ts@@ -0,0 +1,38 @@+import { getActiveApplicationIframeMediaPermissions } from 'src/engine/core-modules/frontend/utils/get-active-application-iframe-media-permissions.util';++describe('getActiveApplicationIframeMediaPermissions', () => {+ it('excludes deleted applications without adding their origins or device grants', () => {+ const activePermission = {+ origin: 'https://phone.example.com',+ microphone: true,+ camera: false,+ };+ const deletedAt = new Date('2026-01-01T00:00:00.000Z');++ expect(+ getActiveApplicationIframeMediaPermissions([+ {+ deletedAt: null,+ grantedIframeMediaPermissions: [activePermission],+ },+ {+ deletedAt,+ grantedIframeMediaPermissions: [+ { ...activePermission, microphone: false, camera: true },+ ],+ },+ {+ deletedAt,+ grantedIframeMediaPermissions: [+ {+ origin: 'https://deleted.example.com',+ microphone: true,+ camera: true,+ },+ ],+ },+ undefined,+ ]),+ ).toEqual([activePermission]);+ });+});diff --git a/packages/twenty-server/src/engine/core-modules/frontend/utils/fit-iframe-media-permissions-to-policy-size-limit.util.spec.ts b/packages/twenty-server/src/engine/core-modules/frontend/utils/fit-iframe-media-permissions-to-policy-size-limit.util.spec.tsnew file mode 100644index 00000000000..adfe44c9727--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/frontend/utils/fit-iframe-media-permissions-to-policy-size-limit.util.spec.ts@@ -0,0 +1,85 @@+import { fitIframeMediaPermissionsToPolicySizeLimit } from 'src/engine/core-modules/frontend/utils/fit-iframe-media-permissions-to-policy-size-limit.util';+import { isIframeMediaPermissionsPolicyWithinSizeLimit } from 'src/engine/core-modules/frontend/utils/is-iframe-media-permissions-policy-within-size-limit.util';++const buildPermission = (host: string) => ({+ origin: `https://${host}.example.com`,+ microphone: true,+ camera: true,+});++const buildLongPermission = (index: number) =>+ buildPermission(+ `${'a'.repeat(63)}.${'b'.repeat(63)}.${'c'.repeat(63)}.phone-${index}`,+ );++describe('fitIframeMediaPermissionsToPolicySizeLimit', () => {+ it('keeps permissions that fit in the policy', () => {+ const permissions = [buildPermission('phone'), buildPermission('video')];++ expect(fitIframeMediaPermissionsToPolicySizeLimit({ permissions })).toEqual(+ permissions,+ );+ });++ it('keeps the earliest permissions and stops at the policy size limit', () => {+ const permissions = [0, 1, 2, 3, 4, 5].map(buildLongPermission);++ expect(fitIframeMediaPermissionsToPolicySizeLimit({ permissions })).toEqual(+ permissions.slice(0, 4),+ );+ });++ it('merges additional media grants when the policy fits', () => {+ const permission = buildPermission('phone');++ expect(+ fitIframeMediaPermissionsToPolicySizeLimit({+ reservedPermissions: [{ ...permission, camera: false }],+ permissions: [{ ...permission, microphone: false }],+ }),+ ).toEqual([permission]);+ });++ it('preserves workspace grants when apps add media to the same origins', () => {+ const permissions = [0, 1, 2, 3, 4].map(buildLongPermission);+ const reservedPermissions = permissions.map((permission) => ({+ ...permission,+ camera: false,+ }));++ const fittingPermissions = fitIframeMediaPermissionsToPolicySizeLimit({+ permissions,+ reservedPermissions,+ });++ expect(fittingPermissions).toEqual([+ ...permissions.slice(0, 4),+ reservedPermissions[4],+ ]);+ expect(+ isIframeMediaPermissionsPolicyWithinSizeLimit(fittingPermissions),+ ).toBe(true);+ });++ it('preserves workspace grants when apps add new origins', () => {+ const reservedPermissions = [0, 1, 2, 3, 4]+ .map(buildLongPermission)+ .map((permission) => ({ ...permission, camera: false }));+ const permissions = [5, 6, 7, 8, 9]+ .map(buildLongPermission)+ .map((permission) => ({ ...permission, microphone: false }));++ const fittingPermissions = fitIframeMediaPermissionsToPolicySizeLimit({+ permissions,+ reservedPermissions,+ });++ expect(fittingPermissions).toEqual([+ ...reservedPermissions,+ ...permissions.slice(0, 4),+ ]);+ expect(+ isIframeMediaPermissionsPolicyWithinSizeLimit(fittingPermissions),+ ).toBe(true);+ });+});diff --git a/packages/twenty-server/src/engine/core-modules/frontend/utils/fit-iframe-media-permissions-to-policy-size-limit.util.ts b/packages/twenty-server/src/engine/core-modules/frontend/utils/fit-iframe-media-permissions-to-policy-size-limit.util.tsnew file mode 100644index 00000000000..9bb451b6cc0--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/frontend/utils/fit-iframe-media-permissions-to-policy-size-limit.util.ts@@ -0,0 +1,29 @@+import { type IframeMediaPermission } from 'twenty-shared/types';++import { toIframeMediaPermissions } from 'src/engine/core-modules/application/utils/to-iframe-media-permissions.util';+import { isIframeMediaPermissionsPolicyWithinSizeLimit } from 'src/engine/core-modules/frontend/utils/is-iframe-media-permissions-policy-within-size-limit.util';++export const fitIframeMediaPermissionsToPolicySizeLimit = ({+ permissions,+ reservedPermissions = [],+}: {+ permissions: IframeMediaPermission[];+ reservedPermissions?: IframeMediaPermission[];+}): IframeMediaPermission[] => {+ let fittingPermissions = toIframeMediaPermissions(reservedPermissions);++ for (const permission of permissions) {+ const candidatePermissions = toIframeMediaPermissions([+ ...fittingPermissions,+ permission,+ ]);++ if (!isIframeMediaPermissionsPolicyWithinSizeLimit(candidatePermissions)) {+ break;+ }++ fittingPermissions = candidatePermissions;+ }++ return fittingPermissions;+};diff --git a/packages/twenty-server/src/engine/core-modules/frontend/utils/get-active-application-iframe-media-permissions.util.ts b/packages/twenty-server/src/engine/core-modules/frontend/utils/get-active-application-iframe-media-permissions.util.tsnew file mode 100644index 00000000000..2939ca430e4--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/frontend/utils/get-active-application-iframe-media-permissions.util.ts@@ -0,0 +1,19 @@+import { type IframeMediaPermission } from 'twenty-shared/types';+import { isDefined } from 'twenty-shared/utils';++import { type FlatApplication } from 'src/engine/core-modules/application/types/flat-application.type';+import { toIframeMediaPermissions } from 'src/engine/core-modules/application/utils/to-iframe-media-permissions.util';++export const getActiveApplicationIframeMediaPermissions = (+ applications: readonly (+ | Pick<FlatApplication, 'deletedAt' | 'grantedIframeMediaPermissions'>+ | undefined+ )[],+): IframeMediaPermission[] =>+ applications.flatMap((application) => {+ if (!isDefined(application) || isDefined(application.deletedAt)) {+ return [];+ }++ return toIframeMediaPermissions(application.grantedIframeMediaPermissions);+ });diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.tsindex 10b5cb2cf04..2d2bf6933b7 100644--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts@@ -40,6 +40,7 @@ const MOCK_FLAT_APPLICATION: FlatApplication = {availablePackages: {},billing: {},grantedCapabilities: [],+ grantedIframeMediaPermissions: [],logicFunctionLayerId: null,defaultRoleId: null,defaultRole: null,diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/__tests__/generate-morph-or-relation-flat-field-metadata-pair.spec.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/__tests__/generate-morph-or-relation-flat-field-metadata-pair.spec.tsindex 6a9eb662c7b..598af7e5713 100644--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/__tests__/generate-morph-or-relation-flat-field-metadata-pair.spec.ts+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/__tests__/generate-morph-or-relation-flat-field-metadata-pair.spec.ts@@ -35,6 +35,7 @@ const MOCK_FLAT_APPLICATION: FlatApplication = {availablePackages: {},billing: {},grantedCapabilities: [],+ grantedIframeMediaPermissions: [],logicFunctionLayerId: null,defaultRoleId: null,defaultRole: null,diff --git a/packages/twenty-server/src/engine/metadata-modules/front-component/front-component.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/front-component/front-component.resolver.tsindex 1988c232176..f4b87ea04f0 100644--- a/packages/twenty-server/src/engine/metadata-modules/front-component/front-component.resolver.ts+++ b/packages/twenty-server/src/engine/metadata-modules/front-component/front-component.resolver.ts@@ -12,18 +12,21 @@ import { type GraphQLResolveInfo } from 'graphql';import graphqlFields from 'graphql-fields';import { type ApplicationCapability } from 'twenty-shared/application';import { PermissionFlagType } from 'twenty-shared/constants';+import { type IframeMediaPermission } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';import { MetadataResolver } from 'src/engine/api/graphql/graphql-config/decorators/metadata-resolver.decorator';import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';import { ApplicationExceptionFilter } from 'src/engine/core-modules/application/application-exception-filter';import { ApplicationTokenPairDTO } from 'src/engine/core-modules/application/application-oauth/dtos/application-token-pair.dto';+import { ApplicationService } from 'src/engine/core-modules/application/application.service';import { UserApplicationVariableValueService } from 'src/engine/core-modules/application/application-variable/user-application-variable-value.service';import { ApplicationVariableEntityService } from 'src/engine/core-modules/application/application-variable/application-variable.service';import { type FlatApplication } from 'src/engine/core-modules/application/types/flat-application.type';import { canCallerReachApplication } from 'src/engine/core-modules/application/utils/can-caller-reach-application.util';import { ApplicationTokenService } from 'src/engine/core-modules/auth/token/services/application-token.service';import { type AuthContextUser } from 'src/engine/core-modules/auth/types/auth-context.type';+import { IframeMediaPermissionDTO } from 'src/engine/core-modules/workspace/dtos/iframe-media-permission.dto';import { AuthGraphqlApiExceptionFilter } from 'src/engine/core-modules/auth/filters/auth-graphql-api-exception.filter';import { type WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';import { AuthApplication } from 'src/engine/decorators/auth/auth-application.decorator';@@ -71,6 +74,7 @@ export class FrontComponentResolver {private readonly applicationVariableService: ApplicationVariableEntityService,private readonly userApplicationVariableValueService: UserApplicationVariableValueService,private readonly workspaceCacheService: WorkspaceCacheService,+ private readonly applicationService: ApplicationService,) {}@ResolveField(() => String, { nullable: true })@@ -118,6 +122,25 @@ export class FrontComponentResolver {);}+ @ResolveField(() => [IframeMediaPermissionDTO], { nullable: true })+ async applicationGrantedIframeMediaPermissions(+ @Parent() frontComponent: FrontComponentDTO,+ @AuthWorkspace()+ { id: workspaceId, workspaceCustomApplicationId }: WorkspaceEntity,+ @AuthApplication({ allowUndefined: true })+ callingApplication: FlatApplication | undefined,+ ): Promise<IframeMediaPermission[]> {+ const application =+ await this.applicationService.findReadableInstalledFlatApplication({+ applicationId: frontComponent.applicationId,+ workspaceId,+ workspaceCustomApplicationId,+ callingApplication,+ });++ return application?.grantedIframeMediaPermissions ?? [];+ }+@Query(() => [FrontComponentDTO])@UseGuards(NoPermissionGuard)@AllowSuspendedWorkspace()diff --git a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/resolvers/page-layout-widget.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/resolvers/page-layout-widget.resolver.tsindex 42e88cdc4f7..1caeb213ce3 100644--- a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/resolvers/page-layout-widget.resolver.ts+++ b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/resolvers/page-layout-widget.resolver.ts@@ -14,12 +14,16 @@ import {} from '@nestjs/graphql';import { PermissionFlagType } from 'twenty-shared/constants';+import { type IframeMediaPermission } from 'twenty-shared/types';+import { type FlatApplication } from 'src/engine/core-modules/application/types/flat-application.type';import { ResolverValidationPipe } from 'src/engine/core-modules/graphql/pipes/resolver-validation.pipe';import { type I18nContext } from 'src/engine/core-modules/i18n/types/i18n-context.type';import { type WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';+import { IframeMediaPermissionDTO } from 'src/engine/core-modules/workspace/dtos/iframe-media-permission.dto';import { type IDataloaders } from 'src/engine/dataloaders/dataloader.interface';import { AuthWorkspace } from 'src/engine/decorators/auth/auth-workspace.decorator';+import { AuthApplication } from 'src/engine/decorators/auth/auth-application.decorator';import { MetadataResolver } from 'src/engine/api/graphql/graphql-config/decorators/metadata-resolver.decorator';import { NoPermissionGuard } from 'src/engine/guards/no-permission.guard';import { SettingsPermissionGuard } from 'src/engine/guards/settings-permission.guard';@@ -58,6 +62,44 @@ export class PageLayoutWidgetResolver {private readonly applicationTranslationCatalogService: ApplicationTranslationCatalogService,) {}+ @ResolveField(() => String, { nullable: true })+ async applicationName(+ @Parent() widget: Pick<PageLayoutWidgetDTO, 'applicationId'>,+ @AuthWorkspace()+ workspace: Pick<WorkspaceEntity, 'id' | 'workspaceCustomApplicationId'>,+ @AuthApplication({ allowUndefined: true })+ callingApplication: FlatApplication | undefined,+ ): Promise<string | undefined> {+ const application =+ await this.pageLayoutWidgetService.findWidgetApplication({+ applicationId: widget.applicationId,+ workspaceId: workspace.id,+ workspaceCustomApplicationId: workspace.workspaceCustomApplicationId,+ callingApplication,+ });++ return application?.name;+ }++ @ResolveField(() => [IframeMediaPermissionDTO], { nullable: true })+ async applicationGrantedIframeMediaPermissions(+ @Parent() widget: Pick<PageLayoutWidgetDTO, 'applicationId'>,+ @AuthWorkspace()+ workspace: Pick<WorkspaceEntity, 'id' | 'workspaceCustomApplicationId'>,+ @AuthApplication({ allowUndefined: true })+ callingApplication: FlatApplication | undefined,+ ): Promise<IframeMediaPermission[]> {+ const application =+ await this.pageLayoutWidgetService.findWidgetApplication({+ applicationId: widget.applicationId,+ workspaceId: workspace.id,+ workspaceCustomApplicationId: workspace.workspaceCustomApplicationId,+ callingApplication,+ });++ return application?.grantedIframeMediaPermissions ?? [];+ }+@ResolveField(() => String)async title(@Parent() widget: PageLayoutWidgetDTO,diff --git a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/services/page-layout-widget.service.ts b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/services/page-layout-widget.service.tsindex 11cb717519d..f185b20ef80 100644--- a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/services/page-layout-widget.service.ts+++ b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/services/page-layout-widget.service.ts@@ -3,6 +3,8 @@ import { Injectable } from '@nestjs/common';import { isDefined, isPlainObject } from 'twenty-shared/utils';import { ApplicationService } from 'src/engine/core-modules/application/application.service';+import { type ApplicationCallerOperation } from 'src/engine/core-modules/application/types/application-caller-operation.type';+import { type FlatApplication } from 'src/engine/core-modules/application/types/flat-application.type';import { transformRichTextValue } from 'src/engine/core-modules/record-transformer/utils/transform-rich-text.util';import { WorkspaceManyOrAllFlatEntityMapsCacheService } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.service';import { findFlatEntityByIdInFlatEntityMapsOrThrow } from 'src/engine/metadata-modules/flat-entity/utils/find-flat-entity-by-id-in-flat-entity-maps-or-throw.util';@@ -50,6 +52,27 @@ export class PageLayoutWidgetService {private readonly dashboardSyncService: DashboardSyncService,) {}+ async findWidgetApplication({+ applicationId,+ workspaceId,+ workspaceCustomApplicationId,+ callingApplication,+ }: {+ applicationId: string;+ workspaceId: string;+ workspaceCustomApplicationId: string;+ callingApplication: ApplicationCallerOperation['callingApplication'];+ }): Promise<+ Pick<FlatApplication, 'name' | 'grantedIframeMediaPermissions'> | undefined+ > {+ return this.applicationService.findReadableInstalledFlatApplication({+ applicationId,+ workspaceId,+ workspaceCustomApplicationId,+ callingApplication,+ });+ }+private async getFlatPageLayoutWidgetMaps(workspaceId: string,): Promise<FlatPageLayoutWidgetMaps> {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 df9c8476045..d89dcadc468 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@@ -137,6 +137,7 @@ exports[`endpoint permission declarations should match the auth principals, perm"ApplicationDevelopmentResolver.uploadApplicationFile {"applicationTarget":{"idKey":"applicationUniversalIdentifier","kind":"applicationUniversalIdentifier","requireApplicationRegistrationOwnership":true,"source":"graphqlArgs"},"authPrincipalGuards":[{"apiKey":true,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":[],"requiredPermissionFlags":["APPLICATIONS","UPLOAD_FILE"]}","ApplicationExportResolver.exportApplication {"applicationTarget":{"idKey":"universalIdentifier","kind":"applicationUniversalIdentifier","requireApplicationRegistrationOwnership":true,"source":"graphqlArgs"},"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":["APPLICATIONS"]}","ApplicationHealthResolver.runApplicationHealthCheck {"applicationTarget":{"argName":"applicationId","kind":"applicationId","requireApplicationRegistrationOwnership":false,"source":"graphqlArg"},"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":["APPLICATIONS"]}",+ "ApplicationIframeMediaPermissionResolver.approveApplicationIframeMediaPermissions {"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":[],"requiredPermissionFlags":["APPLICATIONS"]}","ApplicationInstallResolver.findInstallApplicationJobStatus {"applicationTarget":{"argName":"universalIdentifier","kind":"applicationUniversalIdentifier","requireApplicationRegistrationOwnership":false,"source":"graphqlArg"},"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":["APPLICATIONS"]}","ApplicationInstallResolver.findManyApplications {"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":["APPLICATIONS"]}","ApplicationInstallResolver.findOneApplication {"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":["APPLICATIONS"]}",diff --git a/packages/twenty-server/test/integration/metadata/suites/application/iframe-media-permission-approvals.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/application/iframe-media-permission-approvals.integration-spec.tsnew file mode 100644index 00000000000..9cc19d4345a--- /dev/null+++ b/packages/twenty-server/test/integration/metadata/suites/application/iframe-media-permission-approvals.integration-spec.ts@@ -0,0 +1,418 @@+import gql from 'graphql-tag';+import { buildBaseManifest } from 'test/integration/metadata/suites/application/utils/build-base-manifest.util';+import { cleanupApplicationAndAppRegistration } from 'test/integration/metadata/suites/application/utils/cleanup-application-and-app-registration.util';+import { findOneApplication } from 'test/integration/metadata/suites/application/utils/find-one-application.util';+import { setupApplicationForSync } from 'test/integration/metadata/suites/application/utils/setup-application-for-sync.util';+import { syncApplication } from 'test/integration/metadata/suites/application/utils/sync-application.util';+import { makeMetadataApiRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';+import { generateAppleAdminApplicationTokenPair } from 'test/integration/utils/generate-apple-admin-application-token-pair.util';+import { getAppProviderByClassName } from 'test/integration/utils/get-app-provider-by-class-name.util';+import { SystemPermissionFlag } from 'twenty-shared/constants';+import { FileFolder, type IframeMediaPermission } from 'twenty-shared/types';+import { v4 as uuidv4 } from 'uuid';++import { ApplicationRegistrationSourceType } from 'src/engine/core-modules/application/application-registration/enums/application-registration-source-type.enum';+import { type ApplicationService } from 'src/engine/core-modules/application/application.service';+import { type FileStorageService } from 'src/engine/core-modules/file-storage/services/file-storage.service';+import { SEED_APPLE_WORKSPACE_ID } from 'src/engine/workspace-manager/dev-seeder/core/constants/seeder-workspaces.constant';++const APPLICATION_UNIVERSAL_IDENTIFIER = uuidv4();+const ROLE_UNIVERSAL_IDENTIFIER = uuidv4();+const APPLICATION_NAME = 'Upgraded Iframe Media App';+const INSTALLED_VERSION = '1.1.0';+const EXISTING_PERMISSION = {+ origin: 'https://phone.example.com',+ microphone: true,+ camera: false,+};+const NEW_PERMISSION = {+ origin: 'https://video.example.com',+ microphone: false,+ camera: true,+};+const SECOND_NEW_PERMISSION = {+ origin: 'https://recording.example.com',+ microphone: true,+ camera: true,+};+const MANIFEST = buildBaseManifest({+ appId: APPLICATION_UNIVERSAL_IDENTIFIER,+ roleId: ROLE_UNIVERSAL_IDENTIFIER,+});++describe('Installed application iframe media permission approvals', () => {+ let applicationId: string;+ let applicationToken: string;+ let applicationService: ApplicationService;+ let fileStorageService: FileStorageService;++ const writeInstalledManifest = async (permissions: IframeMediaPermission[]) =>+ fileStorageService.writeFile({+ workspaceId: SEED_APPLE_WORKSPACE_ID,+ applicationUniversalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,+ fileFolder: FileFolder.Source,+ resourcePath: 'manifest.json',+ sourceFile: Buffer.from(+ JSON.stringify({+ ...MANIFEST,+ application: {+ ...MANIFEST.application,+ requestedIframeMediaPermissions: permissions,+ },+ }),+ ),+ settings: { isTemporaryFile: false, toDelete: false },+ });++ const readApplication = () =>+ makeMetadataApiRequest({+ query: gql`+ query ReadInstalledApplicationIframeMediaPermissions($id: UUID!) {+ findOneApplication(id: $id) {+ id+ version+ requestedIframeMediaPermissions {+ origin+ microphone+ camera+ }+ grantedIframeMediaPermissions {+ origin+ microphone+ camera+ }+ }+ }+ `,+ variables: { id: applicationId },+ });++ const approvePermissions = ({+ permissions,+ token,+ }: {+ permissions: IframeMediaPermission[];+ token?: string;+ }) =>+ makeMetadataApiRequest(+ {+ query: gql`+ mutation ApproveInstalledApplicationIframeMediaPermissions(+ $applicationId: UUID!+ $approvedIframeMediaPermissions: [IframeMediaPermissionInput!]!+ ) {+ approveApplicationIframeMediaPermissions(+ applicationId: $applicationId+ approvedIframeMediaPermissions: $approvedIframeMediaPermissions+ ) {+ id+ version+ grantedIframeMediaPermissions {+ origin+ microphone+ camera+ }+ }+ }+ `,+ variables: {+ applicationId,+ approvedIframeMediaPermissions: permissions,+ },+ },+ token,+ );++ beforeAll(async () => {+ await setupApplicationForSync({+ applicationUniversalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,+ name: APPLICATION_NAME,+ description: 'Application for upgraded iframe media permission checks',+ sourcePath: `iframe-media-${APPLICATION_UNIVERSAL_IDENTIFIER}`,+ });++ await syncApplication({+ manifest: {+ ...MANIFEST,+ application: {+ ...MANIFEST.application,+ requestedIframeMediaPermissions: [EXISTING_PERMISSION],+ },+ roles: [+ {+ ...MANIFEST.roles[0],+ permissionFlagUniversalIdentifiers: [+ SystemPermissionFlag.APPLICATIONS,+ ],+ },+ ],+ },+ expectToFail: false,+ });++ const { data } = await findOneApplication({+ input: { universalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER },+ gqlFields: 'id',+ expectToFail: false,+ });++ applicationId = data.findOneApplication.id;+ applicationService = getAppProviderByClassName('ApplicationService');+ fileStorageService = getAppProviderByClassName('FileStorageService');++ jest.useRealTimers();++ await applicationService.update(applicationId, {+ workspaceId: SEED_APPLE_WORKSPACE_ID,+ sourceType: ApplicationRegistrationSourceType.NPM,+ version: INSTALLED_VERSION,+ });++ const tokenPair = await generateAppleAdminApplicationTokenPair({+ applicationId,+ });++ applicationToken = tokenPair.applicationAccessToken.token;+ }, 120000);++ beforeEach(async () => {+ await applicationService.update(applicationId, {+ workspaceId: SEED_APPLE_WORKSPACE_ID,+ grantedIframeMediaPermissions: [EXISTING_PERMISSION],+ });+ await writeInstalledManifest([EXISTING_PERMISSION, NEW_PERMISSION]);+ });++ afterAll(async () => {+ await cleanupApplicationAndAppRegistration({+ applicationUniversalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,+ });++ jest.useFakeTimers();+ });++ it('approves the newly requested origin without reinstalling the installed version', async () => {+ await writeInstalledManifest([+ EXISTING_PERMISSION,+ NEW_PERMISSION,+ SECOND_NEW_PERMISSION,+ ]);++ const beforeApproval = await readApplication();++ expect(beforeApproval.body.errors).toBeUndefined();+ expect(beforeApproval.body.data.findOneApplication).toEqual({+ id: applicationId,+ version: INSTALLED_VERSION,+ requestedIframeMediaPermissions: [+ EXISTING_PERMISSION,+ NEW_PERMISSION,+ SECOND_NEW_PERMISSION,+ ],+ grantedIframeMediaPermissions: [EXISTING_PERMISSION],+ });++ const approval = await approvePermissions({+ permissions: [NEW_PERMISSION],+ });++ expect(approval.body.errors).toBeUndefined();+ expect(approval.body.data.approveApplicationIframeMediaPermissions).toEqual(+ {+ id: applicationId,+ version: INSTALLED_VERSION,+ grantedIframeMediaPermissions: [EXISTING_PERMISSION, NEW_PERMISSION],+ },+ );++ const afterApproval = await readApplication();++ expect(afterApproval.body.errors).toBeUndefined();+ expect(+ afterApproval.body.data.findOneApplication.grantedIframeMediaPermissions,+ ).toEqual([EXISTING_PERMISSION, NEW_PERMISSION]);++ const workspace = await makeMetadataApiRequest({+ query: gql`+ query ReadInstalledWorkspaceApplicationIframeMediaPermissions {+ currentUser {+ currentWorkspace {+ installedApplications {+ id+ grantedIframeMediaPermissions {+ origin+ microphone+ camera+ }+ }+ }+ }+ }+ `,+ });++ expect(workspace.body.errors).toBeUndefined();+ expect(+ workspace.body.data.currentUser.currentWorkspace.installedApplications,+ ).toContainEqual({+ id: applicationId,+ grantedIframeMediaPermissions: [EXISTING_PERMISSION, NEW_PERMISSION],+ });+ });++ it('preserves both grants when different origins are approved concurrently', async () => {+ await writeInstalledManifest([+ EXISTING_PERMISSION,+ NEW_PERMISSION,+ SECOND_NEW_PERMISSION,+ ]);++ let releaseApplicationReads: () => void;+ const applicationReadsCompleted = new Promise<void>((resolve) => {+ releaseApplicationReads = resolve;+ });+ let applicationReadCount = 0;+ const findOneApplicationOrThrow =+ applicationService.findOneApplicationOrThrow.bind(applicationService);+ const applicationReadSpy = jest+ .spyOn(applicationService, 'findOneApplicationOrThrow')+ .mockImplementation(async (input) => {+ const application = await findOneApplicationOrThrow(input);++ applicationReadCount += 1;++ if (applicationReadCount === 2) {+ releaseApplicationReads();+ }++ await applicationReadsCompleted;++ return application;+ });++ try {+ const approvals = await Promise.all([+ approvePermissions({ permissions: [NEW_PERMISSION] }),+ approvePermissions({ permissions: [SECOND_NEW_PERMISSION] }),+ ]);++ for (const approval of approvals) {+ expect(approval.body.errors).toBeUndefined();+ }+ } finally {+ applicationReadSpy.mockRestore();+ }++ const application = await readApplication();++ expect(application.body.errors).toBeUndefined();+ expect(+ application.body.data.findOneApplication.grantedIframeMediaPermissions,+ ).toHaveLength(3);+ expect(+ application.body.data.findOneApplication.grantedIframeMediaPermissions,+ ).toEqual(+ expect.arrayContaining([+ EXISTING_PERMISSION,+ NEW_PERMISSION,+ SECOND_NEW_PERMISSION,+ ]),+ );+ });++ it('keeps grants unchanged when the installed manifest is unavailable', async () => {+ await fileStorageService.deleteFileObject({+ workspaceId: SEED_APPLE_WORKSPACE_ID,+ applicationUniversalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,+ fileFolder: FileFolder.Source,+ resourcePath: 'manifest.json',+ });++ const response = await approvePermissions({+ permissions: [NEW_PERMISSION],+ });++ expect(response.body.errors).toEqual([+ expect.objectContaining({+ extensions: expect.objectContaining({ code: 'BAD_USER_INPUT' }),+ }),+ ]);++ const application = await readApplication();++ expect(application.body.errors).toBeUndefined();+ expect(application.body.data.findOneApplication).toEqual({+ id: applicationId,+ version: INSTALLED_VERSION,+ requestedIframeMediaPermissions: [],+ grantedIframeMediaPermissions: [EXISTING_PERMISSION],+ });+ });++ it('rejects an origin removed from the installed manifest after review', async () => {+ await writeInstalledManifest([EXISTING_PERMISSION]);++ const response = await approvePermissions({+ permissions: [NEW_PERMISSION],+ });++ expect(response.body.errors).toEqual([+ expect.objectContaining({+ extensions: expect.objectContaining({ code: 'BAD_USER_INPUT' }),+ }),+ ]);++ const application = await readApplication();++ expect(+ application.body.data.findOneApplication.grantedIframeMediaPermissions,+ ).toEqual([EXISTING_PERMISSION]);+ });++ it('rejects a device permission that the installed manifest did not request', async () => {+ const response = await approvePermissions({+ permissions: [{ ...NEW_PERMISSION, microphone: true }],+ });++ expect(response.body.errors).toEqual([+ expect.objectContaining({+ extensions: expect.objectContaining({ code: 'BAD_USER_INPUT' }),+ }),+ ]);++ const application = await readApplication();++ expect(+ application.body.data.findOneApplication.grantedIframeMediaPermissions,+ ).toEqual([EXISTING_PERMISSION]);+ });++ it.each([+ {+ title: 'a workspace member',+ token: () => APPLE_JONY_MEMBER_ACCESS_TOKEN,+ },+ { title: 'an API key', token: () => API_KEY_ACCESS_TOKEN },+ {+ title: 'a user-bound application with application settings permission',+ token: () => applicationToken,+ },+ ])('refuses approval from $title', async ({ token }) => {+ const response = await approvePermissions({+ permissions: [NEW_PERMISSION],+ token: token(),+ });++ expect(response.body.errors).toEqual([+ expect.objectContaining({+ extensions: expect.objectContaining({ code: 'FORBIDDEN' }),+ }),+ ]);++ const application = await readApplication();++ expect(+ application.body.data.findOneApplication.grantedIframeMediaPermissions,+ ).toEqual([EXISTING_PERMISSION]);+ });+});diff --git a/packages/twenty-server/test/integration/metadata/suites/page-layout-widget/iframe-media-permissions.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/page-layout-widget/iframe-media-permissions.integration-spec.tsnew file mode 100644index 00000000000..801cc6fdd7b--- /dev/null+++ b/packages/twenty-server/test/integration/metadata/suites/page-layout-widget/iframe-media-permissions.integration-spec.ts@@ -0,0 +1,306 @@+import gql from 'graphql-tag';+import { buildBaseManifest } from 'test/integration/metadata/suites/application/utils/build-base-manifest.util';+import { cleanupApplicationAndAppRegistration } from 'test/integration/metadata/suites/application/utils/cleanup-application-and-app-registration.util';+import { findOneApplication } from 'test/integration/metadata/suites/application/utils/find-one-application.util';+import { setupApplicationForSync } from 'test/integration/metadata/suites/application/utils/setup-application-for-sync.util';+import { syncApplication } from 'test/integration/metadata/suites/application/utils/sync-application.util';+import { uploadApplicationFile } from 'test/integration/metadata/suites/application/utils/upload-application-file.util';+import { makeMetadataApiRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';+import { generateApplicationTokenPair } from 'test/integration/utils/generate-application-token-pair.util';+import { type Manifest } from 'twenty-shared/application';+import { STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS } from 'twenty-shared/metadata';+import {+ type IframeMediaPermission,+ PageLayoutTabLayoutMode,+ WidgetType,+} from 'twenty-shared/types';+import { assertIsDefinedOrThrow } from 'twenty-shared/utils';+import { v4 as uuidv4 } from 'uuid';++import { SEED_APPLE_WORKSPACE_ID } from 'src/engine/workspace-manager/dev-seeder/core/constants/seeder-workspaces.constant';++const OWNER_APPLICATION_UNIVERSAL_IDENTIFIER = uuidv4();+const OTHER_APPLICATION_UNIVERSAL_IDENTIFIER = uuidv4();+const WIDGET_UNIVERSAL_IDENTIFIER = uuidv4();+const FRONT_COMPONENT_UNIVERSAL_IDENTIFIER = uuidv4();+const COMMAND_MENU_ITEM_UNIVERSAL_IDENTIFIER = uuidv4();+const OWNER_APPLICATION_NAME = 'Widget Phone';+const ORIGIN = 'https://phone.example.com';+const MICROPHONE_PERMISSION = {+ origin: ORIGIN,+ microphone: true,+ camera: false,+};+const CAMERA_PERMISSION = {+ origin: ORIGIN,+ microphone: false,+ camera: true,+};++const createApplication = async ({+ applicationUniversalIdentifier,+ name,+ permissions,+ widgets,+ frontComponents = [],+ commandMenuItems = [],+}: {+ applicationUniversalIdentifier: string;+ name: string;+ permissions: IframeMediaPermission[];+ widgets: Manifest['pageLayoutWidgets'];+ frontComponents?: Manifest['frontComponents'];+ commandMenuItems?: Manifest['commandMenuItems'];+}): Promise<string> => {+ await setupApplicationForSync({+ applicationUniversalIdentifier,+ name,+ description: 'Application for iframe widget media permission checks',+ sourcePath: `iframe-widget-${applicationUniversalIdentifier}`,+ });++ jest.useRealTimers();++ const manifest = buildBaseManifest({+ appId: applicationUniversalIdentifier,+ roleId: uuidv4(),+ });++ for (const frontComponent of frontComponents) {+ await uploadApplicationFile({+ applicationUniversalIdentifier,+ fileFolder: 'BuiltFrontComponent',+ filePath: frontComponent.builtComponentPath,+ fileBuffer: Buffer.from('built phone component'),+ filename: 'Phone.mjs',+ contentType: 'application/javascript',+ expectToFail: false,+ });+ }++ jest.useFakeTimers();++ await syncApplication({+ manifest: {+ ...manifest,+ application: {+ ...manifest.application,+ displayName: name,+ requestedIframeMediaPermissions: permissions,+ },+ roles: manifest.roles.map((role) => ({+ ...role,+ label: `Iframe Widget Role ${applicationUniversalIdentifier}`,+ })),+ pageLayoutWidgets: widgets,+ frontComponents,+ commandMenuItems,+ },+ expectToFail: false,+ });++ const { data } = await findOneApplication({+ input: { universalIdentifier: applicationUniversalIdentifier },+ gqlFields: 'id',+ expectToFail: false,+ });++ return data.findOneApplication.id;+};++describe('Iframe application media permissions', () => {+ let widgetId: string;+ let commandMenuItemId: string;+ let ownerApplicationToken: string;+ let otherApplicationToken: string;++ beforeAll(async () => {+ const ownerApplicationId = await createApplication({+ applicationUniversalIdentifier: OWNER_APPLICATION_UNIVERSAL_IDENTIFIER,+ name: OWNER_APPLICATION_NAME,+ permissions: [MICROPHONE_PERMISSION],+ frontComponents: [+ {+ universalIdentifier: FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,+ name: 'Phone',+ componentName: 'Phone',+ sourceComponentPath: 'src/front-components/Phone.tsx',+ builtComponentPath: 'src/front-components/Phone.mjs',+ builtComponentChecksum: 'phone-component-checksum',+ },+ ],+ commandMenuItems: [+ {+ universalIdentifier: COMMAND_MENU_ITEM_UNIVERSAL_IDENTIFIER,+ label: 'Open Phone',+ frontComponentUniversalIdentifier:+ FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,+ },+ ],+ widgets: [+ {+ universalIdentifier: WIDGET_UNIVERSAL_IDENTIFIER,+ pageLayoutTabUniversalIdentifier:+ STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.personRecordPage.tabs+ .home.universalIdentifier,+ title: 'Phone',+ type: WidgetType.IFRAME,+ position: {+ layoutMode: PageLayoutTabLayoutMode.VERTICAL_LIST,+ index: 1000,+ },+ configuration: { configurationType: 'IFRAME', url: ORIGIN },+ },+ ],+ });+ const otherApplicationId = await createApplication({+ applicationUniversalIdentifier: OTHER_APPLICATION_UNIVERSAL_IDENTIFIER,+ name: 'Other Video App',+ permissions: [CAMERA_PERMISSION],+ widgets: [],+ });++ const [widget] = await globalThis.testDataSource.query<{ id: string }[]>(+ `SELECT id FROM core."pageLayoutWidget"+ WHERE "universalIdentifier" = $1 AND "workspaceId" = $2`,+ [WIDGET_UNIVERSAL_IDENTIFIER, SEED_APPLE_WORKSPACE_ID],+ );++ assertIsDefinedOrThrow(widget);+ widgetId = widget.id;++ const [commandMenuItem] = await globalThis.testDataSource.query<+ { id: string }[]+ >(+ `SELECT id FROM core."commandMenuItem"+ WHERE "universalIdentifier" = $1 AND "workspaceId" = $2`,+ [COMMAND_MENU_ITEM_UNIVERSAL_IDENTIFIER, SEED_APPLE_WORKSPACE_ID],+ );++ assertIsDefinedOrThrow(commandMenuItem);+ commandMenuItemId = commandMenuItem.id;++ const ownerTokenPair = await generateApplicationTokenPair({+ workspaceId: SEED_APPLE_WORKSPACE_ID,+ applicationId: ownerApplicationId,+ });+ const otherTokenPair = await generateApplicationTokenPair({+ workspaceId: SEED_APPLE_WORKSPACE_ID,+ applicationId: otherApplicationId,+ });++ ownerApplicationToken = ownerTokenPair.applicationAccessToken.token;+ otherApplicationToken = otherTokenPair.applicationAccessToken.token;+ }, 120000);++ afterAll(async () => {+ for (const applicationUniversalIdentifier of [+ OWNER_APPLICATION_UNIVERSAL_IDENTIFIER,+ OTHER_APPLICATION_UNIVERSAL_IDENTIFIER,+ ]) {+ await cleanupApplicationAndAppRegistration({+ applicationUniversalIdentifier,+ });+ }+ });++ const readWidgetPermissions = (token: string) =>+ makeMetadataApiRequest(+ {+ query: gql`+ query GetIframeWidgetApplicationPermissions($id: String!) {+ getPageLayoutWidget(id: $id) {+ applicationName+ applicationGrantedIframeMediaPermissions {+ origin+ microphone+ camera+ }+ }+ }+ `,+ variables: { id: widgetId },+ },+ token,+ );++ const readFrontComponentPermissions = (token: string) =>+ makeMetadataApiRequest(+ {+ query: gql`+ query GetCommandFrontComponentApplicationPermissions($id: UUID!) {+ commandMenuItem(id: $id) {+ frontComponent {+ applicationGrantedIframeMediaPermissions {+ origin+ microphone+ camera+ }+ }+ }+ }+ `,+ variables: { id: commandMenuItemId },+ },+ token,+ );++ it('lets ordinary workspace members read the owning app grants', async () => {+ const response = await readWidgetPermissions(+ APPLE_JONY_MEMBER_ACCESS_TOKEN,+ );++ expect(response.body.errors).toBeUndefined();+ expect(response.body.data.getPageLayoutWidget).toEqual({+ applicationName: OWNER_APPLICATION_NAME,+ applicationGrantedIframeMediaPermissions: [MICROPHONE_PERMISSION],+ });++ const commandResponse = await readFrontComponentPermissions(+ APPLE_JONY_MEMBER_ACCESS_TOKEN,+ );++ expect(commandResponse.body.errors).toBeUndefined();+ expect(commandResponse.body.data.commandMenuItem.frontComponent).toEqual({+ applicationGrantedIframeMediaPermissions: [MICROPHONE_PERMISSION],+ });+ });++ it('lets the owning application read its grants without borrowing another app capabilities', async () => {+ const response = await readWidgetPermissions(ownerApplicationToken);++ expect(response.body.errors).toBeUndefined();+ expect(response.body.data.getPageLayoutWidget).toEqual({+ applicationName: OWNER_APPLICATION_NAME,+ applicationGrantedIframeMediaPermissions: [MICROPHONE_PERMISSION],+ });++ const commandResponse = await readFrontComponentPermissions(+ ownerApplicationToken,+ );++ expect(commandResponse.body.errors).toBeUndefined();+ expect(commandResponse.body.data.commandMenuItem.frontComponent).toEqual({+ applicationGrantedIframeMediaPermissions: [MICROPHONE_PERMISSION],+ });+ });++ it('omits owner details and grants for an unrelated application principal', async () => {+ const response = await readWidgetPermissions(otherApplicationToken);++ expect(response.body.errors).toBeUndefined();+ expect(response.body.data.getPageLayoutWidget).toEqual({+ applicationName: null,+ applicationGrantedIframeMediaPermissions: [],+ });++ const commandResponse = await readFrontComponentPermissions(+ otherApplicationToken,+ );++ expect(commandResponse.body.errors).toBeUndefined();+ expect(commandResponse.body.data.commandMenuItem.frontComponent).toEqual({+ applicationGrantedIframeMediaPermissions: [],+ });+ });+});diff --git a/packages/twenty-shared/src/application/applicationType.ts b/packages/twenty-shared/src/application/applicationType.tsindex d6f5f18cecd..e1d316b739a 100644--- a/packages/twenty-shared/src/application/applicationType.ts+++ b/packages/twenty-shared/src/application/applicationType.ts@@ -5,6 +5,7 @@ import { type SettingsFrontComponentApplicationManifest } from '@/application/seimport { type UninstallLogicFunctionApplicationManifest } from '@/application/uninstallLogicFunctionApplicationType';import { type FrontComponentSharedDependenciesManifest } from '@/application/frontComponentSharedDependenciesManifestType';import { type ApplicationCapability } from '@/application/applicationCapabilityType';+import { type IframeMediaPermission } from '@/types/IframeMediaPermission';import { type ApplicationBilling } from './applicationBillingType';import { type ApplicationCategory } from './applicationCategoryType';import { type ApplicationVariables } from './applicationVariablesType';@@ -16,6 +17,7 @@ export type ApplicationManifest = SyncableEntityOptions & {displayName: string;description: string;requestedCapabilities?: ApplicationCapability[];+ requestedIframeMediaPermissions?: IframeMediaPermission[];applicationVariables?: ApplicationVariables;billing?: ApplicationBilling;serverVariables?: ServerVariables;diff --git a/packages/twenty-shared/src/utils/index.ts b/packages/twenty-shared/src/utils/index.tsindex c06dc03d714..469c98dcf94 100644--- a/packages/twenty-shared/src/utils/index.ts+++ b/packages/twenty-shared/src/utils/index.ts@@ -341,9 +341,11 @@ export { absoluteUrlSchema } from './url/absoluteUrlSchema';export { buildSignedPath } from './url/buildSignedPath';export { ensureAbsoluteUrl } from './url/ensureAbsoluteUrl';export { getAbsoluteUrlOrThrow } from './url/getAbsoluteUrlOrThrow';+export { getIframeMediaAllow } from './url/getIframeMediaAllow';export { getLinkUrlNormalizer } from './url/getLinkUrlNormalizer';export { getSafeUrl } from './url/getSafeUrl';export { getUrlHostnameOrThrow } from './url/getUrlHostnameOrThrow';+export { intersectIframeMediaPermissions } from './url/intersectIframeMediaPermissions';export { isAbsoluteUrl } from './url/isAbsoluteUrl';export { isHttpUrl } from './url/isHttpUrl';export { isSafeInternalPath } from './url/isSafeInternalPath';diff --git a/packages/twenty-front/src/modules/media-access/utils/__tests__/getIframeMediaAllow.test.ts b/packages/twenty-shared/src/utils/url/__tests__/getIframeMediaAllow.test.tssimilarity index 97%rename from packages/twenty-front/src/modules/media-access/utils/__tests__/getIframeMediaAllow.test.tsrename to packages/twenty-shared/src/utils/url/__tests__/getIframeMediaAllow.test.tsindex dac8ad8f8dc..44596465af7 100644--- a/packages/twenty-front/src/modules/media-access/utils/__tests__/getIframeMediaAllow.test.ts+++ b/packages/twenty-shared/src/utils/url/__tests__/getIframeMediaAllow.test.ts@@ -1,4 +1,4 @@-import { getIframeMediaAllow } from '@/media-access/utils/getIframeMediaAllow';+import { getIframeMediaAllow } from '../getIframeMediaAllow';describe('getIframeMediaAllow', () => {it.each([undefined, ''])(diff --git a/packages/twenty-front/src/modules/media-access/utils/__tests__/intersectIframeMediaPermissions.test.ts b/packages/twenty-shared/src/utils/url/__tests__/intersectIframeMediaPermissions.test.tssimilarity index 93%rename from packages/twenty-front/src/modules/media-access/utils/__tests__/intersectIframeMediaPermissions.test.tsrename to packages/twenty-shared/src/utils/url/__tests__/intersectIframeMediaPermissions.test.tsindex b3fe7274bf2..368c6003793 100644--- a/packages/twenty-front/src/modules/media-access/utils/__tests__/intersectIframeMediaPermissions.test.ts+++ b/packages/twenty-shared/src/utils/url/__tests__/intersectIframeMediaPermissions.test.ts@@ -1,4 +1,4 @@-import { intersectIframeMediaPermissions } from '@/media-access/utils/intersectIframeMediaPermissions';+import { intersectIframeMediaPermissions } from '../intersectIframeMediaPermissions';const PHONE_ORIGIN = 'https://phone.example.com';const VIDEO_ORIGIN = 'https://video.example.com';diff --git a/packages/twenty-front/src/modules/media-access/utils/getIframeMediaAllow.ts b/packages/twenty-shared/src/utils/url/getIframeMediaAllow.tssimilarity index 83%rename from packages/twenty-front/src/modules/media-access/utils/getIframeMediaAllow.tsrename to packages/twenty-shared/src/utils/url/getIframeMediaAllow.tsindex 9b644b22d9b..b08b54c7e27 100644--- a/packages/twenty-front/src/modules/media-access/utils/getIframeMediaAllow.ts+++ b/packages/twenty-shared/src/utils/url/getIframeMediaAllow.ts@@ -1,6 +1,7 @@import { isNonEmptyString } from '@sniptt/guards';-import { type IframeMediaPermission } from 'twenty-shared/types';-import { isDefined, normalizeIframeOrigin } from 'twenty-shared/utils';+import { type IframeMediaPermission } from '../../types/IframeMediaPermission';+import { isDefined } from '../validation';+import { normalizeIframeOrigin } from './normalizeIframeOrigin';const MEDIA_DIRECTIVE_PREFIX_PATTERN = /^(?:microphone|camera)/i;diff --git a/packages/twenty-front/src/modules/media-access/utils/intersectIframeMediaPermissions.ts b/packages/twenty-shared/src/utils/url/intersectIframeMediaPermissions.tssimilarity index 85%rename from packages/twenty-front/src/modules/media-access/utils/intersectIframeMediaPermissions.tsrename to packages/twenty-shared/src/utils/url/intersectIframeMediaPermissions.tsindex 5067ab95840..6bafd730d75 100644--- a/packages/twenty-front/src/modules/media-access/utils/intersectIframeMediaPermissions.ts+++ b/packages/twenty-shared/src/utils/url/intersectIframeMediaPermissions.ts@@ -1,5 +1,5 @@-import { type IframeMediaPermission } from 'twenty-shared/types';-import { isDefined } from 'twenty-shared/utils';+import { type IframeMediaPermission } from '../../types/IframeMediaPermission';+import { isDefined } from '../validation';export const intersectIframeMediaPermissions = ({permissions,