feat(server): support registering ai early access users (#6565)

This commit is contained in:
forehalo
2024-04-16 13:54:08 +00:00
parent 677c4711df
commit e1c292b8b5
14 changed files with 331 additions and 139 deletions

View File

@@ -80,8 +80,14 @@ type DocHistoryType {
workspaceId: String!
}
enum EarlyAccessType {
AI
App
}
"""The type of workspace feature"""
enum FeatureType {
AIEarlyAccess
Copilot
EarlyAccess
UnlimitedCopilot
@@ -170,7 +176,7 @@ type LimitedUserType {
type Mutation {
acceptInviteById(inviteId: String!, sendAcceptMail: Boolean, workspaceId: String!): Boolean!
addToEarlyAccess(email: String!): Int!
addToEarlyAccess(email: String!, type: EarlyAccessType!): Int!
addWorkspaceFeature(feature: FeatureType!, workspaceId: String!): Int!
cancelSubscription(idempotencyKey: String!, plan: SubscriptionPlan = Pro): UserSubscription!
changeEmail(email: String!, token: String!): UserType!