From a28887bba6dfa9b3590a8266295402a015f46115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Malfait?= Date: Thu, 2 Jul 2026 16:55:40 +0200 Subject: [PATCH] feat(server): workspace opt-out of root-domain directory listing (#22423) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What Lets a workspace opt out of being surfaced in the multi-workspace root-domain (app.twenty.com) picker via **email-domain discovery**. Adds `isDirectoryListingEnabled` (default `true`) on the workspace. When `false`, the workspace is filtered out of the approved-access-domain branch of `findAvailableWorkspacesByEmail`, so a user whose email domain matches an approved access domain no longer sees the workspace in the sign-up picker. ## Scope of the opt-out (deliberately narrow) The filter is applied **only** to the approved-access-domain discovery source: - **Members** (`availableWorkspacesForSignIn`) — never filtered; they keep access. - **Explicit invitations** — never filtered; the intent is one-to-one. - **Approved-access-domain discovery** — the only "listing" source, gated by the flag. A hidden workspace stays fully reachable by members and invited users via the direct workspace subdomain; it just isn't advertised in the global picker. > Open question for review: do we also want a stronger mode that hides the workspace from the root-domain picker even for existing members (forcing them to use the subdomain directly)? That would additionally filter the member/invitation sources and is a larger behavior change — not included here. ## Changes **Backend** - `workspace.entity.ts` — new `isDirectoryListingEnabled` column (`@Field`, default `true`). - `user-workspace.service.ts` — filter the approved-access-domain branch on the flag. - `update-workspace-input.ts` — expose the field on `updateWorkspace`. - `workspace.service.ts` — `PermissionFlagType.SECURITY` (same as the other discovery/security toggles). - Fast instance command adding the column (default `true`, so no existing workspace is hidden). **Frontend** - Settings > Security: a **"List in workspace directory"** toggle (shown only in multi-workspace mode) that flips the flag via `updateWorkspace`, mirroring the existing `isInternalMessagesImportEnabled` toggle. - Threaded the field through the current-user fragment, `CurrentWorkspace` type, and mock data. - Regenerated the metadata + client-sdk GraphQL types (`generated-metadata`, `twenty-client-sdk/.../generated`) — generated against a server booted from this branch. ## Verification - `tsgo` typecheck: 0 errors. `oxlint`: 0/0. `oxfmt`: clean. - Codegen diff verified to contain **only** the new field (no unrelated drift). - Tests not run locally; CI covers unit/integration + the codegen/migration freshness checks. --------- Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> --- .../src/metadata/generated/schema.graphql | 8 + .../src/metadata/generated/schema.ts | 12 +- .../src/metadata/generated/types.ts | 1398 +++++++++-------- .../src/generated-metadata/graphql.ts | 20 +- .../services/__tests__/apollo.factory.test.ts | 6 +- .../auth/states/currentWorkspaceState.ts | 1 + ...olumnDefinitionsFromObjectMetadata.test.ts | 2 + ...ttingsSecurityAuthProvidersOptionsList.tsx | 91 ++ .../graphql/fragments/userQueryFragment.ts | 1 + .../graphql/mutations/updateWorkspace.ts | 1 + .../src/testing/mock-data/users.ts | 2 + ...-workspace-discoverability-to-workspace.ts | 27 + .../instance-commands.constant.ts | 2 + .../user-workspace.service.spec.ts | 3 + .../user-workspace/user-workspace.service.ts | 23 +- .../workspace/dtos/update-workspace-input.ts | 7 + .../workspace/services/workspace.service.ts | 1 + .../types/workspace-discoverability.type.ts | 11 + .../from-workspace-entity-to-flat.util.ts | 1 + .../workspace/workspace.entity.ts | 14 + 20 files changed, 925 insertions(+), 706 deletions(-) create mode 100644 packages/twenty-server/src/database/commands/upgrade-version-command/2-19/2-19-instance-command-fast-1820000001000-add-workspace-discoverability-to-workspace.ts create mode 100644 packages/twenty-server/src/engine/core-modules/workspace/types/workspace-discoverability.type.ts diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql index 1bf80b9c82..0100805752 100644 --- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql +++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql @@ -888,6 +888,7 @@ type Workspace { updatedAt: DateTime! allowImpersonation: Boolean! isPublicInviteLinkEnabled: Boolean! + workspaceDiscoverability: WorkspaceDiscoverability! trashRetentionDays: Float! eventLogRetentionDays: Float! workspaceMembersCount: Float @@ -932,6 +933,12 @@ type Workspace { workspaceCustomApplicationId: String! } +enum WorkspaceDiscoverability { + PUBLIC + MEMBERS_AND_INVITEES + HIDDEN +} + enum WorkspaceActivationStatus { ONGOING_CREATION PENDING_CREATION @@ -4109,6 +4116,7 @@ input UpdateWorkspaceInput { logo: String inviteHash: String isPublicInviteLinkEnabled: Boolean + workspaceDiscoverability: WorkspaceDiscoverability allowImpersonation: Boolean isGoogleAuthEnabled: Boolean isMicrosoftAuthEnabled: Boolean diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts index e7bc8b0567..92629dd39a 100644 --- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts +++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts @@ -614,6 +614,7 @@ export interface Workspace { updatedAt: Scalars['DateTime'] allowImpersonation: Scalars['Boolean'] isPublicInviteLinkEnabled: Scalars['Boolean'] + workspaceDiscoverability: WorkspaceDiscoverability trashRetentionDays: Scalars['Float'] eventLogRetentionDays: Scalars['Float'] workspaceMembersCount?: Scalars['Float'] @@ -659,6 +660,8 @@ export interface Workspace { __typename: 'Workspace' } +export type WorkspaceDiscoverability = 'PUBLIC' | 'MEMBERS_AND_INVITEES' | 'HIDDEN' + export type WorkspaceActivationStatus = 'ONGOING_CREATION' | 'PENDING_CREATION' | 'ACTIVE' | 'INACTIVE' | 'SUSPENDED' export interface AppToken { @@ -3626,6 +3629,7 @@ export interface WorkspaceGenqlSelection{ updatedAt?: boolean | number allowImpersonation?: boolean | number isPublicInviteLinkEnabled?: boolean | number + workspaceDiscoverability?: boolean | number trashRetentionDays?: boolean | number eventLogRetentionDays?: boolean | number workspaceMembersCount?: boolean | number @@ -6393,7 +6397,7 @@ export interface ActivateWorkspaceInput { /** Deprecated: the workspace name is set at creation (signUpInNewWorkspace) and this field is ignored during activation. Kept for backward compatibility. */ displayName?: (Scalars['String'] | null)} -export interface UpdateWorkspaceInput {subdomain?: (Scalars['String'] | null),customDomain?: (Scalars['String'] | null),displayName?: (Scalars['String'] | null),logo?: (Scalars['String'] | null),inviteHash?: (Scalars['String'] | null),isPublicInviteLinkEnabled?: (Scalars['Boolean'] | null),allowImpersonation?: (Scalars['Boolean'] | null),isGoogleAuthEnabled?: (Scalars['Boolean'] | null),isMicrosoftAuthEnabled?: (Scalars['Boolean'] | null),isPasswordAuthEnabled?: (Scalars['Boolean'] | null),isGoogleAuthBypassEnabled?: (Scalars['Boolean'] | null),isMicrosoftAuthBypassEnabled?: (Scalars['Boolean'] | null),isPasswordAuthBypassEnabled?: (Scalars['Boolean'] | null),defaultRoleId?: (Scalars['UUID'] | null),isTwoFactorAuthenticationEnforced?: (Scalars['Boolean'] | null),trashRetentionDays?: (Scalars['Float'] | null),eventLogRetentionDays?: (Scalars['Float'] | null),fastModel?: (Scalars['String'] | null),smartModel?: (Scalars['String'] | null),aiAdditionalInstructions?: (Scalars['String'] | null),editableProfileFields?: (Scalars['String'][] | null),enabledAiModelIds?: (Scalars['String'][] | null),useRecommendedModels?: (Scalars['Boolean'] | null),isInternalMessagesImportEnabled?: (Scalars['Boolean'] | null)} +export interface UpdateWorkspaceInput {subdomain?: (Scalars['String'] | null),customDomain?: (Scalars['String'] | null),displayName?: (Scalars['String'] | null),logo?: (Scalars['String'] | null),inviteHash?: (Scalars['String'] | null),isPublicInviteLinkEnabled?: (Scalars['Boolean'] | null),workspaceDiscoverability?: (WorkspaceDiscoverability | null),allowImpersonation?: (Scalars['Boolean'] | null),isGoogleAuthEnabled?: (Scalars['Boolean'] | null),isMicrosoftAuthEnabled?: (Scalars['Boolean'] | null),isPasswordAuthEnabled?: (Scalars['Boolean'] | null),isGoogleAuthBypassEnabled?: (Scalars['Boolean'] | null),isMicrosoftAuthBypassEnabled?: (Scalars['Boolean'] | null),isPasswordAuthBypassEnabled?: (Scalars['Boolean'] | null),defaultRoleId?: (Scalars['UUID'] | null),isTwoFactorAuthenticationEnforced?: (Scalars['Boolean'] | null),trashRetentionDays?: (Scalars['Float'] | null),eventLogRetentionDays?: (Scalars['Float'] | null),fastModel?: (Scalars['String'] | null),smartModel?: (Scalars['String'] | null),aiAdditionalInstructions?: (Scalars['String'] | null),editableProfileFields?: (Scalars['String'][] | null),enabledAiModelIds?: (Scalars['String'][] | null),useRecommendedModels?: (Scalars['Boolean'] | null),isInternalMessagesImportEnabled?: (Scalars['Boolean'] | null)} export interface CreateOneFieldMetadataInput { /** The record to create */ @@ -8870,6 +8874,12 @@ export const enumViewVisibility = { UNLISTED: 'UNLISTED' as const } +export const enumWorkspaceDiscoverability = { + PUBLIC: 'PUBLIC' as const, + MEMBERS_AND_INVITEES: 'MEMBERS_AND_INVITEES' as const, + HIDDEN: 'HIDDEN' as const +} + export const enumWorkspaceActivationStatus = { ONGOING_CREATION: 'ONGOING_CREATION' as const, PENDING_CREATION: 'PENDING_CREATION' as const, diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts index effee6c2ab..f3166d27c1 100644 --- a/packages/twenty-client-sdk/src/metadata/generated/types.ts +++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts @@ -30,59 +30,60 @@ export default { 70, 71, 73, - 76, + 74, 77, - 82, - 85, - 90, + 78, + 83, + 86, 91, - 94, + 92, 95, - 97, - 100, + 96, + 98, 101, - 107, - 121, - 131, + 102, + 108, + 122, 132, 133, - 135, - 144, - 157, - 160, - 162, - 166, - 168, - 175, + 134, + 136, + 145, + 158, + 161, + 163, + 167, + 169, 176, - 183, - 186, - 189, - 200, - 215, - 227, - 233, - 269, - 271, + 177, + 184, + 187, + 190, + 201, + 216, + 228, + 234, + 270, 272, 273, 274, 275, 276, 277, - 284, - 324, + 278, + 285, 325, 326, 327, - 329, - 331, - 342, - 349, - 356, - 439, - 485, - 494 + 328, + 330, + 332, + 343, + 350, + 357, + 440, + 486, + 495 ], "types": { "BillingProductDTO": { @@ -96,13 +97,13 @@ export default { 1 ], "metadata": [ - 130 + 131 ], "on_BillingLicensedProduct": [ - 139 + 140 ], "on_BillingMeteredProduct": [ - 140 + 141 ], "__typename": [ 1 @@ -337,7 +338,7 @@ export default { 3 ], "user": [ - 75 + 76 ], "userId": [ 3 @@ -939,10 +940,10 @@ export default { 3 ], "relation": [ - 199 + 200 ], "morphRelations": [ - 199 + 200 ], "object": [ 52 @@ -978,10 +979,10 @@ export default { 4 ], "indexFieldMetadataList": [ - 201 + 202 ], "objectMetadata": [ - 206, + 207, { "paging": [ 47, @@ -1189,10 +1190,10 @@ export default { 45 ], "searchFieldMetadataList": [ - 208 + 209 ], "fields": [ - 212, + 213, { "paging": [ 47, @@ -1205,7 +1206,7 @@ export default { } ], "indexMetadatas": [ - 210, + 211, { "paging": [ 47, @@ -1707,6 +1708,9 @@ export default { "isPublicInviteLinkEnabled": [ 6 ], + "workspaceDiscoverability": [ + 73 + ], "trashRetentionDays": [ 11 ], @@ -1717,7 +1721,7 @@ export default { 11 ], "activationStatus": [ - 73 + 74 ], "views": [ 66 @@ -1804,22 +1808,22 @@ export default { 55 ], "featureFlags": [ - 167 + 168 ], "billingSubscriptions": [ - 143 + 144 ], "installedApplications": [ 55 ], "currentBillingSubscription": [ - 143 + 144 ], "billingCustomer": [ - 142 + 143 ], "billingEntitlements": [ - 226 + 227 ], "hasValidSignedEnterpriseKey": [ 6 @@ -1828,7 +1832,7 @@ export default { 6 ], "workspaceUrls": [ - 169 + 170 ], "workspaceCustomApplicationId": [ 1 @@ -1837,6 +1841,7 @@ export default { 1 ] }, + "WorkspaceDiscoverability": {}, "WorkspaceActivationStatus": {}, "AppToken": { "id": [ @@ -1902,7 +1907,7 @@ export default { 17 ], "onboardingStatus": [ - 76 + 77 ], "currentWorkspace": [ 72 @@ -1911,13 +1916,13 @@ export default { 17 ], "userVars": [ - 77 + 78 ], "workspaceMembers": [ 20 ], "deletedWorkspaceMembers": [ - 225 + 226 ], "hasPassword": [ 6 @@ -1929,7 +1934,7 @@ export default { 17 ], "availableWorkspaces": [ - 224 + 225 ], "__typename": [ 1 @@ -1990,19 +1995,19 @@ export default { 1 ], "type": [ - 82 + 83 ], "objectMetadataId": [ 3 ], "gridPosition": [ - 80 + 81 ], "position": [ - 83 + 84 ], "configuration": [ - 88 + 89 ], "conditionalDisplay": [ 15 @@ -2032,13 +2037,13 @@ export default { "WidgetType": {}, "PageLayoutWidgetPosition": { "on_PageLayoutWidgetGridPosition": [ - 84 + 85 ], "on_PageLayoutWidgetVerticalListPosition": [ - 86 + 87 ], "on_PageLayoutWidgetCanvasPosition": [ - 87 + 88 ], "__typename": [ 1 @@ -2046,7 +2051,7 @@ export default { }, "PageLayoutWidgetGridPosition": { "layoutMode": [ - 85 + 86 ], "row": [ 21 @@ -2067,7 +2072,7 @@ export default { "PageLayoutTabLayoutMode": {}, "PageLayoutWidgetVerticalListPosition": { "layoutMode": [ - 85 + 86 ], "index": [ 21 @@ -2078,7 +2083,7 @@ export default { }, "PageLayoutWidgetCanvasPosition": { "layoutMode": [ - 85 + 86 ], "__typename": [ 1 @@ -2086,78 +2091,78 @@ export default { }, "WidgetConfiguration": { "on_AggregateChartConfiguration": [ - 89 + 90 ], "on_StandaloneRichTextConfiguration": [ - 92 - ], - "on_PieChartConfiguration": [ 93 ], + "on_PieChartConfiguration": [ + 94 + ], "on_LineChartConfiguration": [ - 96 + 97 ], "on_IframeConfiguration": [ - 98 - ], - "on_BarChartConfiguration": [ 99 ], - "on_CalendarConfiguration": [ - 102 + "on_BarChartConfiguration": [ + 100 ], - "on_FrontComponentConfiguration": [ + "on_CalendarConfiguration": [ 103 ], - "on_EmailsConfiguration": [ + "on_FrontComponentConfiguration": [ 104 ], - "on_EmailThreadConfiguration": [ + "on_EmailsConfiguration": [ 105 ], - "on_FieldConfiguration": [ + "on_EmailThreadConfiguration": [ 106 ], - "on_FieldRichTextConfiguration": [ - 108 + "on_FieldConfiguration": [ + 107 ], - "on_FieldsConfiguration": [ + "on_FieldRichTextConfiguration": [ 109 ], - "on_FilesConfiguration": [ + "on_FieldsConfiguration": [ 110 ], - "on_NotesConfiguration": [ + "on_FilesConfiguration": [ 111 ], - "on_TasksConfiguration": [ + "on_NotesConfiguration": [ 112 ], - "on_TimelineConfiguration": [ + "on_TasksConfiguration": [ 113 ], - "on_ViewConfiguration": [ + "on_TimelineConfiguration": [ 114 ], - "on_RecordTableConfiguration": [ + "on_ViewConfiguration": [ 115 ], - "on_WorkflowConfiguration": [ + "on_RecordTableConfiguration": [ 116 ], - "on_WorkflowRunConfiguration": [ + "on_WorkflowConfiguration": [ 117 ], - "on_WorkflowVersionConfiguration": [ + "on_WorkflowRunConfiguration": [ 118 ], + "on_WorkflowVersionConfiguration": [ + 119 + ], "__typename": [ 1 ] }, "AggregateChartConfiguration": { "configurationType": [ - 90 + 91 ], "aggregateFieldMetadataId": [ 3 @@ -2172,7 +2177,7 @@ export default { 6 ], "numberFormat": [ - 91 + 92 ], "description": [ 1 @@ -2193,7 +2198,7 @@ export default { 1 ], "ratioAggregateConfig": [ - 78 + 79 ], "__typename": [ 1 @@ -2203,10 +2208,10 @@ export default { "ChartNumberFormat": {}, "StandaloneRichTextConfiguration": { "configurationType": [ - 90 + 91 ], "body": [ - 79 + 80 ], "__typename": [ 1 @@ -2214,7 +2219,7 @@ export default { }, "PieChartConfiguration": { "configurationType": [ - 90 + 91 ], "aggregateFieldMetadataId": [ 3 @@ -2229,10 +2234,10 @@ export default { 1 ], "dateGranularity": [ - 94 + 95 ], "orderBy": [ - 95 + 96 ], "manualSortOrder": [ 1 @@ -2275,7 +2280,7 @@ export default { "GraphOrderBy": {}, "LineChartConfiguration": { "configurationType": [ - 90 + 91 ], "aggregateFieldMetadataId": [ 3 @@ -2290,10 +2295,10 @@ export default { 1 ], "primaryAxisDateGranularity": [ - 94 + 95 ], "primaryAxisOrderBy": [ - 95 + 96 ], "primaryAxisManualSortOrder": [ 1 @@ -2305,10 +2310,10 @@ export default { 1 ], "secondaryAxisGroupByDateGranularity": [ - 94 + 95 ], "secondaryAxisOrderBy": [ - 95 + 96 ], "secondaryAxisManualSortOrder": [ 1 @@ -2320,7 +2325,7 @@ export default { 6 ], "axisNameDisplay": [ - 97 + 98 ], "displayDataLabel": [ 6 @@ -2362,7 +2367,7 @@ export default { "AxisNameDisplay": {}, "IframeConfiguration": { "configurationType": [ - 90 + 91 ], "url": [ 1 @@ -2373,7 +2378,7 @@ export default { }, "BarChartConfiguration": { "configurationType": [ - 90 + 91 ], "aggregateFieldMetadataId": [ 3 @@ -2388,10 +2393,10 @@ export default { 1 ], "primaryAxisDateGranularity": [ - 94 + 95 ], "primaryAxisOrderBy": [ - 95 + 96 ], "primaryAxisManualSortOrder": [ 1 @@ -2403,10 +2408,10 @@ export default { 1 ], "secondaryAxisGroupByDateGranularity": [ - 94 + 95 ], "secondaryAxisOrderBy": [ - 95 + 96 ], "secondaryAxisManualSortOrder": [ 1 @@ -2418,7 +2423,7 @@ export default { 6 ], "axisNameDisplay": [ - 97 + 98 ], "displayDataLabel": [ 6 @@ -2442,10 +2447,10 @@ export default { 15 ], "groupMode": [ - 100 + 101 ], "layout": [ - 101 + 102 ], "isCumulative": [ 6 @@ -2464,7 +2469,7 @@ export default { "BarChartLayout": {}, "CalendarConfiguration": { "configurationType": [ - 90 + 91 ], "__typename": [ 1 @@ -2472,7 +2477,7 @@ export default { }, "FrontComponentConfiguration": { "configurationType": [ - 90 + 91 ], "frontComponentId": [ 3 @@ -2483,7 +2488,7 @@ export default { }, "EmailsConfiguration": { "configurationType": [ - 90 + 91 ], "__typename": [ 1 @@ -2491,7 +2496,7 @@ export default { }, "EmailThreadConfiguration": { "configurationType": [ - 90 + 91 ], "__typename": [ 1 @@ -2499,13 +2504,13 @@ export default { }, "FieldConfiguration": { "configurationType": [ - 90 + 91 ], "fieldMetadataId": [ 1 ], "fieldDisplayMode": [ - 107 + 108 ], "viewId": [ 1 @@ -2517,7 +2522,7 @@ export default { "FieldDisplayMode": {}, "FieldRichTextConfiguration": { "configurationType": [ - 90 + 91 ], "__typename": [ 1 @@ -2525,7 +2530,7 @@ export default { }, "FieldsConfiguration": { "configurationType": [ - 90 + 91 ], "viewId": [ 1 @@ -2542,7 +2547,7 @@ export default { }, "FilesConfiguration": { "configurationType": [ - 90 + 91 ], "__typename": [ 1 @@ -2550,7 +2555,7 @@ export default { }, "NotesConfiguration": { "configurationType": [ - 90 + 91 ], "__typename": [ 1 @@ -2558,7 +2563,7 @@ export default { }, "TasksConfiguration": { "configurationType": [ - 90 + 91 ], "__typename": [ 1 @@ -2566,7 +2571,7 @@ export default { }, "TimelineConfiguration": { "configurationType": [ - 90 + 91 ], "__typename": [ 1 @@ -2574,7 +2579,7 @@ export default { }, "ViewConfiguration": { "configurationType": [ - 90 + 91 ], "__typename": [ 1 @@ -2582,7 +2587,7 @@ export default { }, "RecordTableConfiguration": { "configurationType": [ - 90 + 91 ], "viewId": [ 1 @@ -2596,7 +2601,7 @@ export default { }, "WorkflowConfiguration": { "configurationType": [ - 90 + 91 ], "__typename": [ 1 @@ -2604,7 +2609,7 @@ export default { }, "WorkflowRunConfiguration": { "configurationType": [ - 90 + 91 ], "__typename": [ 1 @@ -2612,7 +2617,7 @@ export default { }, "WorkflowVersionConfiguration": { "configurationType": [ - 90 + 91 ], "__typename": [ 1 @@ -2635,13 +2640,13 @@ export default { 3 ], "widgets": [ - 81 + 82 ], "icon": [ 1 ], "layoutMode": [ - 85 + 86 ], "createdAt": [ 4 @@ -2670,13 +2675,13 @@ export default { 1 ], "type": [ - 121 + 122 ], "objectMetadataId": [ 3 ], "tabs": [ - 119 + 120 ], "defaultTabToFocusOnMobileAndSidePanelId": [ 3 @@ -2726,7 +2731,7 @@ export default { 1 ], "oauth": [ - 122 + 123 ], "__typename": [ 1 @@ -2828,7 +2833,7 @@ export default { 11 ], "items": [ - 128 + 129 ], "__typename": [ 1 @@ -2836,14 +2841,14 @@ export default { }, "BillingProductMetadata": { "planKey": [ - 131 - ], - "priceUsageBased": [ 132 ], - "productKey": [ + "priceUsageBased": [ 133 ], + "productKey": [ + 134 + ], "__typename": [ 1 ] @@ -2853,7 +2858,7 @@ export default { "BillingProductKey": {}, "BillingPriceLicensed": { "recurringInterval": [ - 135 + 136 ], "unitAmount": [ 11 @@ -2862,7 +2867,7 @@ export default { 1 ], "priceUsageType": [ - 132 + 133 ], "creditAmount": [ 11 @@ -2888,16 +2893,16 @@ export default { }, "BillingPriceMetered": { "tiers": [ - 136 + 137 ], "recurringInterval": [ - 135 + 136 ], "stripePriceId": [ 1 ], "priceUsageType": [ - 132 + 133 ], "__typename": [ 1 @@ -2914,7 +2919,7 @@ export default { 1 ], "metadata": [ - 130 + 131 ], "__typename": [ 1 @@ -2931,10 +2936,10 @@ export default { 1 ], "metadata": [ - 130 + 131 ], "prices": [ - 134 + 135 ], "__typename": [ 1 @@ -2951,10 +2956,10 @@ export default { 1 ], "metadata": [ - 130 + 131 ], "prices": [ - 137 + 138 ], "__typename": [ 1 @@ -2996,13 +3001,13 @@ export default { 3 ], "status": [ - 144 + 145 ], "interval": [ - 135 + 136 ], "billingSubscriptionItems": [ - 141 + 142 ], "currentPeriodEnd": [ 4 @@ -3011,7 +3016,7 @@ export default { 15 ], "phases": [ - 129 + 130 ], "cancelAt": [ 4 @@ -3023,7 +3028,7 @@ export default { "SubscriptionStatus": {}, "BillingEndTrialPeriod": { "status": [ - 144 + 145 ], "hasPaymentMethod": [ 6 @@ -3037,7 +3042,7 @@ export default { }, "BillingResourceCreditUsage": { "productKey": [ - 133 + 134 ], "periodStart": [ 4 @@ -3066,16 +3071,16 @@ export default { }, "BillingPlan": { "planKey": [ - 131 + 132 ], "baseProducts": [ - 139 + 140 ], "resourceCreditProducts": [ - 139 + 140 ], "meteredProducts": [ - 140 + 141 ], "__typename": [ 1 @@ -3102,10 +3107,10 @@ export default { }, "BillingUpdate": { "currentBillingSubscription": [ - 143 + 144 ], "billingSubscriptions": [ - 143 + 144 ], "__typename": [ 1 @@ -3155,7 +3160,7 @@ export default { 1 ], "result": [ - 153 + 154 ], "__typename": [ 1 @@ -3192,7 +3197,7 @@ export default { 3 ], "type": [ - 157 + 158 ], "name": [ 1 @@ -3225,7 +3230,7 @@ export default { 4 ], "targetRecordIdentifier": [ - 155 + 156 ], "__typename": [ 1 @@ -3251,7 +3256,7 @@ export default { }, "MetadataEvent": { "type": [ - 160 + 161 ], "metadataName": [ 1 @@ -3260,7 +3265,7 @@ export default { 1 ], "properties": [ - 158 + 159 ], "updatedCollectionHash": [ 1 @@ -3272,7 +3277,7 @@ export default { "MetadataEventAction": {}, "ObjectRecordEvent": { "action": [ - 162 + 163 ], "objectNameSingular": [ 1 @@ -3287,7 +3292,7 @@ export default { 1 ], "properties": [ - 158 + 159 ], "__typename": [ 1 @@ -3299,7 +3304,7 @@ export default { 1 ], "objectRecordEvent": [ - 161 + 162 ], "__typename": [ 1 @@ -3310,10 +3315,10 @@ export default { 1 ], "objectRecordEventsWithQueryIds": [ - 163 + 164 ], "metadataEvents": [ - 159 + 160 ], "__typename": [ 1 @@ -3330,7 +3335,7 @@ export default { 11 ], "status": [ - 166 + 167 ], "error": [ 15 @@ -3342,7 +3347,7 @@ export default { "LogicFunctionExecutionStatus": {}, "FeatureFlag": { "key": [ - 168 + 169 ], "value": [ 6 @@ -3414,7 +3419,7 @@ export default { 1 ], "versionDistribution": [ - 171 + 172 ], "__typename": [ 1 @@ -3439,10 +3444,10 @@ export default { 1 ], "type": [ - 175 + 176 ], "status": [ - 176 + 177 ], "issuer": [ 1 @@ -3455,7 +3460,7 @@ export default { "SSOIdentityProviderStatus": {}, "AuthProviders": { "sso": [ - 174 + 175 ], "google": [ 6 @@ -3492,10 +3497,10 @@ export default { 3 ], "authProviders": [ - 177 + 178 ], "authBypassProviders": [ - 178 + 179 ], "logo": [ 1 @@ -3504,7 +3509,7 @@ export default { 1 ], "workspaceUrls": [ - 169 + 170 ], "__typename": [ 1 @@ -3543,7 +3548,7 @@ export default { 1 ], "modelFamily": [ - 183 + 184 ], "modelFamilyLabel": [ 1 @@ -3558,7 +3563,7 @@ export default { 11 ], "nativeCapabilities": [ - 181 + 182 ], "isDeprecated": [ 6 @@ -3597,7 +3602,7 @@ export default { 1 ], "trialPeriods": [ - 173 + 174 ], "__typename": [ 1 @@ -3605,7 +3610,7 @@ export default { }, "Support": { "supportDriver": [ - 186 + 187 ], "supportFrontChatId": [ 1 @@ -3631,7 +3636,7 @@ export default { }, "Captcha": { "provider": [ - 189 + 190 ], "siteKey": [ 1 @@ -3665,10 +3670,10 @@ export default { }, "PublicFeatureFlag": { "key": [ - 168 + 169 ], "metadata": [ - 191 + 192 ], "__typename": [ 1 @@ -3693,13 +3698,13 @@ export default { 1 ], "authProviders": [ - 177 + 178 ], "billing": [ - 184 + 185 ], "aiModels": [ - 182 + 183 ], "signInPrefilled": [ 6 @@ -3723,25 +3728,25 @@ export default { 6 ], "support": [ - 185 + 186 ], "isAttachmentPreviewEnabled": [ 6 ], "sentry": [ - 187 - ], - "captcha": [ 188 ], + "captcha": [ + 189 + ], "api": [ - 190 + 191 ], "canManageFeatureFlags": [ 6 ], "publicFeatureFlags": [ - 192 + 193 ], "isMicrosoftMessagingEnabled": [ 6 @@ -3780,7 +3785,7 @@ export default { 6 ], "maintenance": [ - 193 + 194 ], "__typename": [ 1 @@ -3841,7 +3846,7 @@ export default { }, "Relation": { "type": [ - 200 + 201 ], "sourceObjectMetadata": [ 52 @@ -3913,10 +3918,10 @@ export default { }, "IndexConnection": { "pageInfo": [ - 203 + 204 ], "edges": [ - 202 + 203 ], "__typename": [ 1 @@ -3935,10 +3940,10 @@ export default { }, "IndexObjectMetadataConnection": { "pageInfo": [ - 203 + 204 ], "edges": [ - 205 + 206 ], "__typename": [ 1 @@ -3980,10 +3985,10 @@ export default { }, "ObjectConnection": { "pageInfo": [ - 203 + 204 ], "edges": [ - 205 + 206 ], "__typename": [ 1 @@ -3991,10 +3996,10 @@ export default { }, "ObjectIndexMetadatasConnection": { "pageInfo": [ - 203 + 204 ], "edges": [ - 202 + 203 ], "__typename": [ 1 @@ -4013,10 +4018,10 @@ export default { }, "ObjectFieldsConnection": { "pageInfo": [ - 203 + 204 ], "edges": [ - 211 + 212 ], "__typename": [ 1 @@ -4024,10 +4029,10 @@ export default { }, "FieldConnection": { "pageInfo": [ - 203 + 204 ], "edges": [ - 211 + 212 ], "__typename": [ 1 @@ -4035,7 +4040,7 @@ export default { }, "AppConnection": { "id": [ - 215 + 216 ], "providerName": [ 1 @@ -4087,7 +4092,7 @@ export default { 3 ], "type": [ - 175 + 176 ], "issuer": [ 1 @@ -4096,7 +4101,7 @@ export default { 1 ], "status": [ - 176 + 177 ], "__typename": [ 1 @@ -4115,7 +4120,7 @@ export default { }, "FindAvailableSSOIDP": { "type": [ - 175 + 176 ], "id": [ 3 @@ -4127,10 +4132,10 @@ export default { 1 ], "status": [ - 176 + 177 ], "workspace": [ - 219 + 220 ], "__typename": [ 1 @@ -4141,7 +4146,7 @@ export default { 3 ], "type": [ - 175 + 176 ], "issuer": [ 1 @@ -4150,7 +4155,7 @@ export default { 1 ], "status": [ - 176 + 177 ], "__typename": [ 1 @@ -4158,7 +4163,7 @@ export default { }, "SSOConnection": { "type": [ - 175 + 176 ], "id": [ 3 @@ -4170,7 +4175,7 @@ export default { 1 ], "status": [ - 176 + 177 ], "__typename": [ 1 @@ -4193,13 +4198,13 @@ export default { 1 ], "workspaceUrls": [ - 169 + 170 ], "logo": [ 1 ], "sso": [ - 222 + 223 ], "__typename": [ 1 @@ -4207,10 +4212,10 @@ export default { }, "AvailableWorkspaces": { "availableWorkspacesForSignIn": [ - 223 + 224 ], "availableWorkspacesForSignUp": [ - 223 + 224 ], "__typename": [ 1 @@ -4238,7 +4243,7 @@ export default { }, "BillingEntitlement": { "key": [ - 227 + 228 ], "value": [ 6 @@ -4276,7 +4281,7 @@ export default { 1 ], "records": [ - 228 + 229 ], "isCustomDomainEnabled": [ 6 @@ -4315,7 +4320,7 @@ export default { 1 ], "connectionSecurity": [ - 233 + 234 ], "__typename": [ 1 @@ -4324,13 +4329,13 @@ export default { "EmailConnectionSecurity": {}, "PublicImapSmtpCaldavConnectionParameters": { "IMAP": [ - 232 + 233 ], "SMTP": [ - 232 + 233 ], "CALDAV": [ - 232 + 233 ], "__typename": [ 1 @@ -4386,7 +4391,7 @@ export default { 4 ], "connectionParameters": [ - 234 + 235 ], "__typename": [ 1 @@ -4437,10 +4442,10 @@ export default { }, "AvailableWorkspacesAndAccessTokens": { "tokens": [ - 240 + 241 ], "availableWorkspaces": [ - 224 + 225 ], "__typename": [ 1 @@ -4478,7 +4483,7 @@ export default { }, "WorkspaceUrlsAndId": { "workspaceUrls": [ - 169 + 170 ], "id": [ 3 @@ -4492,7 +4497,7 @@ export default { 32 ], "workspace": [ - 245 + 246 ], "__typename": [ 1 @@ -4525,7 +4530,7 @@ export default { 32 ], "workspaceUrls": [ - 169 + 170 ], "__typename": [ 1 @@ -4569,7 +4574,7 @@ export default { }, "AuthTokens": { "tokens": [ - 240 + 241 ], "__typename": [ 1 @@ -4610,7 +4615,7 @@ export default { 32 ], "workspace": [ - 245 + 246 ], "__typename": [ 1 @@ -4632,7 +4637,7 @@ export default { 1 ], "dailyUsage": [ - 258 + 259 ], "__typename": [ 1 @@ -4640,16 +4645,16 @@ export default { }, "UsageAnalytics": { "usageByUser": [ - 195 + 196 ], "usageByOperationType": [ - 195 + 196 ], "usageByModel": [ - 195 + 196 ], "timeSeries": [ - 258 + 259 ], "periodStart": [ 4 @@ -4658,7 +4663,7 @@ export default { 4 ], "userDailyUsage": [ - 259 + 260 ], "__typename": [ 1 @@ -4815,10 +4820,10 @@ export default { 1 ], "status": [ - 269 + 270 ], "verificationRecords": [ - 267 + 268 ], "verifiedAt": [ 4 @@ -4833,22 +4838,22 @@ export default { 3 ], "visibility": [ - 271 + 272 ], "handle": [ 1 ], "type": [ - 272 + 273 ], "isContactAutoCreationEnabled": [ 6 ], "contactAutoCreationPolicy": [ - 273 + 274 ], "messageFolderImportPolicy": [ - 274 + 275 ], "excludeNonProfessionalEmails": [ 6 @@ -4857,7 +4862,7 @@ export default { 6 ], "pendingGroupEmailsAction": [ - 275 + 276 ], "isSyncEnabled": [ 6 @@ -4866,10 +4871,10 @@ export default { 4 ], "syncStatus": [ - 276 + 277 ], "syncStage": [ - 277 + 278 ], "syncStageStartedAt": [ 4 @@ -4890,7 +4895,7 @@ export default { 4 ], "connectedAccount": [ - 235 + 236 ], "__typename": [ 1 @@ -4905,7 +4910,7 @@ export default { "MessageChannelSyncStage": {}, "CreateEmailGroupChannelOutput": { "messageChannel": [ - 270 + 271 ], "forwardingAddress": [ 1 @@ -4967,7 +4972,7 @@ export default { 21 ], "skipped": [ - 281 + 282 ], "__typename": [ 1 @@ -4990,7 +4995,7 @@ export default { 1 ], "visibility": [ - 284 + 285 ], "__typename": [ 1 @@ -5036,7 +5041,7 @@ export default { 1 ], "location": [ - 286 + 287 ], "__typename": [ 1 @@ -5053,7 +5058,7 @@ export default { 1 ], "connectionSecurity": [ - 233 + 234 ], "__typename": [ 1 @@ -5061,13 +5066,13 @@ export default { }, "ImapSmtpCaldavPublicConnectionParameters": { "IMAP": [ - 288 + 289 ], "SMTP": [ - 288 + 289 ], "CALDAV": [ - 288 + 289 ], "__typename": [ 1 @@ -5087,7 +5092,7 @@ export default { 3 ], "connectionParameters": [ - 289 + 290 ], "__typename": [ 1 @@ -5309,7 +5314,7 @@ export default { 1 ], "series": [ - 298 + 299 ], "xAxisLabel": [ 1 @@ -5324,10 +5329,10 @@ export default { 6 ], "layout": [ - 101 + 102 ], "groupMode": [ - 100 + 101 ], "hasTooManyGroups": [ 6 @@ -5358,7 +5363,7 @@ export default { 1 ], "data": [ - 300 + 301 ], "__typename": [ 1 @@ -5366,7 +5371,7 @@ export default { }, "LineChartData": { "series": [ - 301 + 302 ], "xAxisLabel": [ 1 @@ -5403,7 +5408,7 @@ export default { }, "PieChartData": { "data": [ - 303 + 304 ], "showLegend": [ 6 @@ -5508,13 +5513,13 @@ export default { }, "EventLogQueryResult": { "records": [ - 308 + 309 ], "totalCount": [ 21 ], "pageInfo": [ - 309 + 310 ], "__typename": [ 1 @@ -5578,7 +5583,7 @@ export default { 1 ], "parts": [ - 294 + 295 ], "processedAt": [ 4 @@ -5592,7 +5597,7 @@ export default { }, "AgentChatThread": { "id": [ - 215 + 216 ], "title": [ 1 @@ -5647,7 +5652,7 @@ export default { }, "AiSystemPromptPreview": { "sections": [ - 314 + 315 ], "estimatedTokenCount": [ 21 @@ -5675,7 +5680,7 @@ export default { 21 ], "error": [ - 316 + 317 ], "__typename": [ 1 @@ -5737,10 +5742,10 @@ export default { 3 ], "evaluations": [ - 320 + 321 ], "messages": [ - 312 + 313 ], "createdAt": [ 4 @@ -5771,19 +5776,19 @@ export default { 1 ], "syncStatus": [ - 324 - ], - "syncStage": [ 325 ], - "visibility": [ + "syncStage": [ 326 ], + "visibility": [ + 327 + ], "isContactAutoCreationEnabled": [ 6 ], "contactAutoCreationPolicy": [ - 327 + 328 ], "isSyncEnabled": [ 6 @@ -5834,7 +5839,7 @@ export default { 1 ], "pendingSyncAction": [ - 329 + 330 ], "messageChannelId": [ 3 @@ -5852,7 +5857,7 @@ export default { "MessageFolderPendingSyncAction": {}, "CollectionHash": { "collectionName": [ - 331 + 332 ], "hash": [ 1 @@ -5916,13 +5921,13 @@ export default { }, "MinimalMetadata": { "objectMetadataItems": [ - 332 - ], - "views": [ 333 ], + "views": [ + 334 + ], "collectionHashes": [ - 330 + 331 ], "__typename": [ 1 @@ -5930,10 +5935,10 @@ export default { }, "Query": { "navigationMenuItems": [ - 156 + 157 ], "navigationMenuItem": [ - 156, + 157, { "id": [ 3, @@ -5958,7 +5963,7 @@ export default { } ], "enterpriseSubscriptionStatus": [ - 125 + 126 ], "getViewFilterGroups": [ 58, @@ -6075,16 +6080,16 @@ export default { 2, { "input": [ - 336, + 337, "GetApiKeyInput!" ] } ], "getInviteSuggestions": [ - 151 + 152 ], "applicationConnectionProviders": [ - 123, + 124, { "applicationId": [ 3, @@ -6093,7 +6098,7 @@ export default { } ], "billingPortalSession": [ - 149, + 150, { "returnUrlPath": [ 1 @@ -6104,19 +6109,19 @@ export default { } ], "listPlans": [ - 147 + 148 ], "getResourceCreditUsage": [ - 146 + 147 ], "findWorkspaceInvitations": [ - 153 + 154 ], "getApprovedAccessDomains": [ - 126 + 127 ], "getPageLayoutTabs": [ - 119, + 120, { "pageLayoutId": [ 1, @@ -6125,7 +6130,7 @@ export default { } ], "getPageLayoutTab": [ - 119, + 120, { "id": [ 1, @@ -6134,18 +6139,18 @@ export default { } ], "getPageLayouts": [ - 120, + 121, { "objectMetadataId": [ 1 ], "pageLayoutType": [ - 121 + 122 ] } ], "getPageLayout": [ - 120, + 121, { "id": [ 1, @@ -6154,7 +6159,7 @@ export default { } ], "getPageLayoutWidgets": [ - 81, + 82, { "pageLayoutTabId": [ 1, @@ -6163,7 +6168,7 @@ export default { } ], "getPageLayoutWidget": [ - 81, + 82, { "id": [ 1, @@ -6178,13 +6183,13 @@ export default { 25, { "input": [ - 337, + 338, "AgentIdInput!" ] } ], "objectRecordCounts": [ - 207 + 208 ], "object": [ 52, @@ -6196,7 +6201,7 @@ export default { } ], "objects": [ - 209, + 210, { "paging": [ 47, @@ -6218,7 +6223,7 @@ export default { } ], "indexMetadatas": [ - 204, + 205, { "paging": [ 47, @@ -6234,7 +6239,7 @@ export default { 41, { "input": [ - 338, + 339, "LogicFunctionIdInput!" ] } @@ -6246,7 +6251,7 @@ export default { 15, { "input": [ - 338, + 339, "LogicFunctionIdInput!" ] } @@ -6255,7 +6260,7 @@ export default { 1, { "input": [ - 338, + 339, "LogicFunctionIdInput!" ] } @@ -6288,7 +6293,7 @@ export default { 72 ], "getPublicWorkspaceDataByDomain": [ - 179, + 180, { "origin": [ 1 @@ -6296,7 +6301,7 @@ export default { } ], "getPublicWorkspaceDataById": [ - 180, + 181, { "id": [ 3, @@ -6314,7 +6319,7 @@ export default { } ], "fields": [ - 213, + 214, { "paging": [ 47, @@ -6361,7 +6366,7 @@ export default { 29 ], "findApplicationRegistrationByClientId": [ - 197, + 198, { "clientId": [ 1, @@ -6391,7 +6396,7 @@ export default { } ], "findApplicationRegistrationStats": [ - 172, + 173, { "id": [ 1, @@ -6400,7 +6405,7 @@ export default { } ], "findApplicationRegistrationVariables": [ - 170, + 171, { "applicationRegistrationId": [ 1, @@ -6418,22 +6423,22 @@ export default { } ], "previewMessageCampaignAudience": [ - 279, + 280, { "input": [ - 339, + 340, "PreviewMessageCampaignAudienceInput!" ] } ], "unsubscribeTopics": [ - 283 + 284 ], "unsubscribePagePreviewUrl": [ 1 ], "myMessageChannels": [ - 270, + 271, { "connectedAccountId": [ 3 @@ -6441,13 +6446,13 @@ export default { } ], "getEmailingDomains": [ - 268 + 269 ], "myConnectedAccounts": [ - 235 + 236 ], "getToolIndex": [ - 293 + 294 ], "getToolInputSchema": [ 15, @@ -6459,10 +6464,10 @@ export default { } ], "webhooks": [ - 292 + 293 ], "webhook": [ - 292, + 293, { "id": [ 3, @@ -6471,7 +6476,7 @@ export default { } ], "myMessageFolders": [ - 328, + 329, { "messageChannelId": [ 3 @@ -6479,7 +6484,7 @@ export default { } ], "myCalendarChannels": [ - 323, + 324, { "connectedAccountId": [ 3 @@ -6487,33 +6492,33 @@ export default { } ], "minimalMetadata": [ - 334 + 335 ], "appConnections": [ - 214, + 215, { "filter": [ - 340 + 341 ] } ], "appConnection": [ - 214, + 215, { "id": [ - 215, + 216, "ID!" ] } ], "findWorkspaceAiStats": [ - 322 + 323 ], "chatThreads": [ - 313 + 314 ], "chatThread": [ - 313, + 314, { "id": [ 3, @@ -6522,7 +6527,7 @@ export default { } ], "chatMessages": [ - 312, + 313, { "threadId": [ 3, @@ -6531,7 +6536,7 @@ export default { } ], "chatStreamCatchupChunks": [ - 317, + 318, { "threadId": [ 3, @@ -6540,13 +6545,13 @@ export default { } ], "getAiSystemPromptPreview": [ - 315 + 316 ], "skills": [ - 311 + 312 ], "skill": [ - 311, + 312, { "id": [ 3, @@ -6555,7 +6560,7 @@ export default { } ], "agentTurns": [ - 321, + 322, { "agentId": [ 3, @@ -6564,7 +6569,7 @@ export default { } ], "checkUserExists": [ - 255, + 256, { "email": [ 1, @@ -6576,7 +6581,7 @@ export default { } ], "checkWorkspaceInviteHashIsValid": [ - 256, + 257, { "inviteHash": [ 1, @@ -6594,7 +6599,7 @@ export default { } ], "checkWorkspaceSubdomainAvailability": [ - 250, + 251, { "subdomain": [ 1, @@ -6603,10 +6608,10 @@ export default { } ], "getWorkspaceCreationDefaults": [ - 251 + 252 ], "validatePasswordResetToken": [ - 248, + 249, { "passwordResetToken": [ 1, @@ -6615,49 +6620,49 @@ export default { } ], "currentUser": [ - 75 + 76 ], "getSSOIdentityProviders": [ - 220 + 221 ], "eventLogs": [ - 310, + 311, { "input": [ - 341, + 342, "EventLogQueryInput!" ] } ], "pieChartData": [ - 304, + 305, { "input": [ - 345, + 346, "PieChartDataInput!" ] } ], "lineChartData": [ - 302, + 303, { "input": [ - 346, + 347, "LineChartDataInput!" ] } ], "barChartData": [ - 299, + 300, { "input": [ - 347, + 348, "BarChartDataInput!" ] } ], "getConnectedImapSmtpCaldavAccount": [ - 290, + 291, { "id": [ 3, @@ -6666,7 +6671,7 @@ export default { } ], "getAutoCompleteAddress": [ - 285, + 286, { "address": [ 1, @@ -6685,7 +6690,7 @@ export default { } ], "getAddressDetails": [ - 287, + 288, { "placeId": [ 1, @@ -6698,21 +6703,21 @@ export default { } ], "getUsageAnalytics": [ - 260, + 261, { "input": [ - 348 + 349 ] } ], "findManyPublicDomains": [ - 266 + 267 ], "findManyMarketplaceApps": [ - 264 + 265 ], "findMarketplaceAppDetail": [ - 265, + 266, { "universalIdentifier": [ 1, @@ -6742,7 +6747,7 @@ export default { }, "LogicFunctionIdInput": { "id": [ - 215 + 216 ], "__typename": [ 1 @@ -6775,10 +6780,10 @@ export default { }, "EventLogQueryInput": { "table": [ - 342 + 343 ], "filters": [ - 343 + 344 ], "first": [ 21 @@ -6799,7 +6804,7 @@ export default { 1 ], "dateRange": [ - 344 + 345 ], "recordId": [ 1 @@ -6866,7 +6871,7 @@ export default { 1 ], "operationTypes": [ - 349 + 350 ], "__typename": [ 1 @@ -6878,7 +6883,7 @@ export default { 6, { "input": [ - 351, + 352, "AddQuerySubscriptionInput!" ] } @@ -6887,49 +6892,49 @@ export default { 6, { "input": [ - 352, + 353, "RemoveQueryFromEventStreamInput!" ] } ], "createManyNavigationMenuItems": [ - 156, + 157, { "inputs": [ - 353, + 354, "[CreateNavigationMenuItemInput!]!" ] } ], "createNavigationMenuItem": [ - 156, + 157, { "input": [ - 353, + 354, "CreateNavigationMenuItemInput!" ] } ], "updateManyNavigationMenuItems": [ - 156, + 157, { "inputs": [ - 354, + 355, "[UpdateOneNavigationMenuItemInput!]!" ] } ], "updateNavigationMenuItem": [ - 156, + 157, { "input": [ - 354, + 355, "UpdateOneNavigationMenuItemInput!" ] } ], "deleteManyNavigationMenuItems": [ - 156, + 157, { "ids": [ 3, @@ -6938,7 +6943,7 @@ export default { } ], "deleteNavigationMenuItem": [ - 156, + 157, { "id": [ 3, @@ -6947,10 +6952,10 @@ export default { } ], "uploadEmailAttachmentFile": [ - 127, + 128, { "file": [ - 356, + 357, "Upload!" ] } @@ -6959,7 +6964,7 @@ export default { 6 ], "setEnterpriseKey": [ - 124, + 125, { "enterpriseKey": [ 1, @@ -6968,46 +6973,46 @@ export default { } ], "uploadAiChatFile": [ - 127, + 128, { "file": [ - 356, + 357, "Upload!" ] } ], "uploadWorkflowFile": [ - 127, + 128, { "file": [ - 356, + 357, "Upload!" ] } ], "uploadWorkspaceLogo": [ - 127, + 128, { "file": [ - 356, + 357, "Upload!" ] } ], "uploadWorkspaceMemberProfilePicture": [ - 127, + 128, { "file": [ - 356, + 357, "Upload!" ] } ], "uploadFilesFieldFile": [ - 127, + 128, { "file": [ - 356, + 357, "Upload!" ], "fieldMetadataId": [ @@ -7017,10 +7022,10 @@ export default { } ], "uploadFilesFieldFileByUniversalIdentifier": [ - 127, + 128, { "file": [ - 356, + 357, "Upload!" ], "fieldMetadataUniversalIdentifier": [ @@ -7033,7 +7038,7 @@ export default { 58, { "input": [ - 357, + 358, "CreateViewFilterGroupInput!" ] } @@ -7046,7 +7051,7 @@ export default { "String!" ], "input": [ - 358, + 359, "UpdateViewFilterGroupInput!" ] } @@ -7073,7 +7078,7 @@ export default { 60, { "input": [ - 359, + 360, "CreateViewFilterInput!" ] } @@ -7082,7 +7087,7 @@ export default { 60, { "input": [ - 360, + 361, "UpdateViewFilterInput!" ] } @@ -7091,7 +7096,7 @@ export default { 60, { "input": [ - 362, + 363, "DeleteViewFilterInput!" ] } @@ -7100,7 +7105,7 @@ export default { 60, { "input": [ - 363, + 364, "DestroyViewFilterInput!" ] } @@ -7109,7 +7114,7 @@ export default { 66, { "input": [ - 364, + 365, "CreateViewInput!" ] } @@ -7122,7 +7127,7 @@ export default { "String!" ], "input": [ - 365, + 366, "UpdateViewInput!" ] } @@ -7149,7 +7154,7 @@ export default { 66, { "input": [ - 366, + 367, "UpsertViewWidgetInput!" ] } @@ -7158,7 +7163,7 @@ export default { 63, { "input": [ - 371, + 372, "CreateViewSortInput!" ] } @@ -7167,7 +7172,7 @@ export default { 63, { "input": [ - 372, + 373, "UpdateViewSortInput!" ] } @@ -7176,7 +7181,7 @@ export default { 6, { "input": [ - 374, + 375, "DeleteViewSortInput!" ] } @@ -7185,7 +7190,7 @@ export default { 6, { "input": [ - 375, + 376, "DestroyViewSortInput!" ] } @@ -7194,7 +7199,7 @@ export default { 56, { "input": [ - 376, + 377, "UpdateViewFieldInput!" ] } @@ -7203,7 +7208,7 @@ export default { 56, { "input": [ - 378, + 379, "CreateViewFieldInput!" ] } @@ -7212,7 +7217,7 @@ export default { 56, { "inputs": [ - 378, + 379, "[CreateViewFieldInput!]!" ] } @@ -7221,7 +7226,7 @@ export default { 56, { "input": [ - 379, + 380, "DeleteViewFieldInput!" ] } @@ -7230,7 +7235,7 @@ export default { 56, { "input": [ - 380, + 381, "DestroyViewFieldInput!" ] } @@ -7239,7 +7244,7 @@ export default { 65, { "input": [ - 381, + 382, "UpdateViewFieldGroupInput!" ] } @@ -7248,7 +7253,7 @@ export default { 65, { "input": [ - 383, + 384, "CreateViewFieldGroupInput!" ] } @@ -7257,7 +7262,7 @@ export default { 65, { "inputs": [ - 383, + 384, "[CreateViewFieldGroupInput!]!" ] } @@ -7266,7 +7271,7 @@ export default { 65, { "input": [ - 384, + 385, "DeleteViewFieldGroupInput!" ] } @@ -7275,7 +7280,7 @@ export default { 65, { "input": [ - 385, + 386, "DestroyViewFieldGroupInput!" ] } @@ -7284,7 +7289,7 @@ export default { 66, { "input": [ - 386, + 387, "UpsertFieldsWidgetInput!" ] } @@ -7293,7 +7298,7 @@ export default { 2, { "input": [ - 389, + 390, "CreateApiKeyInput!" ] } @@ -7302,7 +7307,7 @@ export default { 2, { "input": [ - 390, + 391, "UpdateApiKeyInput!" ] } @@ -7311,7 +7316,7 @@ export default { 2, { "input": [ - 391, + 392, "RevokeApiKeyInput!" ] } @@ -7330,13 +7335,13 @@ export default { } ], "skipSyncEmailOnboardingStep": [ - 152 + 153 ], "skipBookOnboardingStep": [ - 152 + 153 ], "triggerInstallAppsOnboardingStep": [ - 152, + 153, { "universalIdentifiers": [ 1, @@ -7362,14 +7367,14 @@ export default { } ], "checkoutSession": [ - 149, + 150, { "recurringInterval": [ - 135, + 136, "SubscriptionInterval!" ], "plan": [ - 131, + 132, "BillingPlanKey!" ], "requirePaymentMethod": [ @@ -7382,14 +7387,14 @@ export default { } ], "createSubscriptionPaymentIntent": [ - 148, + 149, { "recurringInterval": [ - 135, + 136, "SubscriptionInterval!" ], "plan": [ - 131, + 132, "BillingPlanKey!" ], "requirePaymentMethod": [ @@ -7406,22 +7411,22 @@ export default { } ], "createBillingPaymentMethodSetupIntent": [ - 148 + 149 ], "switchSubscriptionInterval": [ - 150 + 151 ], "switchBillingPlan": [ - 150 + 151 ], "cancelSwitchBillingPlan": [ - 150 + 151 ], "cancelSwitchBillingInterval": [ - 150 + 151 ], "setResourceCreditSubscriptionPrice": [ - 150, + 151, { "priceId": [ 1, @@ -7430,10 +7435,10 @@ export default { } ], "endSubscriptionTrialPeriod": [ - 145 + 146 ], "cancelSwitchResourceCreditPrice": [ - 150 + 151 ], "deleteWorkspaceInvitation": [ 1, @@ -7445,7 +7450,7 @@ export default { } ], "resendWorkspaceInvitation": [ - 154, + 155, { "appTokenId": [ 1, @@ -7454,7 +7459,7 @@ export default { } ], "sendInvitations": [ - 154, + 155, { "emails": [ 1, @@ -7466,10 +7471,10 @@ export default { } ], "createApprovedAccessDomain": [ - 126, + 127, { "input": [ - 392, + 393, "CreateApprovedAccessDomainInput!" ] } @@ -7478,38 +7483,38 @@ export default { 6, { "input": [ - 393, + 394, "DeleteApprovedAccessDomainInput!" ] } ], "validateApprovedAccessDomain": [ - 126, + 127, { "input": [ - 394, + 395, "ValidateApprovedAccessDomainInput!" ] } ], "createPageLayoutTab": [ - 119, + 120, { "input": [ - 395, + 396, "CreatePageLayoutTabInput!" ] } ], "updatePageLayoutTab": [ - 119, + 120, { "id": [ 1, "String!" ], "input": [ - 396, + 397, "UpdatePageLayoutTabInput!" ] } @@ -7524,23 +7529,23 @@ export default { } ], "createPageLayout": [ - 120, + 121, { "input": [ - 397, + 398, "CreatePageLayoutInput!" ] } ], "updatePageLayout": [ - 120, + 121, { "id": [ 1, "String!" ], "input": [ - 398, + 399, "UpdatePageLayoutInput!" ] } @@ -7555,20 +7560,20 @@ export default { } ], "updatePageLayoutWithTabsAndWidgets": [ - 120, + 121, { "id": [ 1, "String!" ], "input": [ - 399, + 400, "UpdatePageLayoutWithTabsInput!" ] } ], "resetPageLayoutToDefault": [ - 120, + 121, { "id": [ 1, @@ -7577,7 +7582,7 @@ export default { } ], "resetPageLayoutWidgetToDefault": [ - 81, + 82, { "id": [ 1, @@ -7586,7 +7591,7 @@ export default { } ], "resetPageLayoutTabToDefault": [ - 119, + 120, { "id": [ 1, @@ -7595,23 +7600,23 @@ export default { } ], "createPageLayoutWidget": [ - 81, + 82, { "input": [ - 403, + 404, "CreatePageLayoutWidgetInput!" ] } ], "updatePageLayoutWidget": [ - 81, + 82, { "id": [ 1, "String!" ], "input": [ - 404, + 405, "UpdatePageLayoutWidgetInput!" ] } @@ -7629,7 +7634,7 @@ export default { 25, { "input": [ - 405, + 406, "CreateAgentInput!" ] } @@ -7638,7 +7643,7 @@ export default { 25, { "input": [ - 406, + 407, "UpdateAgentInput!" ] } @@ -7647,7 +7652,7 @@ export default { 25, { "input": [ - 337, + 338, "AgentIdInput!" ] } @@ -7656,7 +7661,7 @@ export default { 52, { "input": [ - 407, + 408, "CreateOneObjectInput!" ] } @@ -7665,7 +7670,7 @@ export default { 52, { "input": [ - 409, + 410, "DeleteOneObjectInput!" ] } @@ -7674,7 +7679,7 @@ export default { 52, { "input": [ - 410, + 411, "UpdateOneObjectInput!" ] } @@ -7683,7 +7688,7 @@ export default { 45, { "input": [ - 412, + 413, "CreateOneIndexInput!" ] } @@ -7692,7 +7697,7 @@ export default { 45, { "input": [ - 415, + 416, "DeleteOneIndexInput!" ] } @@ -7701,7 +7706,7 @@ export default { 41, { "input": [ - 338, + 339, "LogicFunctionIdInput!" ] } @@ -7710,16 +7715,16 @@ export default { 41, { "input": [ - 416, + 417, "CreateLogicFunctionFromSourceInput!" ] } ], "executeOneLogicFunction": [ - 165, + 166, { "input": [ - 417, + 418, "ExecuteOneLogicFunctionInput!" ] } @@ -7728,7 +7733,7 @@ export default { 6, { "input": [ - 418, + 419, "UpdateLogicFunctionFromSourceInput!" ] } @@ -7737,7 +7742,7 @@ export default { 35, { "input": [ - 420, + 421, "CreateCommandMenuItemInput!" ] } @@ -7746,7 +7751,7 @@ export default { 35, { "input": [ - 421, + 422, "UpdateCommandMenuItemInput!" ] } @@ -7773,7 +7778,7 @@ export default { 34, { "input": [ - 422, + 423, "CreateFrontComponentInput!" ] } @@ -7782,7 +7787,7 @@ export default { 34, { "input": [ - 423, + 424, "UpdateFrontComponentInput!" ] } @@ -7800,7 +7805,7 @@ export default { 72, { "data": [ - 425, + 426, "ActivateWorkspaceInput!" ] } @@ -7809,7 +7814,7 @@ export default { 72, { "data": [ - 426, + 427, "UpdateWorkspaceInput!" ] } @@ -7818,13 +7823,13 @@ export default { 72 ], "checkCustomDomainValidRecords": [ - 229 + 230 ], "createOneField": [ 43, { "input": [ - 427, + 428, "CreateOneFieldMetadataInput!" ] } @@ -7833,7 +7838,7 @@ export default { 43, { "input": [ - 429, + 430, "UpdateOneFieldMetadataInput!" ] } @@ -7842,7 +7847,7 @@ export default { 43, { "input": [ - 431, + 432, "DeleteOneFieldInput!" ] } @@ -7851,7 +7856,7 @@ export default { 62, { "input": [ - 432, + 433, "CreateViewGroupInput!" ] } @@ -7860,7 +7865,7 @@ export default { 62, { "inputs": [ - 432, + 433, "[CreateViewGroupInput!]!" ] } @@ -7869,7 +7874,7 @@ export default { 62, { "input": [ - 433, + 434, "UpdateViewGroupInput!" ] } @@ -7878,7 +7883,7 @@ export default { 62, { "inputs": [ - 433, + 434, "[UpdateViewGroupInput!]!" ] } @@ -7887,7 +7892,7 @@ export default { 62, { "input": [ - 435, + 436, "DeleteViewGroupInput!" ] } @@ -7896,7 +7901,7 @@ export default { 62, { "input": [ - 436, + 437, "DestroyViewGroupInput!" ] } @@ -7905,7 +7910,7 @@ export default { 6, { "workspaceMigration": [ - 437, + 438, "WorkspaceMigrationInput!" ] } @@ -7936,7 +7941,7 @@ export default { 29, { "createRoleInput": [ - 440, + 441, "CreateRoleInput!" ] } @@ -7945,7 +7950,7 @@ export default { 29, { "updateRoleInput": [ - 441, + 442, "UpdateRoleInput!" ] } @@ -7963,7 +7968,7 @@ export default { 16, { "upsertObjectPermissionsInput": [ - 443, + 444, "UpsertObjectPermissionsInput!" ] } @@ -7972,7 +7977,7 @@ export default { 27, { "upsertPermissionFlagsInput": [ - 445, + 446, "UpsertPermissionFlagsInput!" ] } @@ -7981,16 +7986,16 @@ export default { 26, { "upsertFieldPermissionsInput": [ - 446, + 447, "UpsertFieldPermissionsInput!" ] } ], "upsertRowLevelPermissionPredicates": [ - 230, + 231, { "input": [ - 448, + 449, "UpsertRowLevelPermissionPredicatesInput!" ] } @@ -8018,10 +8023,10 @@ export default { } ], "createApplicationRegistration": [ - 196, + 197, { "input": [ - 451, + 452, "CreateApplicationRegistrationInput!" ] } @@ -8030,7 +8035,7 @@ export default { 7, { "input": [ - 452, + 453, "UpdateApplicationRegistrationInput!" ] } @@ -8045,7 +8050,7 @@ export default { } ], "rotateApplicationRegistrationClientSecret": [ - 198, + 199, { "id": [ 1, @@ -8057,7 +8062,7 @@ export default { 5, { "input": [ - 454, + 455, "CreateApplicationRegistrationVariableInput!" ] } @@ -8066,7 +8071,7 @@ export default { 5, { "input": [ - 455, + 456, "UpdateApplicationRegistrationVariableInput!" ] } @@ -8084,7 +8089,7 @@ export default { 7, { "file": [ - 356, + 357, "Upload!" ], "universalIdentifier": [ @@ -8106,37 +8111,37 @@ export default { } ], "sendEmailViaEmailingDomain": [ - 280, + 281, { "input": [ - 457, + 458, "SendEmailViaDomainInput!" ] } ], "sendMessageCampaign": [ - 282, + 283, { "input": [ - 458, + 459, "SendMessageCampaignInput!" ] } ], "createUnsubscribeTopic": [ - 283, + 284, { "input": [ - 459, + 460, "CreateUnsubscribeTopicInput!" ] } ], "updateUnsubscribeTopic": [ - 283, + 284, { "input": [ - 460, + 461, "UpdateUnsubscribeTopicInput!" ] } @@ -8151,25 +8156,25 @@ export default { } ], "updateMessageChannel": [ - 270, + 271, { "input": [ - 461, + 462, "UpdateMessageChannelInput!" ] } ], "createEmailGroupChannel": [ - 278, + 279, { "input": [ - 463, + 464, "CreateEmailGroupChannelInput!" ] } ], "deleteEmailGroupChannel": [ - 270, + 271, { "id": [ 3, @@ -8178,10 +8183,10 @@ export default { } ], "createEmailingDomain": [ - 268, + 269, { "input": [ - 464, + 465, "CreateEmailingDomainInput!" ] } @@ -8196,7 +8201,7 @@ export default { } ], "verifyEmailingDomain": [ - 268, + 269, { "id": [ 1, @@ -8205,7 +8210,7 @@ export default { } ], "deleteConnectedAccount": [ - 235, + 236, { "id": [ 3, @@ -8214,34 +8219,34 @@ export default { } ], "runAgent": [ - 295, + 296, { "input": [ - 465, + 466, "RunAgentInput!" ] } ], "createWebhook": [ - 292, + 293, { "input": [ - 466, + 467, "CreateWebhookInput!" ] } ], "updateWebhook": [ - 292, + 293, { "input": [ - 467, + 468, "UpdateWebhookInput!" ] } ], "deleteWebhook": [ - 292, + 293, { "id": [ 3, @@ -8250,37 +8255,37 @@ export default { } ], "updateMessageFolder": [ - 328, + 329, { "input": [ - 469, + 470, "UpdateMessageFolderInput!" ] } ], "updateMessageFolders": [ - 328, + 329, { "input": [ - 471, + 472, "UpdateMessageFoldersInput!" ] } ], "updateCalendarChannel": [ - 323, + 324, { "input": [ - 472, + 473, "UpdateCalendarChannelInput!" ] } ], "createChatThread": [ - 313 + 314 ], "sendChatMessage": [ - 318, + 319, { "threadId": [ 3, @@ -8301,13 +8306,13 @@ export default { 1 ], "fileAttachments": [ - 474, + 475, "[FileAttachmentInput!]" ] } ], "retryChatMessage": [ - 318, + 319, { "threadId": [ 3, @@ -8319,7 +8324,7 @@ export default { } ], "answerAgentChatQuestion": [ - 318, + 319, { "threadId": [ 3, @@ -8330,7 +8335,7 @@ export default { "UUID!" ], "answers": [ - 475, + 476, "[AgentChatQuestionAnswerInput!]!" ], "modelId": [ @@ -8348,7 +8353,7 @@ export default { } ], "renameChatThread": [ - 313, + 314, { "id": [ 3, @@ -8361,7 +8366,7 @@ export default { } ], "archiveChatThread": [ - 313, + 314, { "id": [ 3, @@ -8370,7 +8375,7 @@ export default { } ], "unarchiveChatThread": [ - 313, + 314, { "id": [ 3, @@ -8397,25 +8402,25 @@ export default { } ], "createSkill": [ - 311, + 312, { "input": [ - 476, + 477, "CreateSkillInput!" ] } ], "updateSkill": [ - 311, + 312, { "input": [ - 477, + 478, "UpdateSkillInput!" ] } ], "deleteSkill": [ - 311, + 312, { "id": [ 3, @@ -8424,7 +8429,7 @@ export default { } ], "activateSkill": [ - 311, + 312, { "id": [ 3, @@ -8433,7 +8438,7 @@ export default { } ], "deactivateSkill": [ - 311, + 312, { "id": [ 3, @@ -8442,7 +8447,7 @@ export default { } ], "evaluateAgentTurn": [ - 320, + 321, { "turnId": [ 3, @@ -8451,7 +8456,7 @@ export default { } ], "runEvaluationInput": [ - 321, + 322, { "agentId": [ 3, @@ -8464,16 +8469,16 @@ export default { } ], "getAuthorizationUrlForSSO": [ - 243, + 244, { "input": [ - 478, + 479, "GetAuthorizationUrlForSSOInput!" ] } ], "getLoginTokenFromCredentials": [ - 254, + 255, { "email": [ 1, @@ -8499,7 +8504,7 @@ export default { } ], "signIn": [ - 241, + 242, { "email": [ 1, @@ -8521,7 +8526,7 @@ export default { } ], "verifyEmailAndGetLoginToken": [ - 249, + 250, { "emailVerificationToken": [ 1, @@ -8541,7 +8546,7 @@ export default { } ], "verifyEmailAndGetWorkspaceAgnosticToken": [ - 241, + 242, { "emailVerificationToken": [ 1, @@ -8557,7 +8562,7 @@ export default { } ], "getAuthTokensFromOTP": [ - 253, + 254, { "otp": [ 1, @@ -8577,7 +8582,7 @@ export default { } ], "signUp": [ - 241, + 242, { "email": [ 1, @@ -8599,7 +8604,7 @@ export default { } ], "signUpInWorkspace": [ - 246, + 247, { "email": [ 1, @@ -8630,31 +8635,31 @@ export default { } ], "signUpInNewWorkspace": [ - 246, + 247, { "input": [ - 479 + 480 ] } ], "uploadNewWorkspaceLogo": [ - 127, + 128, { "workspaceId": [ 1, "String!" ], "file": [ - 356, + 357, "Upload!" ] } ], "generateTransientToken": [ - 247 + 248 ], "getAuthTokensFromLoginToken": [ - 253, + 254, { "loginToken": [ 1, @@ -8667,7 +8672,7 @@ export default { } ], "authorizeApp": [ - 239, + 240, { "clientId": [ 1, @@ -8689,7 +8694,7 @@ export default { } ], "renewToken": [ - 253, + 254, { "appToken": [ 1, @@ -8698,7 +8703,7 @@ export default { } ], "generateApiKeyToken": [ - 252, + 253, { "apiKeyId": [ 3, @@ -8714,7 +8719,7 @@ export default { 32 ], "emailPasswordResetLink": [ - 242, + 243, { "email": [ 1, @@ -8726,7 +8731,7 @@ export default { } ], "updatePasswordViaResetToken": [ - 244, + 245, { "passwordResetToken": [ 1, @@ -8739,7 +8744,7 @@ export default { } ], "initiateOTPProvisioning": [ - 237, + 238, { "loginToken": [ 1, @@ -8752,10 +8757,10 @@ export default { } ], "initiateOTPProvisioningForAuthenticatedUser": [ - 237 + 238 ], "deleteTwoFactorAuthenticationMethod": [ - 236, + 237, { "twoFactorAuthenticationMethodId": [ 3, @@ -8764,7 +8769,7 @@ export default { } ], "verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [ - 238, + 239, { "otp": [ 1, @@ -8773,7 +8778,7 @@ export default { } ], "deleteUser": [ - 75 + 76 ], "deleteUserFromWorkspace": [ 17, @@ -8788,7 +8793,7 @@ export default { 6, { "input": [ - 480, + 481, "UpdateWorkspaceMemberSettingsInput!" ] } @@ -8806,7 +8811,7 @@ export default { } ], "resendEmailVerificationToken": [ - 216, + 217, { "email": [ 1, @@ -8819,43 +8824,43 @@ export default { } ], "createOIDCIdentityProvider": [ - 221, + 222, { "input": [ - 481, + 482, "SetupOIDCSsoInput!" ] } ], "createSAMLIdentityProvider": [ - 221, + 222, { "input": [ - 482, + 483, "SetupSAMLSsoInput!" ] } ], "deleteSSOIdentityProvider": [ - 217, + 218, { "input": [ - 483, + 484, "DeleteSsoInput!" ] } ], "editSSOIdentityProvider": [ - 218, + 219, { "input": [ - 484, + 485, "EditSsoInput!" ] } ], "createObjectEvent": [ - 307, + 308, { "event": [ 1, @@ -8875,10 +8880,10 @@ export default { } ], "trackAnalytics": [ - 307, + 308, { "type": [ - 485, + 486, "AnalyticsType!" ], "name": [ @@ -8893,7 +8898,7 @@ export default { } ], "duplicateDashboard": [ - 305, + 306, { "id": [ 3, @@ -8902,7 +8907,7 @@ export default { } ], "impersonate": [ - 257, + 258, { "userId": [ 3, @@ -8915,25 +8920,25 @@ export default { } ], "createCalendarEvent": [ - 297, + 298, { "input": [ - 486, + 487, "CreateCalendarEventInput!" ] } ], "sendEmail": [ - 306, + 307, { "input": [ - 487, + 488, "SendEmailInput!" ] } ], "startChannelSync": [ - 296, + 297, { "connectedAccountId": [ 3, @@ -8942,14 +8947,14 @@ export default { } ], "saveImapSmtpCaldavAccount": [ - 291, + 292, { "handle": [ 1, "String!" ], "connectionParameters": [ - 489, + 490, "EmailAccountConnectionParameters!" ], "id": [ @@ -8958,16 +8963,16 @@ export default { } ], "updateLabPublicFeatureFlag": [ - 167, + 168, { "input": [ - 491, + 492, "UpdateLabPublicFeatureFlagInput!" ] } ], "createPublicDomain": [ - 266, + 267, { "domain": [ 1, @@ -8989,7 +8994,7 @@ export default { } ], "checkPublicDomainValidRecords": [ - 229, + 230, { "domain": [ 1, @@ -8998,10 +9003,10 @@ export default { } ], "createOneAppToken": [ - 74, + 75, { "input": [ - 492, + 493, "CreateOneAppTokenInput!" ] } @@ -9034,7 +9039,7 @@ export default { 6 ], "createDevelopmentApplication": [ - 261, + 262, { "universalIdentifier": [ 1, @@ -9056,7 +9061,7 @@ export default { } ], "syncApplication": [ - 262, + 263, { "manifest": [ 15, @@ -9068,10 +9073,10 @@ export default { } ], "uploadApplicationFile": [ - 263, + 264, { "file": [ - 356, + 357, "Upload!" ], "applicationUniversalIdentifier": [ @@ -9079,7 +9084,7 @@ export default { "String!" ], "fileFolder": [ - 494, + 495, "FileFolder!" ], "filePath": [ @@ -9156,7 +9161,7 @@ export default { 3 ], "type": [ - 157 + 158 ], "name": [ 1 @@ -9188,7 +9193,7 @@ export default { 3 ], "update": [ - 355 + 356 ], "__typename": [ 1 @@ -9298,7 +9303,7 @@ export default { 3 ], "update": [ - 361 + 362 ], "__typename": [ 1 @@ -9463,17 +9468,17 @@ export default { 3 ], "viewFields": [ - 367 - ], - "viewFilters": [ 368 ], - "viewFilterGroups": [ + "viewFilters": [ 369 ], - "viewSorts": [ + "viewFilterGroups": [ 370 ], + "viewSorts": [ + 371 + ], "__typename": [ 1 ] @@ -9583,7 +9588,7 @@ export default { 3 ], "update": [ - 373 + 374 ], "__typename": [ 1 @@ -9621,7 +9626,7 @@ export default { 3 ], "update": [ - 377 + 378 ], "__typename": [ 1 @@ -9697,7 +9702,7 @@ export default { 3 ], "update": [ - 382 + 383 ], "__typename": [ 1 @@ -9761,10 +9766,10 @@ export default { 3 ], "groups": [ - 387 + 388 ], "fields": [ - 388 + 389 ], "__typename": [ 1 @@ -9784,7 +9789,7 @@ export default { 6 ], "fields": [ - 388 + 389 ], "__typename": [ 1 @@ -9890,7 +9895,7 @@ export default { 3 ], "layoutMode": [ - 85 + 86 ], "__typename": [ 1 @@ -9907,7 +9912,7 @@ export default { 1 ], "layoutMode": [ - 85 + 86 ], "__typename": [ 1 @@ -9918,7 +9923,7 @@ export default { 1 ], "type": [ - 121 + 122 ], "objectMetadataId": [ 3 @@ -9932,7 +9937,7 @@ export default { 1 ], "type": [ - 121 + 122 ], "objectMetadataId": [ 3 @@ -9946,13 +9951,13 @@ export default { 1 ], "type": [ - 121 + 122 ], "objectMetadataId": [ 3 ], "tabs": [ - 400 + 401 ], "__typename": [ 1 @@ -9972,10 +9977,10 @@ export default { 1 ], "layoutMode": [ - 85 + 86 ], "widgets": [ - 401 + 402 ], "__typename": [ 1 @@ -9992,13 +9997,13 @@ export default { 1 ], "type": [ - 82 + 83 ], "objectMetadataId": [ 3 ], "gridPosition": [ - 402 + 403 ], "position": [ 15 @@ -10041,13 +10046,13 @@ export default { 1 ], "type": [ - 82 + 83 ], "objectMetadataId": [ 3 ], "gridPosition": [ - 402 + 403 ], "position": [ 15 @@ -10067,13 +10072,13 @@ export default { 1 ], "type": [ - 82 + 83 ], "objectMetadataId": [ 3 ], "gridPosition": [ - 402 + 403 ], "position": [ 15 @@ -10166,7 +10171,7 @@ export default { }, "CreateOneObjectInput": { "object": [ - 408 + 409 ], "__typename": [ 1 @@ -10226,7 +10231,7 @@ export default { }, "UpdateOneObjectInput": { "update": [ - 411 + 412 ], "id": [ 3 @@ -10281,7 +10286,7 @@ export default { }, "CreateOneIndexInput": { "index": [ - 413 + 414 ], "__typename": [ 1 @@ -10292,7 +10297,7 @@ export default { 3 ], "fields": [ - 414 + 415 ], "indexType": [ 46 @@ -10377,7 +10382,7 @@ export default { 3 ], "update": [ - 419 + 420 ], "__typename": [ 1 @@ -10537,7 +10542,7 @@ export default { 3 ], "update": [ - 424 + 425 ], "__typename": [ 1 @@ -10581,6 +10586,9 @@ export default { "isPublicInviteLinkEnabled": [ 6 ], + "workspaceDiscoverability": [ + 73 + ], "allowImpersonation": [ 6 ], @@ -10641,7 +10649,7 @@ export default { }, "CreateOneFieldMetadataInput": { "field": [ - 428 + 429 ], "__typename": [ 1 @@ -10714,7 +10722,7 @@ export default { 3 ], "update": [ - 430 + 431 ], "__typename": [ 1 @@ -10809,7 +10817,7 @@ export default { 3 ], "update": [ - 434 + 435 ], "__typename": [ 1 @@ -10850,7 +10858,7 @@ export default { }, "WorkspaceMigrationInput": { "actions": [ - 438 + 439 ], "__typename": [ 1 @@ -10858,10 +10866,10 @@ export default { }, "WorkspaceMigrationDeleteActionInput": { "type": [ - 439 + 440 ], "metadataName": [ - 331 + 332 ], "universalIdentifier": [ 1 @@ -10917,7 +10925,7 @@ export default { }, "UpdateRoleInput": { "update": [ - 442 + 443 ], "id": [ 3 @@ -10972,7 +10980,7 @@ export default { 3 ], "objectPermissions": [ - 444 + 445 ], "__typename": [ 1 @@ -11014,7 +11022,7 @@ export default { 3 ], "fieldPermissions": [ - 447 + 448 ], "__typename": [ 1 @@ -11045,10 +11053,10 @@ export default { 3 ], "predicates": [ - 449 + 450 ], "predicateGroups": [ - 450 + 451 ], "__typename": [ 1 @@ -11128,7 +11136,7 @@ export default { 1 ], "update": [ - 453 + 454 ], "__typename": [ 1 @@ -11179,7 +11187,7 @@ export default { 1 ], "update": [ - 456 + 457 ], "__typename": [ 1 @@ -11259,7 +11267,7 @@ export default { 1 ], "visibility": [ - 284 + 285 ], "__typename": [ 1 @@ -11276,7 +11284,7 @@ export default { 1 ], "visibility": [ - 284 + 285 ], "__typename": [ 1 @@ -11287,7 +11295,7 @@ export default { 3 ], "update": [ - 462 + 463 ], "__typename": [ 1 @@ -11295,16 +11303,16 @@ export default { }, "UpdateMessageChannelInputUpdates": { "visibility": [ - 271 + 272 ], "isContactAutoCreationEnabled": [ 6 ], "contactAutoCreationPolicy": [ - 273 + 274 ], "messageFolderImportPolicy": [ - 274 + 275 ], "isSyncEnabled": [ 6 @@ -11371,7 +11379,7 @@ export default { 3 ], "update": [ - 468 + 469 ], "__typename": [ 1 @@ -11399,7 +11407,7 @@ export default { 3 ], "update": [ - 470 + 471 ], "__typename": [ 1 @@ -11418,7 +11426,7 @@ export default { 3 ], "update": [ - 470 + 471 ], "__typename": [ 1 @@ -11429,7 +11437,7 @@ export default { 3 ], "update": [ - 473 + 474 ], "__typename": [ 1 @@ -11437,13 +11445,13 @@ export default { }, "UpdateCalendarChannelInputUpdates": { "visibility": [ - 326 + 327 ], "isContactAutoCreationEnabled": [ 6 ], "contactAutoCreationPolicy": [ - 327 + 328 ], "isSyncEnabled": [ 6 @@ -11612,7 +11620,7 @@ export default { 3 ], "status": [ - 176 + 177 ], "__typename": [ 1 @@ -11683,7 +11691,7 @@ export default { 1 ], "files": [ - 488 + 489 ], "__typename": [ 1 @@ -11702,13 +11710,13 @@ export default { }, "EmailAccountConnectionParameters": { "IMAP": [ - 490 + 491 ], "SMTP": [ - 490 + 491 ], "CALDAV": [ - 490 + 491 ], "__typename": [ 1 @@ -11728,7 +11736,7 @@ export default { 1 ], "connectionSecurity": [ - 233 + 234 ], "__typename": [ 1 @@ -11747,7 +11755,7 @@ export default { }, "CreateOneAppTokenInput": { "appToken": [ - 493 + 494 ], "__typename": [ 1 @@ -11764,7 +11772,7 @@ export default { "FileFolder": {}, "Subscription": { "onEventSubscription": [ - 164, + 165, { "eventStreamId": [ 1, @@ -11773,16 +11781,16 @@ export default { } ], "logicFunctionLogs": [ - 231, + 232, { "input": [ - 496, + 497, "LogicFunctionLogsInput!" ] } ], "onAgentChatEvent": [ - 319, + 320, { "threadId": [ 3, @@ -11791,10 +11799,10 @@ export default { } ], "eventLogsLive": [ - 308, + 309, { "table": [ - 342, + 343, "EventLogTable!" ] } diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts index c7a102eb3a..26d3ed0b80 100644 --- a/packages/twenty-front/src/generated-metadata/graphql.ts +++ b/packages/twenty-front/src/generated-metadata/graphql.ts @@ -5679,6 +5679,7 @@ export type UpdateWorkspaceInput = { subdomain?: InputMaybe; trashRetentionDays?: InputMaybe; useRecommendedModels?: InputMaybe; + workspaceDiscoverability?: InputMaybe; }; export type UpdateWorkspaceMemberSettingsInput = { @@ -6232,6 +6233,7 @@ export type Workspace = { views?: Maybe>; workspaceCustomApplication?: Maybe; workspaceCustomApplicationId: Scalars['String']['output']; + workspaceDiscoverability: WorkspaceDiscoverability; workspaceMembersCount?: Maybe; workspaceUrls: WorkspaceUrls; }; @@ -6257,6 +6259,12 @@ export type WorkspaceCreationDefaultsDto = { subdomain: Scalars['String']['output']; }; +export enum WorkspaceDiscoverability { + HIDDEN = 'HIDDEN', + MEMBERS_AND_INVITEES = 'MEMBERS_AND_INVITEES', + PUBLIC = 'PUBLIC' +} + export type WorkspaceInvitation = { __typename?: 'WorkspaceInvitation'; email: Scalars['String']['output']; @@ -8245,7 +8253,7 @@ export type CurrentBillingSubscriptionFragmentFragment = { __typename?: 'Billing | { __typename?: 'BillingMeteredProduct', name: string, description: string, images?: Array | null, metadata: { __typename?: 'BillingProductMetadata', productKey: BillingProductKey, planKey: BillingPlanKey, priceUsageBased: BillingUsageType } } }> | null }; -export type UserQueryFragmentFragment = { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, hasPassword: boolean, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', id: string, permissionFlags?: Array | null, objectsPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> | null, twoFactorAuthenticationMethodSummary?: Array<{ __typename?: 'TwoFactorAuthenticationMethodSummary', twoFactorAuthenticationMethodId: string, status: string, strategy: string }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, isGoogleAuthBypassEnabled: boolean, isMicrosoftAuthBypassEnabled: boolean, isPasswordAuthBypassEnabled: boolean, subdomain: string, customDomain?: string | null, hasValidSignedEnterpriseKey: boolean, hasValidEnterpriseValidityToken: boolean, isCustomDomainEnabled: boolean, metadataVersion: number, workspaceMembersCount?: number | null, fastModel: string, smartModel: string, aiAdditionalInstructions?: string | null, enabledAiModelIds?: Array | null, useRecommendedModels: boolean, isTwoFactorAuthenticationEnforced: boolean, trashRetentionDays: number, eventLogRetentionDays: number, editableProfileFields?: Array | null, isInternalMessagesImportEnabled: boolean, workspaceCustomApplication?: { __typename?: 'Application', id: string } | null, installedApplications: Array<{ __typename?: 'Application', id: string, name: string, universalIdentifier: string, logo?: string | null }>, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlag', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, currentPeriodEnd?: string | null, cancelAt?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }>, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: string, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, stripePriceId: string, billingProduct: +export type UserQueryFragmentFragment = { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, hasPassword: boolean, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', id: string, permissionFlags?: Array | null, objectsPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> | null, twoFactorAuthenticationMethodSummary?: Array<{ __typename?: 'TwoFactorAuthenticationMethodSummary', twoFactorAuthenticationMethodId: string, status: string, strategy: string }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, workspaceDiscoverability: WorkspaceDiscoverability, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, isGoogleAuthBypassEnabled: boolean, isMicrosoftAuthBypassEnabled: boolean, isPasswordAuthBypassEnabled: boolean, subdomain: string, customDomain?: string | null, hasValidSignedEnterpriseKey: boolean, hasValidEnterpriseValidityToken: boolean, isCustomDomainEnabled: boolean, metadataVersion: number, workspaceMembersCount?: number | null, fastModel: string, smartModel: string, aiAdditionalInstructions?: string | null, enabledAiModelIds?: Array | null, useRecommendedModels: boolean, isTwoFactorAuthenticationEnforced: boolean, trashRetentionDays: number, eventLogRetentionDays: number, editableProfileFields?: Array | null, isInternalMessagesImportEnabled: boolean, workspaceCustomApplication?: { __typename?: 'Application', id: string } | null, installedApplications: Array<{ __typename?: 'Application', id: string, name: string, universalIdentifier: string, logo?: string | null }>, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlag', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, currentPeriodEnd?: string | null, cancelAt?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }>, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: string, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, stripePriceId: string, billingProduct: | { __typename?: 'BillingLicensedProduct', name: string, description: string, images?: Array | null, metadata: { __typename?: 'BillingProductMetadata', productKey: BillingProductKey, planKey: BillingPlanKey, priceUsageBased: BillingUsageType } } | { __typename?: 'BillingMeteredProduct', name: string, description: string, images?: Array | null, metadata: { __typename?: 'BillingProductMetadata', productKey: BillingProductKey, planKey: BillingPlanKey, priceUsageBased: BillingUsageType } } }> | null } | null, billingCustomer?: { __typename?: 'BillingCustomer', id: string, hasPaymentMethod?: boolean | null } | null, billingSubscriptions: Array<{ __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, metadata: any, cancelAt?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }> }>, billingEntitlements: Array<{ __typename?: 'BillingEntitlement', key: BillingEntitlementKey, value: boolean }>, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean } | null } | null, availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> } }; @@ -8267,7 +8275,7 @@ export type DeleteUserWorkspaceMutation = { __typename?: 'Mutation', deleteUserF export type GetCurrentUserQueryVariables = Exact<{ [key: string]: never; }>; -export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, hasPassword: boolean, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', id: string, permissionFlags?: Array | null, objectsPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> | null, twoFactorAuthenticationMethodSummary?: Array<{ __typename?: 'TwoFactorAuthenticationMethodSummary', twoFactorAuthenticationMethodId: string, status: string, strategy: string }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, isGoogleAuthBypassEnabled: boolean, isMicrosoftAuthBypassEnabled: boolean, isPasswordAuthBypassEnabled: boolean, subdomain: string, customDomain?: string | null, hasValidSignedEnterpriseKey: boolean, hasValidEnterpriseValidityToken: boolean, isCustomDomainEnabled: boolean, metadataVersion: number, workspaceMembersCount?: number | null, fastModel: string, smartModel: string, aiAdditionalInstructions?: string | null, enabledAiModelIds?: Array | null, useRecommendedModels: boolean, isTwoFactorAuthenticationEnforced: boolean, trashRetentionDays: number, eventLogRetentionDays: number, editableProfileFields?: Array | null, isInternalMessagesImportEnabled: boolean, workspaceCustomApplication?: { __typename?: 'Application', id: string } | null, installedApplications: Array<{ __typename?: 'Application', id: string, name: string, universalIdentifier: string, logo?: string | null }>, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlag', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, currentPeriodEnd?: string | null, cancelAt?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }>, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: string, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, stripePriceId: string, billingProduct: +export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, hasPassword: boolean, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', id: string, permissionFlags?: Array | null, objectsPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> | null, twoFactorAuthenticationMethodSummary?: Array<{ __typename?: 'TwoFactorAuthenticationMethodSummary', twoFactorAuthenticationMethodId: string, status: string, strategy: string }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, workspaceDiscoverability: WorkspaceDiscoverability, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, isGoogleAuthBypassEnabled: boolean, isMicrosoftAuthBypassEnabled: boolean, isPasswordAuthBypassEnabled: boolean, subdomain: string, customDomain?: string | null, hasValidSignedEnterpriseKey: boolean, hasValidEnterpriseValidityToken: boolean, isCustomDomainEnabled: boolean, metadataVersion: number, workspaceMembersCount?: number | null, fastModel: string, smartModel: string, aiAdditionalInstructions?: string | null, enabledAiModelIds?: Array | null, useRecommendedModels: boolean, isTwoFactorAuthenticationEnforced: boolean, trashRetentionDays: number, eventLogRetentionDays: number, editableProfileFields?: Array | null, isInternalMessagesImportEnabled: boolean, workspaceCustomApplication?: { __typename?: 'Application', id: string } | null, installedApplications: Array<{ __typename?: 'Application', id: string, name: string, universalIdentifier: string, logo?: string | null }>, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlag', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, currentPeriodEnd?: string | null, cancelAt?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }>, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: string, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, stripePriceId: string, billingProduct: | { __typename?: 'BillingLicensedProduct', name: string, description: string, images?: Array | null, metadata: { __typename?: 'BillingProductMetadata', productKey: BillingProductKey, planKey: BillingPlanKey, priceUsageBased: BillingUsageType } } | { __typename?: 'BillingMeteredProduct', name: string, description: string, images?: Array | null, metadata: { __typename?: 'BillingProductMetadata', productKey: BillingProductKey, planKey: BillingPlanKey, priceUsageBased: BillingUsageType } } }> | null } | null, billingCustomer?: { __typename?: 'BillingCustomer', id: string, hasPaymentMethod?: boolean | null } | null, billingSubscriptions: Array<{ __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, metadata: any, cancelAt?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }> }>, billingEntitlements: Array<{ __typename?: 'BillingEntitlement', key: BillingEntitlementKey, value: boolean }>, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean } | null } | null, availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> } } }; @@ -8661,7 +8669,7 @@ export type UpdateWorkspaceMutationVariables = Exact<{ }>; -export type UpdateWorkspaceMutation = { __typename?: 'Mutation', updateWorkspace: { __typename?: 'Workspace', id: string, customDomain?: string | null, subdomain: string, displayName?: string | null, logo?: string | null, allowImpersonation: boolean, isPublicInviteLinkEnabled: boolean, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, isTwoFactorAuthenticationEnforced: boolean, isInternalMessagesImportEnabled: boolean, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean } | null } }; +export type UpdateWorkspaceMutation = { __typename?: 'Mutation', updateWorkspace: { __typename?: 'Workspace', id: string, customDomain?: string | null, subdomain: string, displayName?: string | null, logo?: string | null, allowImpersonation: boolean, isPublicInviteLinkEnabled: boolean, workspaceDiscoverability: WorkspaceDiscoverability, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, isTwoFactorAuthenticationEnforced: boolean, isInternalMessagesImportEnabled: boolean, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean } | null } }; export type UploadWorkspaceLogoMutationVariables = Exact<{ file: Scalars['Upload']['input']; @@ -8733,7 +8741,7 @@ export const BillingSubscriptionFragmentFragmentDoc = {"kind":"Document","defini export const RoleFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}}]} as unknown as DocumentNode; export const AvailableWorkspaceFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode; export const AvailableWorkspacesFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode; -export const UserQueryFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessFullAdminPanel"}},{"kind":"Field","name":{"kind":"Name","value":"canImpersonate"}},{"kind":"Field","name":{"kind":"Name","value":"supportUserHash"}},{"kind":"Field","name":{"kind":"Name","value":"onboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMember"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedWorkspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentUserWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"}},{"kind":"Field","name":{"kind":"Name","value":"objectsPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodId"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"strategy"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"allowImpersonation"}},{"kind":"Field","name":{"kind":"Name","value":"activationStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isPublicInviteLinkEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"subdomain"}},{"kind":"Field","name":{"kind":"Name","value":"customDomain"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidSignedEnterpriseKey"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidEnterpriseValidityToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceCustomApplication"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"installedApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isCustomDomainEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceUrlsFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featureFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"metadataVersion"}},{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingCustomer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasPaymentMethod"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingEntitlements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembersCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fastModel"}},{"kind":"Field","name":{"kind":"Name","value":"smartModel"}},{"kind":"Field","name":{"kind":"Name","value":"aiAdditionalInstructions"}},{"kind":"Field","name":{"kind":"Name","value":"enabledAiModelIds"}},{"kind":"Field","name":{"kind":"Name","value":"useRecommendedModels"}},{"kind":"Field","name":{"kind":"Name","value":"isTwoFactorAuthenticationEnforced"}},{"kind":"Field","name":{"kind":"Name","value":"trashRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"eventLogRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"editableProfileFields"}},{"kind":"Field","name":{"kind":"Name","value":"isInternalMessagesImportEnabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspaces"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspacesFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userVars"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedWorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceUrlsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceUrls"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}}]} as unknown as DocumentNode; +export const UserQueryFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessFullAdminPanel"}},{"kind":"Field","name":{"kind":"Name","value":"canImpersonate"}},{"kind":"Field","name":{"kind":"Name","value":"supportUserHash"}},{"kind":"Field","name":{"kind":"Name","value":"onboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMember"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedWorkspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentUserWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"}},{"kind":"Field","name":{"kind":"Name","value":"objectsPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodId"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"strategy"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"allowImpersonation"}},{"kind":"Field","name":{"kind":"Name","value":"activationStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isPublicInviteLinkEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceDiscoverability"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"subdomain"}},{"kind":"Field","name":{"kind":"Name","value":"customDomain"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidSignedEnterpriseKey"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidEnterpriseValidityToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceCustomApplication"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"installedApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isCustomDomainEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceUrlsFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featureFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"metadataVersion"}},{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingCustomer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasPaymentMethod"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingEntitlements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembersCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fastModel"}},{"kind":"Field","name":{"kind":"Name","value":"smartModel"}},{"kind":"Field","name":{"kind":"Name","value":"aiAdditionalInstructions"}},{"kind":"Field","name":{"kind":"Name","value":"enabledAiModelIds"}},{"kind":"Field","name":{"kind":"Name","value":"useRecommendedModels"}},{"kind":"Field","name":{"kind":"Name","value":"isTwoFactorAuthenticationEnforced"}},{"kind":"Field","name":{"kind":"Name","value":"trashRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"eventLogRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"editableProfileFields"}},{"kind":"Field","name":{"kind":"Name","value":"isInternalMessagesImportEnabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspaces"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspacesFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userVars"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedWorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceUrlsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceUrls"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}}]} as unknown as DocumentNode; export const ViewFieldFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode; export const ViewFieldGroupFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode; export const ViewFilterFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"relationTargetFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode; @@ -8963,7 +8971,7 @@ export const UnsubscribePagePreviewUrlDocument = {"kind":"Document","definitions export const GetUsageAnalyticsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetUsageAnalytics"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UsageAnalyticsInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getUsageAnalytics"},"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":"usageByUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"creditsUsed"}}]}},{"kind":"Field","name":{"kind":"Name","value":"usageByOperationType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"creditsUsed"}}]}},{"kind":"Field","name":{"kind":"Name","value":"usageByModel"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"creditsUsed"}}]}},{"kind":"Field","name":{"kind":"Name","value":"timeSeries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"creditsUsed"}}]}},{"kind":"Field","name":{"kind":"Name","value":"periodStart"}},{"kind":"Field","name":{"kind":"Name","value":"periodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"userDailyUsage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"dailyUsage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"creditsUsed"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const DeleteUserAccountDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; export const DeleteUserWorkspaceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteUserWorkspace"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"workspaceMemberIdToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteUserFromWorkspace"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"workspaceMemberIdToDelete"},"value":{"kind":"Variable","name":{"kind":"Name","value":"workspaceMemberIdToDelete"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const GetCurrentUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCurrentUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserQueryFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedWorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceUrlsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceUrls"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessFullAdminPanel"}},{"kind":"Field","name":{"kind":"Name","value":"canImpersonate"}},{"kind":"Field","name":{"kind":"Name","value":"supportUserHash"}},{"kind":"Field","name":{"kind":"Name","value":"onboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMember"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedWorkspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentUserWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"}},{"kind":"Field","name":{"kind":"Name","value":"objectsPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodId"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"strategy"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"allowImpersonation"}},{"kind":"Field","name":{"kind":"Name","value":"activationStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isPublicInviteLinkEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"subdomain"}},{"kind":"Field","name":{"kind":"Name","value":"customDomain"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidSignedEnterpriseKey"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidEnterpriseValidityToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceCustomApplication"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"installedApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isCustomDomainEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceUrlsFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featureFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"metadataVersion"}},{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingCustomer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasPaymentMethod"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingEntitlements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembersCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fastModel"}},{"kind":"Field","name":{"kind":"Name","value":"smartModel"}},{"kind":"Field","name":{"kind":"Name","value":"aiAdditionalInstructions"}},{"kind":"Field","name":{"kind":"Name","value":"enabledAiModelIds"}},{"kind":"Field","name":{"kind":"Name","value":"useRecommendedModels"}},{"kind":"Field","name":{"kind":"Name","value":"isTwoFactorAuthenticationEnforced"}},{"kind":"Field","name":{"kind":"Name","value":"trashRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"eventLogRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"editableProfileFields"}},{"kind":"Field","name":{"kind":"Name","value":"isInternalMessagesImportEnabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspaces"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspacesFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userVars"}}]}}]} as unknown as DocumentNode; +export const GetCurrentUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCurrentUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserQueryFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedWorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceUrlsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceUrls"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessFullAdminPanel"}},{"kind":"Field","name":{"kind":"Name","value":"canImpersonate"}},{"kind":"Field","name":{"kind":"Name","value":"supportUserHash"}},{"kind":"Field","name":{"kind":"Name","value":"onboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMember"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedWorkspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentUserWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"}},{"kind":"Field","name":{"kind":"Name","value":"objectsPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodId"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"strategy"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"allowImpersonation"}},{"kind":"Field","name":{"kind":"Name","value":"activationStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isPublicInviteLinkEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceDiscoverability"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"subdomain"}},{"kind":"Field","name":{"kind":"Name","value":"customDomain"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidSignedEnterpriseKey"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidEnterpriseValidityToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceCustomApplication"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"installedApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isCustomDomainEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceUrlsFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featureFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"metadataVersion"}},{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingCustomer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasPaymentMethod"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingEntitlements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembersCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fastModel"}},{"kind":"Field","name":{"kind":"Name","value":"smartModel"}},{"kind":"Field","name":{"kind":"Name","value":"aiAdditionalInstructions"}},{"kind":"Field","name":{"kind":"Name","value":"enabledAiModelIds"}},{"kind":"Field","name":{"kind":"Name","value":"useRecommendedModels"}},{"kind":"Field","name":{"kind":"Name","value":"isTwoFactorAuthenticationEnforced"}},{"kind":"Field","name":{"kind":"Name","value":"trashRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"eventLogRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"editableProfileFields"}},{"kind":"Field","name":{"kind":"Name","value":"isInternalMessagesImportEnabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspaces"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspacesFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userVars"}}]}}]} as unknown as DocumentNode; export const CreateManyViewFieldGroupsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyViewFieldGroups"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFieldGroupInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyViewFieldGroups"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}}]} as unknown as DocumentNode; export const CreateManyViewFieldsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyViewFields"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFieldInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyViewFields"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode; export const CreateManyViewGroupsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyViewGroups"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewGroupInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyViewGroups"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode; @@ -9016,7 +9024,7 @@ export const SendInvitationsDocument = {"kind":"Document","definitions":[{"kind" export const GetWorkspaceInvitationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetWorkspaceInvitations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findWorkspaceInvitations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]}}]} as unknown as DocumentNode; export const ActivateWorkspaceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ActivateWorkspace"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ActivateWorkspaceInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activateWorkspace"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; export const DeleteCurrentWorkspaceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCurrentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteCurrentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const UpdateWorkspaceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateWorkspace"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateWorkspaceInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateWorkspace"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"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":"customDomain"}},{"kind":"Field","name":{"kind":"Name","value":"subdomain"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"allowImpersonation"}},{"kind":"Field","name":{"kind":"Name","value":"isPublicInviteLinkEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isTwoFactorAuthenticationEnforced"}},{"kind":"Field","name":{"kind":"Name","value":"isInternalMessagesImportEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}}]} as unknown as DocumentNode; +export const UpdateWorkspaceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateWorkspace"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateWorkspaceInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateWorkspace"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"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":"customDomain"}},{"kind":"Field","name":{"kind":"Name","value":"subdomain"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"allowImpersonation"}},{"kind":"Field","name":{"kind":"Name","value":"isPublicInviteLinkEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceDiscoverability"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isTwoFactorAuthenticationEnforced"}},{"kind":"Field","name":{"kind":"Name","value":"isInternalMessagesImportEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}}]} as unknown as DocumentNode; export const UploadWorkspaceLogoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UploadWorkspaceLogo"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"file"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Upload"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uploadWorkspaceLogo"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"file"},"value":{"kind":"Variable","name":{"kind":"Name","value":"file"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]} as unknown as DocumentNode; export const CheckCustomDomainValidRecordsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CheckCustomDomainValidRecords"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"checkCustomDomainValidRecords"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"domain"}},{"kind":"Field","name":{"kind":"Name","value":"isCustomDomainEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"validationType"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]}}]} as unknown as DocumentNode; export const GetAiSystemPromptPreviewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAiSystemPromptPreview"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getAiSystemPromptPreview"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sections"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"estimatedTokenCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"estimatedTokenCount"}}]}}]}}]} as unknown as DocumentNode; diff --git a/packages/twenty-front/src/modules/apollo/services/__tests__/apollo.factory.test.ts b/packages/twenty-front/src/modules/apollo/services/__tests__/apollo.factory.test.ts index e7c310b7c9..59eafd69ba 100644 --- a/packages/twenty-front/src/modules/apollo/services/__tests__/apollo.factory.test.ts +++ b/packages/twenty-front/src/modules/apollo/services/__tests__/apollo.factory.test.ts @@ -8,7 +8,10 @@ import { AUTO_SELECT_FAST_MODEL_ID, AUTO_SELECT_SMART_MODEL_ID, } from 'twenty-shared/constants'; -import { WorkspaceActivationStatus } from '~/generated-metadata/graphql'; +import { + WorkspaceActivationStatus, + WorkspaceDiscoverability, +} from '~/generated-metadata/graphql'; enableFetchMocks(); @@ -60,6 +63,7 @@ const mockWorkspace = { currentBillingSubscription: null, workspaceMembersCount: 0, isPublicInviteLinkEnabled: false, + workspaceDiscoverability: WorkspaceDiscoverability.PUBLIC, isGoogleAuthEnabled: false, isMicrosoftAuthEnabled: false, isPasswordAuthEnabled: false, diff --git a/packages/twenty-front/src/modules/auth/states/currentWorkspaceState.ts b/packages/twenty-front/src/modules/auth/states/currentWorkspaceState.ts index 2ed35db3d3..00c496a0e9 100644 --- a/packages/twenty-front/src/modules/auth/states/currentWorkspaceState.ts +++ b/packages/twenty-front/src/modules/auth/states/currentWorkspaceState.ts @@ -20,6 +20,7 @@ export type CurrentWorkspace = Pick< | 'currentBillingSubscription' | 'workspaceMembersCount' | 'isPublicInviteLinkEnabled' + | 'workspaceDiscoverability' | 'isGoogleAuthEnabled' | 'isGoogleAuthBypassEnabled' | 'isMicrosoftAuthEnabled' diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useColumnDefinitionsFromObjectMetadata.test.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useColumnDefinitionsFromObjectMetadata.test.ts index 05028f8a95..bc6e2cdb36 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useColumnDefinitionsFromObjectMetadata.test.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useColumnDefinitionsFromObjectMetadata.test.ts @@ -13,6 +13,7 @@ import { SubscriptionInterval, SubscriptionStatus, WorkspaceActivationStatus, + WorkspaceDiscoverability, } from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksAndCommandMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndCommandMenuWrapper'; import { getTestEnrichedObjectMetadataItemsMock } from '~/testing/utils/getTestEnrichedObjectMetadataItemsMock'; @@ -39,6 +40,7 @@ describe('useColumnDefinitionsFromObjectMetadata', () => { hasValidEnterpriseValidityToken: false, metadataVersion: 1, isPublicInviteLinkEnabled: false, + workspaceDiscoverability: WorkspaceDiscoverability.PUBLIC, isGoogleAuthEnabled: true, isMicrosoftAuthEnabled: false, isPasswordAuthEnabled: true, diff --git a/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthProvidersOptionsList.tsx b/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthProvidersOptionsList.tsx index 16fe56cc3c..c62acde1f8 100644 --- a/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthProvidersOptionsList.tsx +++ b/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthProvidersOptionsList.tsx @@ -1,7 +1,11 @@ import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; import { authProvidersState } from '@/client-config/states/authProvidersState'; +import { isMultiWorkspaceEnabledState } from '@/client-config/states/isMultiWorkspaceEnabledState'; +import { useReadDefaultDomainFromConfiguration } from '@/domain-manager/hooks/useReadDefaultDomainFromConfiguration'; +import { SettingsOptionCardContentSelect } from '@/settings/components/SettingsOptions/SettingsOptionCardContentSelect'; import { SettingsOptionCardContentToggle } from '@/settings/components/SettingsOptions/SettingsOptionCardContentToggle'; import { SSOIdentitiesProvidersState } from '@/settings/security/states/SSOIdentitiesProvidersState'; +import { Select } from '@/ui/input/components/Select'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; import { CombinedGraphQLErrors } from '@apollo/client/errors'; import { styled } from '@linaria/react'; @@ -12,6 +16,7 @@ import { capitalize } from 'twenty-shared/utils'; import { IconGoogle, IconLink, + IconList, IconMicrosoft, IconPassword, } from 'twenty-ui/icon'; @@ -21,6 +26,7 @@ import { useMutation } from '@apollo/client/react'; import { type AuthProviders, UpdateWorkspaceDocument, + WorkspaceDiscoverability, } from '~/generated-metadata/graphql'; import { Toggle2FA } from './Toggle2FA'; @@ -38,6 +44,10 @@ export const SettingsSecurityAuthProvidersOptionsList = () => { const { enqueueErrorSnackBar } = useSnackBar(); const SSOIdentitiesProviders = useAtomStateValue(SSOIdentitiesProvidersState); const authProviders = useAtomStateValue(authProvidersState); + const isMultiWorkspaceEnabled = useAtomStateValue( + isMultiWorkspaceEnabledState, + ); + const { defaultDomain } = useReadDefaultDomainFromConfiguration(); const [currentWorkspace, setCurrentWorkspace] = useAtomState( currentWorkspaceState, @@ -128,6 +138,67 @@ export const SettingsSecurityAuthProvidersOptionsList = () => { } }; + const discoverabilityOptions = [ + { + value: WorkspaceDiscoverability.PUBLIC, + label: t`Discoverable`, + }, + { + value: WorkspaceDiscoverability.MEMBERS_AND_INVITEES, + label: t`Members & invitees`, + }, + { + value: WorkspaceDiscoverability.HIDDEN, + label: t`Hidden`, + }, + ]; + + const getDiscoverabilityDescription = (value: WorkspaceDiscoverability) => { + switch (value) { + case WorkspaceDiscoverability.MEMBERS_AND_INVITEES: + return t`Hidden from email-domain discovery. Members and invitees still see it.`; + case WorkspaceDiscoverability.HIDDEN: + return t`Never shown at sign-in. Members use the workspace URL.`; + case WorkspaceDiscoverability.PUBLIC: + default: + return t`Anyone with an approved email domain can find and join.`; + } + }; + + const handleDiscoverabilityChange = (value: WorkspaceDiscoverability) => { + if (!currentWorkspace) { + return; + } + + const previousValue = currentWorkspace.workspaceDiscoverability; + + setCurrentWorkspace((currentWorkspaceValue) => + currentWorkspaceValue + ? { ...currentWorkspaceValue, workspaceDiscoverability: value } + : currentWorkspaceValue, + ); + + updateWorkspace({ + variables: { + input: { + workspaceDiscoverability: value, + }, + }, + }).catch((err) => { + setCurrentWorkspace((currentWorkspaceValue) => + currentWorkspaceValue + ? { + ...currentWorkspaceValue, + workspaceDiscoverability: previousValue, + } + : currentWorkspaceValue, + ); + enqueueErrorSnackBar({ + apolloError: CombinedGraphQLErrors.is(err) ? err : undefined, + }); + }); + }; + return ( {currentWorkspace && ( @@ -182,6 +253,26 @@ export const SettingsSecurityAuthProvidersOptionsList = () => { handleChange(!currentWorkspace.isPublicInviteLinkEnabled) } /> + {isMultiWorkspaceEnabled && ( + + + dropdownId="workspace-discoverability-select" + dropdownWidth={220} + value={currentWorkspace.workspaceDiscoverability} + onChange={handleDiscoverabilityChange} + options={discoverabilityOptions} + selectSizeVariant="small" + withSearchInput={false} + /> + + )} diff --git a/packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts b/packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts index 23b2c2e06a..32f70e8246 100644 --- a/packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts +++ b/packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts @@ -52,6 +52,7 @@ export const USER_QUERY_FRAGMENT = gql` allowImpersonation activationStatus isPublicInviteLinkEnabled + workspaceDiscoverability isGoogleAuthEnabled isMicrosoftAuthEnabled isPasswordAuthEnabled diff --git a/packages/twenty-front/src/modules/workspace/graphql/mutations/updateWorkspace.ts b/packages/twenty-front/src/modules/workspace/graphql/mutations/updateWorkspace.ts index f995322fa4..78b9cf01c7 100644 --- a/packages/twenty-front/src/modules/workspace/graphql/mutations/updateWorkspace.ts +++ b/packages/twenty-front/src/modules/workspace/graphql/mutations/updateWorkspace.ts @@ -12,6 +12,7 @@ export const UPDATE_WORKSPACE = gql` logo allowImpersonation isPublicInviteLinkEnabled + workspaceDiscoverability isGoogleAuthEnabled isMicrosoftAuthEnabled isPasswordAuthEnabled diff --git a/packages/twenty-front/src/testing/mock-data/users.ts b/packages/twenty-front/src/testing/mock-data/users.ts index b8656717a6..97d338372d 100644 --- a/packages/twenty-front/src/testing/mock-data/users.ts +++ b/packages/twenty-front/src/testing/mock-data/users.ts @@ -13,6 +13,7 @@ import { type User, type Workspace, WorkspaceActivationStatus, + WorkspaceDiscoverability, WorkspaceMemberDateFormatEnum, WorkspaceMemberTimeFormatEnum, } from '~/generated-metadata/graphql'; @@ -68,6 +69,7 @@ export const mockCurrentWorkspace = { inviteHash: 'twenty.com-invite-hash', logo: workspaceLogoUrl, isPublicInviteLinkEnabled: true, + workspaceDiscoverability: WorkspaceDiscoverability.PUBLIC, allowImpersonation: true, activationStatus: WorkspaceActivationStatus.ACTIVE, hasValidSignedEnterpriseKey: false, diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/2-19-instance-command-fast-1820000001000-add-workspace-discoverability-to-workspace.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/2-19-instance-command-fast-1820000001000-add-workspace-discoverability-to-workspace.ts new file mode 100644 index 0000000000..1e302f1422 --- /dev/null +++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/2-19-instance-command-fast-1820000001000-add-workspace-discoverability-to-workspace.ts @@ -0,0 +1,27 @@ +import { QueryRunner } from 'typeorm'; + +import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-instance-command.decorator'; +import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface'; + +@RegisteredInstanceCommand('2.19.0', 1820000001000) +export class AddWorkspaceDiscoverabilityToWorkspaceFastInstanceCommand + implements FastInstanceCommand +{ + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `CREATE TYPE "core"."workspace_discoverability_enum" AS ENUM('PUBLIC', 'MEMBERS_AND_INVITEES', 'HIDDEN')`, + ); + await queryRunner.query( + `ALTER TABLE "core"."workspace" ADD "workspaceDiscoverability" "core"."workspace_discoverability_enum" NOT NULL DEFAULT 'PUBLIC'`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + 'ALTER TABLE "core"."workspace" DROP COLUMN "workspaceDiscoverability"', + ); + await queryRunner.query( + `DROP TYPE "core"."workspace_discoverability_enum"`, + ); + } +} diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts index bc871638fc..d123aa8149 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 @@ -88,6 +88,7 @@ import { MigrateAiModelPreferencesSlowInstanceCommand } from 'src/database/comma import { AddFolderImportToMessageFolderPendingSyncActionFastInstanceCommand } from './2-15/2-15-instance-command-fast-1781714499016-add-folder-import-to-message-folder-pending-sync-action'; import { AddViewKanbanColumnWidthFastInstanceCommand } from './2-15/2-15-instance-command-fast-1781900000000-add-view-kanban-column-width'; import { AddPendingQuestionMessageIdToAgentChatThreadFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-19/2-19-instance-command-fast-1811000000000-add-pending-question-to-agent-chat-thread'; +import { AddWorkspaceDiscoverabilityToWorkspaceFastInstanceCommand } from './2-19/2-19-instance-command-fast-1820000001000-add-workspace-discoverability-to-workspace'; import { DropMetadataStandardOverridesColumnFastInstanceCommand } from './2-20/2-20-instance-command-fast-1825000000000-drop-metadata-standard-overrides-column'; export const INSTANCE_COMMANDS = [ @@ -176,6 +177,7 @@ export const INSTANCE_COMMANDS = [ AddTsVectorFieldMetadataIdToSearchFieldMetadataFastInstanceCommand, BackfillTsVectorFieldMetadataIdOnSearchFieldMetadataSlowInstanceCommand, AddPendingQuestionMessageIdToAgentChatThreadFastInstanceCommand, + AddWorkspaceDiscoverabilityToWorkspaceFastInstanceCommand, AddMetadataOverridesColumnFastInstanceCommand, BackfillMetadataOverridesSlowInstanceCommand, AddLastStreamErrorToAgentChatThreadFastInstanceCommand, diff --git a/packages/twenty-server/src/engine/core-modules/user-workspace/user-workspace.service.spec.ts b/packages/twenty-server/src/engine/core-modules/user-workspace/user-workspace.service.spec.ts index 019348bda0..739a4feff5 100644 --- a/packages/twenty-server/src/engine/core-modules/user-workspace/user-workspace.service.spec.ts +++ b/packages/twenty-server/src/engine/core-modules/user-workspace/user-workspace.service.spec.ts @@ -19,6 +19,7 @@ import { UserWorkspaceEntity } from 'src/engine/core-modules/user-workspace/user import { UserWorkspaceService } from 'src/engine/core-modules/user-workspace/user-workspace.service'; import { UserEntity } from 'src/engine/core-modules/user/user.entity'; import { WorkspaceInvitationService } from 'src/engine/core-modules/workspace-invitation/services/workspace-invitation.service'; +import { WorkspaceDiscoverability } from 'src/engine/core-modules/workspace/types/workspace-discoverability.type'; import { type WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity'; import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; import { PermissionsException } from 'src/engine/metadata-modules/permissions/permissions.exception'; @@ -654,6 +655,7 @@ describe('UserWorkspaceService', () => { displayName: 'Workspace 2', logo: 'logo2.png', workspaceSSOIdentityProviders: [], + workspaceDiscoverability: WorkspaceDiscoverability.PUBLIC, } as unknown as WorkspaceEntity; const user = { @@ -714,6 +716,7 @@ describe('UserWorkspaceService', () => { displayName: 'Workspace 1', logo: 'logo1.png', workspaceSSOIdentityProviders: [], + workspaceDiscoverability: WorkspaceDiscoverability.PUBLIC, } as unknown as WorkspaceEntity; jest.spyOn(userRepository, 'findOne').mockResolvedValue(null); diff --git a/packages/twenty-server/src/engine/core-modules/user-workspace/user-workspace.service.ts b/packages/twenty-server/src/engine/core-modules/user-workspace/user-workspace.service.ts index 8a39fbe4e7..9ed996285d 100644 --- a/packages/twenty-server/src/engine/core-modules/user-workspace/user-workspace.service.ts +++ b/packages/twenty-server/src/engine/core-modules/user-workspace/user-workspace.service.ts @@ -26,6 +26,7 @@ import { OnboardingService } from 'src/engine/core-modules/onboarding/onboarding import { UserWorkspaceEntity } from 'src/engine/core-modules/user-workspace/user-workspace.entity'; import { UserEntity } from 'src/engine/core-modules/user/user.entity'; import { WorkspaceInvitationService } from 'src/engine/core-modules/workspace-invitation/services/workspace-invitation.service'; +import { WorkspaceDiscoverability } from 'src/engine/core-modules/workspace/types/workspace-discoverability.type'; import { AuthProviderEnum } from 'src/engine/core-modules/workspace/types/workspace.type'; import { type WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity'; import { workspaceValidator } from 'src/engine/core-modules/workspace/workspace.validate'; @@ -355,27 +356,41 @@ export class UserWorkspaceService extends TypeOrmQueryService