feat: history cleanup (#7007)

fix AFF-1069
This commit is contained in:
darkskygit
2024-05-24 08:00:05 +00:00
parent 02564a8d8c
commit 937b8bf166
6 changed files with 188 additions and 77 deletions
+9
View File
@@ -76,6 +76,12 @@ type DeleteAccount {
success: Boolean!
}
input DeleteSessionInput {
docId: String!
sessionIds: [String!]!
workspaceId: String!
}
type DocHistoryType {
id: String!
timestamp: DateTime!
@@ -184,6 +190,9 @@ type Mutation {
changeEmail(email: String!, token: String!): UserType!
changePassword(newPassword: String!, token: String!): UserType!
"""Cleanup sessions"""
cleanupCopilotSession(options: DeleteSessionInput!): String!
"""Create a subscription checkout link of stripe"""
createCheckoutSession(input: CreateCheckoutSessionInput!): String!