The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Take the endpoint permission snapshot from the integration app (#27147)
Paul Rastoin1b09ce3fc710
diff --git a/packages/twenty-server/src/engine/guards/__tests__/endpoint-permission-declarations.spec.ts b/packages/twenty-server/src/engine/guards/__tests__/endpoint-permission-declarations.spec.tsdeleted file mode 100644index 50209d9d8f0..00000000000--- a/packages/twenty-server/src/engine/guards/__tests__/endpoint-permission-declarations.spec.ts+++ /dev/null@@ -1,14 +0,0 @@-import { AppModule } from 'src/app.module';-import { collectEndpointPermissionDeclarations } from 'src/engine/guards/__tests__/collect-endpoint-permission-declarations.test-util';--jest.mock('@react-pdf/renderer', () => ({- StyleSheet: { create: (styles: unknown) => styles },-}));--describe('endpoint permission declarations', () => {- it('should match the AuthPrincipalGuard and application target of every mounted endpoint', async () => {- expect(- await collectEndpointPermissionDeclarations(AppModule),- ).toMatchSnapshot();- });-});diff --git a/packages/twenty-server/src/engine/guards/__tests__/__snapshots__/endpoint-permission-declarations.spec.ts.snap b/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snapsimilarity index 94%rename from packages/twenty-server/src/engine/guards/__tests__/__snapshots__/endpoint-permission-declarations.spec.ts.snaprename to packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snapindex 28995bc7dfb..7a79539a436 100644--- a/packages/twenty-server/src/engine/guards/__tests__/__snapshots__/endpoint-permission-declarations.spec.ts.snap+++ b/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap@@ -61,22 +61,22 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"AdminPanelUsageLimitResolver.deleteWorkspaceUsageLimit {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AdminPanelUsageLimitResolver.updateWorkspaceUsageLimit {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AdminPanelUsageLimitResolver.workspaceUsageLimits {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatResolver.chatMessages {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatResolver.chatStreamCatchupChunks {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatResolver.chatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatResolver.createChatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatResolver.deleteQueuedChatMessage {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatResolver.getAiSystemPromptPreview {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatResolver.retryChatMessage {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatResolver.sendChatMessage {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatResolver.stopAgentChatStream {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatSubscriptionResolver.onAgentChatEvent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.archiveAgentChatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.markAgentChatThreadAsRead {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.markAgentChatThreadAsUnread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.moveAgentChatThreadToInbox {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.myAgentChatThreadParticipants {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.snoozeAgentChatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatResolver.chatMessages {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatResolver.chatStreamCatchupChunks {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatResolver.chatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatResolver.createChatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatResolver.deleteQueuedChatMessage {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatResolver.getAiSystemPromptPreview {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatResolver.retryChatMessage {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatResolver.sendChatMessage {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatResolver.stopAgentChatStream {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatSubscriptionResolver.onAgentChatEvent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatThreadParticipantResolver.archiveAgentChatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatThreadParticipantResolver.markAgentChatThreadAsRead {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatThreadParticipantResolver.markAgentChatThreadAsUnread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatThreadParticipantResolver.moveAgentChatThreadToInbox {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatThreadParticipantResolver.myAgentChatThreadParticipants {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatThreadParticipantResolver.snoozeAgentChatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AgentInboxResolver.sendInboxMessage {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":false,"userSession":false}]}","AgentResolver.createOneAgent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AgentResolver.deleteOneAgent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -86,7 +86,7 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"AgentRunResolver.runAgent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AgentTurnResolver.agentTurns {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AgentTurnResolver.evaluateAgentTurn {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentTurnResolver.runEvaluationInput {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentTurnResolver.runEvaluationInput {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AiChatUsageResolver.aiChatUsage {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AiGenerateTextController.handleGenerateText {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AiWorkspaceStatsResolver.findWorkspaceAiStats {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -164,7 +164,7 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"ApplicationResolver.applicationSdkClientChecksums {"applicationTarget":{"argName":"applicationId","kind":"applicationId","requireApplicationRegistrationOwnership":false,"source":"graphqlArg"},"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","ApplicationResolver.isApplicationStopped {"applicationTarget":{"argName":"applicationUniversalIdentifier","kind":"applicationUniversalIdentifier","requireApplicationRegistrationOwnership":false,"source":"graphqlArg"},"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","ApplicationSchemaResolver.applicationCoreGraphqlSchema {"applicationTarget":{"argName":"applicationUniversalIdentifier","kind":"applicationUniversalIdentifier","requireApplicationRegistrationOwnership":false,"source":"graphqlArg"},"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "ApplicationUpgradeResolver.upgradeApplication {"applicationTarget":{"argName":"appRegistrationId","kind":"applicationRegistrationId","requireApplicationRegistrationOwnership":false,"source":"graphqlArg"},"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "ApplicationUpgradeResolver.upgradeApplication {"applicationTarget":{"argName":"appRegistrationId","kind":"applicationRegistrationId","requireApplicationRegistrationOwnership":false,"source":"graphqlArg"},"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","ApplicationVariableEntityResolver.updateOneApplicationVariable {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","ApprovedAccessDomainResolver.createApprovedAccessDomain {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","ApprovedAccessDomainResolver.deleteApprovedAccessDomain {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -173,20 +173,20 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"AuthResolver.authorizeApp {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":true}]}","AuthResolver.checkUserExists {"applicationTarget":null,"authPrincipalGuards":[]}","AuthResolver.checkWorkspaceInviteHashIsValid {"applicationTarget":null,"authPrincipalGuards":[]}",- "AuthResolver.checkWorkspaceSubdomainAvailability {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":true}]}",- "AuthResolver.completeNewWorkspaceLogoUpload {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":true}]}",- "AuthResolver.createNewWorkspaceLogoUpload {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":true}]}",+ "AuthResolver.checkWorkspaceSubdomainAvailability {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":true}]}",+ "AuthResolver.completeNewWorkspaceLogoUpload {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":true}]}",+ "AuthResolver.createNewWorkspaceLogoUpload {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":true}]}","AuthResolver.emailPasswordResetLink {"applicationTarget":null,"authPrincipalGuards":[]}","AuthResolver.findWorkspaceFromInviteHash {"applicationTarget":null,"authPrincipalGuards":[]}","AuthResolver.generateApiKeyToken {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":false,"standard":true,"workspaceAgnostic":false}}]}","AuthResolver.generatePlaygroundToken {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":false,"standard":true,"workspaceAgnostic":false}}]}","AuthResolver.generateTransientToken {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":true}]}",- "AuthResolver.getAuthorizationUrlForSSO {"applicationTarget":null,"authPrincipalGuards":[]}","AuthResolver.getAuthTokensFromLoginToken {"applicationTarget":null,"authPrincipalGuards":[]}","AuthResolver.getAuthTokensFromOTP {"applicationTarget":null,"authPrincipalGuards":[]}","AuthResolver.getAuthTokensFromSSOExchangeToken {"applicationTarget":null,"authPrincipalGuards":[]}",+ "AuthResolver.getAuthorizationUrlForSSO {"applicationTarget":null,"authPrincipalGuards":[]}","AuthResolver.getLoginTokenFromCredentials {"applicationTarget":null,"authPrincipalGuards":[]}",- "AuthResolver.getWorkspaceCreationDefaults {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":true}]}",+ "AuthResolver.getWorkspaceCreationDefaults {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":true}]}","AuthResolver.renewToken {"applicationTarget":null,"authPrincipalGuards":[]}","AuthResolver.signIn {"applicationTarget":null,"authPrincipalGuards":[]}","AuthResolver.signOut {"applicationTarget":null,"authPrincipalGuards":[]}",@@ -194,7 +194,7 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"AuthResolver.signUpInNewWorkspace {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":true}]}","AuthResolver.signUpInWorkspace {"applicationTarget":null,"authPrincipalGuards":[]}","AuthResolver.updatePasswordViaResetToken {"applicationTarget":null,"authPrincipalGuards":[]}",- "AuthResolver.uploadNewWorkspaceLogo {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":true}]}",+ "AuthResolver.uploadNewWorkspaceLogo {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":true}]}","AuthResolver.validatePasswordResetToken {"applicationTarget":null,"authPrincipalGuards":[]}","AuthResolver.verifyEmailAndGetLoginToken {"applicationTarget":null,"authPrincipalGuards":[]}","AuthResolver.verifyEmailAndGetWorkspaceAgnosticToken {"applicationTarget":null,"authPrincipalGuards":[]}",@@ -203,9 +203,9 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"BillingResolver.cancelSwitchBillingInterval {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","BillingResolver.cancelSwitchBillingPlan {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","BillingResolver.cancelSwitchResourceCreditPrice {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "BillingResolver.checkoutSession {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "BillingResolver.checkoutSession {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","BillingResolver.createBillingPaymentMethodSetupIntent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "BillingResolver.createSubscriptionPaymentIntent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "BillingResolver.createSubscriptionPaymentIntent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","BillingResolver.endSubscriptionTrialPeriod {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","BillingResolver.getResourceCreditUsage {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","BillingResolver.listPlans {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -240,12 +240,12 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"ConnectionProviderOAuthController.callback {"applicationTarget":null,"authPrincipalGuards":[]}","CoreWorkflowResolver.coreWorkflow {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowResolver.coreWorkflowById {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "CoreWorkflowResolver.coreWorkflows {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "CoreWorkflowResolver.coreWorkflowsWithCurrentVersions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowResolver.coreWorkflowVersion {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowResolver.coreWorkflowVersionById {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowResolver.coreWorkflowVersions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowResolver.coreWorkflowVersionsByCoreWorkflowId {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "CoreWorkflowResolver.coreWorkflows {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "CoreWorkflowResolver.coreWorkflowsWithCurrentVersions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowResolver.createCoreWorkflow {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowResolver.deleteCoreWorkflows {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowResolver.discardCoreWorkflowDraft {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -260,7 +260,7 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"CoreWorkflowVersionMutationResolver.deleteCoreWorkflowVersionEdge {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowVersionMutationResolver.deleteCoreWorkflowVersionStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowVersionMutationResolver.duplicateCoreWorkflowVersionStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "CoreWorkflowVersionMutationResolver.runCoreWorkflowVersion {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "CoreWorkflowVersionMutationResolver.runCoreWorkflowVersion {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowVersionMutationResolver.updateCoreWorkflowVersionPositions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowVersionMutationResolver.updateCoreWorkflowVersionStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","CoreWorkflowVersionMutationResolver.updateCoreWorkflowVersionTrigger {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -271,6 +271,7 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"DpaResolver.dpaAgreements {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","DpaResolver.dpaPreview {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","DpaResolver.generateSignedDpa {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "EmailVerificationResolver.resendEmailVerificationToken {"applicationTarget":null,"authPrincipalGuards":[]}","EmailingDomainResolver.createEmailingDomain {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","EmailingDomainResolver.deleteEmailingDomain {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","EmailingDomainResolver.getEmailingDomains {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -279,7 +280,6 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"EmailingSendResolver.previewMessageCampaignAudience {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","EmailingSendResolver.sendMessageCampaign {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","EmailingSendResolver.sendMessageCampaignTest {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "EmailVerificationResolver.resendEmailVerificationToken {"applicationTarget":null,"authPrincipalGuards":[]}","EnterpriseResolver.enterpriseCheckoutSession {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","EnterpriseResolver.enterprisePortalSession {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","EnterpriseResolver.enterpriseSubscriptionStatus {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -290,9 +290,9 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"EventLogEmitterResolver.trackAnalytics {"applicationTarget":null,"authPrincipalGuards":[]}","EventLogsLiveResolver.eventLogsLive {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","EventLogsResolver.eventLogs {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "EventStreamResolver.addQueryToEventStream {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "EventStreamResolver.onEventSubscription {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "EventStreamResolver.removeQueryFromEventStream {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "EventStreamResolver.addQueryToEventStream {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "EventStreamResolver.onEventSubscription {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "EventStreamResolver.removeQueryFromEventStream {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FieldMetadataController.createOne {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FieldMetadataController.deleteOne {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FieldMetadataController.findMany {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -304,7 +304,7 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"FieldMetadataResolver.field {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FieldMetadataResolver.fields {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FieldMetadataResolver.updateOneField {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "FileController.downloadRecordExport {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "FileController.downloadRecordExport {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FileController.getApplicationRegistrationAsset {"applicationTarget":null,"authPrincipalGuards":[]}","FileController.getFileById {"applicationTarget":null,"authPrincipalGuards":[]}","FileController.getPublicAssets {"applicationTarget":null,"authPrincipalGuards":[]}",@@ -312,10 +312,10 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"FileCorePictureResolver.completeWorkspaceMemberProfilePictureUpload {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FileCorePictureResolver.uploadWorkspaceLogo {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FileCorePictureResolver.uploadWorkspaceMemberProfilePicture {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "FilesFieldResolver.uploadFilesFieldFileByUniversalIdentifier {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FileUploadController.uploadFileById {"applicationTarget":null,"authPrincipalGuards":[]}","FileUploadResolver.completeFileUpload {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FileUploadResolver.createFileUpload {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "FilesFieldResolver.uploadFilesFieldFileByUniversalIdentifier {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FrontComponentController.getBuiltJs {"applicationTarget":{"argName":"frontComponentId","kind":"applicationOwnedEntity","metadataName":"frontComponent","requireApplicationRegistrationOwnership":false,"source":"routeParam"},"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FrontComponentResolver.createFrontComponent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","FrontComponentResolver.deleteFrontComponent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -453,12 +453,12 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"PublicDomainResolver.createPublicDomain {"applicationTarget":{"idKey":"applicationId","kind":"applicationId","requireApplicationRegistrationOwnership":false,"source":"graphqlArgs"},"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","PublicDomainResolver.deletePublicDomain {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","PublicDomainResolver.findManyPublicDomains {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "RecordExportResolver.exportRecords {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "RecordPermissionsResolver.recordPermissions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "RecordSharingResolver.recordSharing {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "RecordSharingResolver.removeRecordShare {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "RecordSharingResolver.setRecordGeneralAccess {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "RecordSharingResolver.setRecordShare {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "RecordExportResolver.exportRecords {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "RecordPermissionsResolver.recordPermissions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "RecordSharingResolver.recordSharing {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "RecordSharingResolver.removeRecordShare {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "RecordSharingResolver.setRecordGeneralAccess {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "RecordSharingResolver.setRecordShare {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","RestApiCoreController.handleApiDelete {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","RestApiCoreController.handleApiFindDuplicates {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","RestApiCoreController.handleApiGet {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -476,7 +476,7 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"RoleResolver.getRoles {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","RoleResolver.removeRoleFromAgent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","RoleResolver.updateOneRole {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "RoleResolver.updateWorkspaceMemberRole {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "RoleResolver.updateWorkspaceMemberRole {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","RoleResolver.upsertFieldPermissions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","RoleResolver.upsertObjectPermissions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","RoleResolver.upsertPermissionFlags {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -521,7 +521,7 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"TimelineMessagingResolver.getTimelineThreadsFromObjectRecord {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","TimelineMessagingResolver.getTimelineThreadsFromOpportunityId {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","TimelineMessagingResolver.getTimelineThreadsFromPersonId {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "ToolCallAnswerResolver.answerToolCall {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "ToolCallAnswerResolver.answerToolCall {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","ToolIndexResolver.getToolIndex {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","ToolIndexResolver.getToolInputSchema {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","TwoFactorAuthenticationResolver.deleteTwoFactorAuthenticationMethod {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":false,"playground":false,"standard":true,"workspaceAgnostic":false}}]}",@@ -544,9 +544,9 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"UsageLimitResolver.usageQuotaScopeConsumption {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","UsageLimitResolver.usageQuotasWithConsumption {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","UsageResolver.getUsageAnalytics {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "UserResolver.currentUser {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":true}]}",+ "UserResolver.currentUser {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":true}]}","UserResolver.deleteUser {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":true}]}",- "UserResolver.deleteUserFromWorkspace {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":true}]}",+ "UserResolver.deleteUserFromWorkspace {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":true}]}","UserResolver.updateUserEmail {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","UserResolver.updateWorkspaceMemberSettings {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","UserSessionResolver.currentUserSessions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":true}]}",@@ -646,33 +646,33 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"WebhookResolver.webhooks {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","WellKnownController.getApiCatalog {"applicationTarget":null,"authPrincipalGuards":[]}","WellKnownController.getMcpServerCard {"applicationTarget":null,"authPrincipalGuards":[]}",- "WorkflowBuilderResolver.computeStepOutputSchema {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowBuilderResolver.computeStepOutputSchema {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","WorkflowTriggerController.runWorkflowByGetRequest {"applicationTarget":null,"authPrincipalGuards":[]}","WorkflowTriggerController.runWorkflowByPostRequest {"applicationTarget":null,"authPrincipalGuards":[]}","WorkflowTriggerResolver.activateWorkflowVersion {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","WorkflowTriggerResolver.deactivateWorkflowVersion {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","WorkflowTriggerResolver.retryWorkflowRun {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowTriggerResolver.runWorkflowVersion {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowTriggerResolver.runWorkflowVersion {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","WorkflowTriggerResolver.stopWorkflowRun {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionEdgeResolver.createWorkflowVersionEdge {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionEdgeResolver.deleteWorkflowVersionEdge {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionResolver.createDraftFromWorkflowVersion {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionResolver.duplicateWorkflow {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionResolver.updateWorkflowVersionPositions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionResolver.validateWorkflowVersion {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionResolver.workflowVersionContent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionStepResolver.createWorkflowVersionStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionStepResolver.deleteWorkflowVersionStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionStepResolver.duplicateWorkflowVersionStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionStepResolver.testHttpRequest {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionStepResolver.updateWorkflowRunStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionStepResolver.updateWorkflowVersionStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionStepResolver.updateWorkflowVersionTrigger {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkflowVersionStepResolver.workflowStepConnectedAccountHandle {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionEdgeResolver.createWorkflowVersionEdge {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionEdgeResolver.deleteWorkflowVersionEdge {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionResolver.createDraftFromWorkflowVersion {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionResolver.duplicateWorkflow {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionResolver.updateWorkflowVersionPositions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionResolver.validateWorkflowVersion {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionResolver.workflowVersionContent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionStepResolver.createWorkflowVersionStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionStepResolver.deleteWorkflowVersionStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionStepResolver.duplicateWorkflowVersionStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionStepResolver.testHttpRequest {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionStepResolver.updateWorkflowRunStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionStepResolver.updateWorkflowVersionStep {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionStepResolver.updateWorkflowVersionTrigger {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkflowVersionStepResolver.workflowStepConnectedAccountHandle {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","WorkspaceInvitationResolver.deleteWorkspaceInvitation {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","WorkspaceInvitationResolver.findWorkspaceInvitations {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkspaceInvitationResolver.resendWorkspaceInvitation {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkspaceInvitationResolver.sendInvitations {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkspaceInvitationResolver.resendWorkspaceInvitation {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkspaceInvitationResolver.sendInvitations {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","WorkspaceResolver.activateWorkspace {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":false,"oauthClient":false,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","WorkspaceResolver.checkCustomDomainValidRecords {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","WorkspaceResolver.currentWorkspace {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",@@ -681,6 +681,6 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"WorkspaceResolver.getPublicWorkspaceDataById {"applicationTarget":null,"authPrincipalGuards":[]}","WorkspaceResolver.updateWorkspace {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","WorkspaceResolver.updateWorkspaceAllowedIframeOrigins {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "WorkspaceSetupChatResolver.startWorkspaceSetupChat {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withoutUser":false,"withUser":true},"oauthClient":{"withoutUser":false,"withUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "WorkspaceSetupChatResolver.startWorkspaceSetupChat {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",]`;diff --git a/packages/twenty-server/test/integration/endpoint-permissions/endpoint-permission-declarations.integration-spec.ts b/packages/twenty-server/test/integration/endpoint-permissions/endpoint-permission-declarations.integration-spec.tsnew file mode 100644index 00000000000..41017b7785d--- /dev/null+++ b/packages/twenty-server/test/integration/endpoint-permissions/endpoint-permission-declarations.integration-spec.ts@@ -0,0 +1,7 @@+import { collectEndpointPermissionDeclarations } from 'test/integration/utils/collect-endpoint-permission-declarations.util';++describe('endpoint permission declarations', () => {+ it('should match the AuthPrincipalGuard and application target of every mounted endpoint', () => {+ expect(collectEndpointPermissionDeclarations()).toMatchSnapshot();+ });+});diff --git a/packages/twenty-server/src/engine/guards/__tests__/collect-endpoint-permission-declarations.test-util.ts b/packages/twenty-server/test/integration/utils/collect-endpoint-permission-declarations.util.tssimilarity index 59%rename from packages/twenty-server/src/engine/guards/__tests__/collect-endpoint-permission-declarations.test-util.tsrename to packages/twenty-server/test/integration/utils/collect-endpoint-permission-declarations.util.tsindex 43a0208c2fb..7823662028c 100644--- a/packages/twenty-server/src/engine/guards/__tests__/collect-endpoint-permission-declarations.test-util.ts+++ b/packages/twenty-server/test/integration/utils/collect-endpoint-permission-declarations.util.ts@@ -1,10 +1,13 @@import { type CanActivate, type Type } from '@nestjs/common';import { GUARDS_METADATA, PATH_METADATA } from '@nestjs/common/constants';-import { MetadataScanner, Reflector } from '@nestjs/core';-import { NestContainer } from '@nestjs/core/injector/container';-import { GraphInspector } from '@nestjs/core/inspector/graph-inspector';-import { DependenciesScanner } from '@nestjs/core/scanner';+import {+ type DiscoveryService,+ type MetadataScanner,+ type Reflector,+} from '@nestjs/core';+import { type InstanceWrapper } from '@nestjs/core/injector/instance-wrapper';import { RESOLVER_TYPE_METADATA } from '@nestjs/graphql/dist/graphql.constants.js';+import { getAppProviderByClassName } from 'test/integration/utils/get-app-provider-by-class-name.util';import { isDefined, isPlainObject } from 'twenty-shared/utils';@@ -22,47 +25,34 @@ type EndpointClass = Type<object>;type EndpointHandler = (...args: never[]) => unknown;-type ScannedClass = { endpointClass: EndpointClass; isController: boolean };+type DiscoveredClass = { endpointClass: EndpointClass; isController: boolean };type Guard = Type<CanActivate> | CanActivate;const GRAPHQL_OPERATION_TYPES = new Set(['Query', 'Mutation', 'Subscription']);-const reflector = new Reflector();-const metadataScanner = new MetadataScanner();--const scanClasses = async (- rootModule: Type<object>,-): Promise<ScannedClass[]> => {- const container = new NestContainer();-- await new DependenciesScanner(- container,- metadataScanner,- new GraphInspector(container),- ).scan(rootModule);-+const discoverClasses = (+ discoveryService: DiscoveryService,+): DiscoveredClass[] => {const isControllerByClass = new Map<EndpointClass, boolean>();- for (const moduleRef of container.getModules().values()) {- for (const [wrappers, isController] of [- [moduleRef.controllers, true],- [moduleRef.providers, false],- ] as const) {- for (const { metatype } of wrappers.values()) {- if (typeof metatype !== 'function' || !isDefined(metatype.prototype)) {- continue;- }-- const endpointClass = metatype as EndpointClass;-- isControllerByClass.set(- endpointClass,- isController || (isControllerByClass.get(endpointClass) ?? false),- );+ const register = (wrappers: InstanceWrapper[], isController: boolean) => {+ for (const { metatype } of wrappers) {+ if (typeof metatype !== 'function' || !isDefined(metatype.prototype)) {+ continue;}++ const endpointClass = metatype as EndpointClass;++ isControllerByClass.set(+ endpointClass,+ isController || (isControllerByClass.get(endpointClass) ?? false),+ );}- }+ };++ register(discoveryService.getControllers(), true);+ register(discoveryService.getProviders(), false);return [...isControllerByClass.entries()].map(([endpointClass, isController]) => ({ endpointClass, isController }),@@ -71,17 +61,21 @@ const scanClasses = async (const isEndpointHandler = (handler: unknown,- isController: boolean,+ { reflector, isController }: { reflector: Reflector; isController: boolean },): handler is EndpointHandler =>typeof handler === 'function' &&(GRAPHQL_OPERATION_TYPES.has(- Reflect.getMetadata(RESOLVER_TYPE_METADATA, handler),+ reflector.get<string | undefined>(RESOLVER_TYPE_METADATA, handler) ?? '',) ||(isController && isDefined(reflector.get(PATH_METADATA, handler))));-const readAuthPrincipalGuardConfigs = (- guardsOwner: EndpointClass | EndpointHandler,-): AuthPrincipalGuardConfig[] =>+const readAuthPrincipalGuardConfigs = ({+ reflector,+ guardsOwner,+}: {+ reflector: Reflector;+ guardsOwner: EndpointClass | EndpointHandler;+}): AuthPrincipalGuardConfig[] =>(reflector.get<Guard[] | undefined>(GUARDS_METADATA, guardsOwner) ?? []).map((guard) =>reflector.get<AuthPrincipalGuardConfig | undefined>(@@ -91,32 +85,41 @@ const readAuthPrincipalGuardConfigs = ().filter(isDefined);+const compareCodePoints = (left: string, right: string): number =>+ left < right ? -1 : left > right ? 1 : 0;+const stringifyWithSortedKeys = (value: unknown): string =>JSON.stringify(value, (_key, nestedValue: unknown) =>isPlainObject(nestedValue)? Object.fromEntries(Object.entries(nestedValue).sort(([left], [right]) =>- left.localeCompare(right),+ compareCodePoints(left, right),),): nestedValue,);-export const collectEndpointPermissionDeclarations = async (- rootModule: Type<object>,-): Promise<string[]> => {+export const collectEndpointPermissionDeclarations = (): string[] => {+ const discoveryService =+ getAppProviderByClassName<DiscoveryService>('DiscoveryService');+ const reflector = getAppProviderByClassName<Reflector>('Reflector');+ const metadataScanner =+ getAppProviderByClassName<MetadataScanner>('MetadataScanner');+const declarationsByEndpoint = new Map<string,EndpointPermissionDeclarations>();- for (const { endpointClass, isController } of await scanClasses(rootModule)) {+ for (const { endpointClass, isController } of discoverClasses(+ discoveryService,+ )) {const prototype = endpointClass.prototype;for (const methodName of metadataScanner.getAllMethodNames(prototype)) {const handler: unknown = prototype[methodName as keyof typeof prototype];- if (!isEndpointHandler(handler, isController)) {+ if (!isEndpointHandler(handler, { reflector, isController })) {continue;}@@ -130,8 +133,11 @@ export const collectEndpointPermissionDeclarations = async (declarationsByEndpoint.set(endpoint, {authPrincipalGuards: [- ...readAuthPrincipalGuardConfigs(endpointClass),- ...readAuthPrincipalGuardConfigs(handler),+ ...readAuthPrincipalGuardConfigs({+ reflector,+ guardsOwner: endpointClass,+ }),+ ...readAuthPrincipalGuardConfigs({ reflector, guardsOwner: handler }),],applicationTarget:reflector.get<ApplicationTarget | undefined>(@@ -143,7 +149,7 @@ export const collectEndpointPermissionDeclarations = async (}return [...declarationsByEndpoint.entries()]- .sort(([left], [right]) => left.localeCompare(right))+ .sort(([left], [right]) => compareCodePoints(left, right)).map(([endpoint, declarations]) =>`${endpoint} ${stringifyWithSortedKeys(declarations)}`,