Skip to content

The open alternative to Salesforce, designed for AI.

Update snapshot agentThread entity new auth coverage (#27145)

Paul Rastoin9b493d910df0
diff --git a/packages/twenty-server/src/engine/guards/__tests__/__snapshots__/endpoint-permission-declarations.spec.ts.snap b/packages/twenty-server/src/engine/guards/__tests__/__snapshots__/endpoint-permission-declarations.spec.ts.snap
index 10792237351..28995bc7dfb 100644
--- a/packages/twenty-server/src/engine/guards/__tests__/__snapshots__/endpoint-permission-declarations.spec.ts.snap
+++ b/packages/twenty-server/src/engine/guards/__tests__/__snapshots__/endpoint-permission-declarations.spec.ts.snap
@@ -71,6 +71,12 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an
"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}}]}",
"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}}]}",
@@ -450,6 +456,8 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an
"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}}]}",
"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}}]}",
@@ -464,6 +472,7 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an
"RoleResolver.assignRoleToAgent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"RoleResolver.createOneRole {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"RoleResolver.deleteOneRole {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
+ "RoleResolver.getRole {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"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}}]}",