diff --git a/ee/tabby-webserver/graphql/schema.graphql b/ee/tabby-webserver/graphql/schema.graphql index bd83fdec22d1..5f734204efe3 100644 --- a/ee/tabby-webserver/graphql/schema.graphql +++ b/ee/tabby-webserver/graphql/schema.graphql @@ -1,92 +1,10 @@ -type JobRun { - id: ID! - job: String! - createdAt: DateTimeUtc! - updatedAt: DateTimeUtc! - finishedAt: DateTimeUtc - exitCode: Int - stdout: String! - stderr: String! -} - -enum AuthMethod { - NONE - PLAIN - LOGIN -} - -type RegisterResponse { - accessToken: String! - refreshToken: String! -} - -enum LicenseStatus { - OK - EXPIRED - SEATS_EXCEEDED -} - -input RequestPasswordResetEmailInput { - email: String! -} - -type LicenseInfo { - type: LicenseType! - status: LicenseStatus! - seats: Int! - seatsUsed: Int! - issuedAt: DateTimeUtc - expiresAt: DateTimeUtc -} - -input SecuritySettingInput { - allowedRegisterDomainList: [String!]! - disableClientSideTelemetry: Boolean! -} - -type SecuritySetting { - allowedRegisterDomainList: [String!]! - disableClientSideTelemetry: Boolean! -} - -type UserConnection { - edges: [UserEdge!]! - pageInfo: PageInfo! -} - -input UpdateOAuthCredentialInput { - provider: OAuthProvider! - clientId: String! - clientSecret: String -} - -type ServerInfo { - isAdminInitialized: Boolean! - isChatEnabled: Boolean! - isEmailConfigured: Boolean! - allowSelfSignup: Boolean! -} - -input PasswordChangeInput { - oldPassword: String - newPassword1: String! - newPassword2: String! +enum OAuthProvider { + GITHUB + GOOGLE } -type Invitation { - id: ID! +input RequestInvitationInput { email: String! - code: String! - createdAt: DateTimeUtc! -} - -type EmailSetting { - smtpUsername: String! - smtpServer: String! - smtpPort: Int! - fromAddress: String! - encryption: Encryption! - authMethod: AuthMethod! } type TokenAuthResponse { @@ -94,32 +12,6 @@ type TokenAuthResponse { refreshToken: String! } -type JobStats { - success: Int! - failed: Int! - pending: Int! -} - -type NetworkSetting { - externalUrl: String! -} - -type JobRunEdge { - node: JobRun! - cursor: String! -} - -type Tag { - range: IntRange! - nameRange: IntRange! - utf16ColumnRange: IntRange! - span: PointRange! - lineRange: IntRange! - docs: String - isDefinition: Boolean! - syntaxTypeName: String! -} - enum WorkerKind { COMPLETION CHAT @@ -169,8 +61,15 @@ type RepositoryEdge { "DateTime" scalar DateTimeUtc -input NetworkSettingInput { - externalUrl: String! +type JobRun { + id: ID! + job: String! + createdAt: DateTimeUtc! + updatedAt: DateTimeUtc! + finishedAt: DateTimeUtc + exitCode: Int + stdout: String! + stderr: String! } type Query { @@ -187,8 +86,7 @@ type Query { networkSetting: NetworkSetting! securitySetting: SecuritySetting! repositories(after: String, before: String, first: Int, last: Int): RepositoryConnection! - repositorySearch(repository: String!, filter: String): [FileEntry!]! - repositoryMeta(repository: String!, path: String!): RepositoryMeta! + repositorySearch(repository: String!, filter: String!): [FileEntry!]! oauthCredential(provider: OAuthProvider!): OAuthCredential oauthCallbackUrl(provider: OAuthProvider!): String! serverInfo: ServerInfo! @@ -196,12 +94,22 @@ type Query { jobs: [String!]! } +input NetworkSettingInput { + externalUrl: String! +} + enum Encryption { START_TLS SSL_TLS NONE } +enum AuthMethod { + NONE + PLAIN + LOGIN +} + type UserEdge { node: User! cursor: String! @@ -218,11 +126,35 @@ type RefreshTokenResponse { refreshExpiresAt: DateTimeUtc! } +type RegisterResponse { + accessToken: String! + refreshToken: String! +} + type RepositoryConnection { edges: [RepositoryEdge!]! pageInfo: PageInfo! } +enum LicenseStatus { + OK + EXPIRED + SEATS_EXCEEDED +} + +input RequestPasswordResetEmailInput { + email: String! +} + +type LicenseInfo { + type: LicenseType! + status: LicenseStatus! + seats: Int! + seatsUsed: Int! + issuedAt: DateTimeUtc + expiresAt: DateTimeUtc +} + input EmailSettingInput { smtpUsername: String! fromAddress: String! @@ -233,15 +165,31 @@ input EmailSettingInput { smtpPassword: String } +input SecuritySettingInput { + allowedRegisterDomainList: [String!]! + disableClientSideTelemetry: Boolean! +} + enum LicenseType { COMMUNITY TEAM ENTERPRISE } -type Point { - row: Int! - col: Int! +type SecuritySetting { + allowedRegisterDomainList: [String!]! + disableClientSideTelemetry: Boolean! +} + +type UserConnection { + edges: [UserEdge!]! + pageInfo: PageInfo! +} + +input UpdateOAuthCredentialInput { + provider: OAuthProvider! + clientId: String! + clientSecret: String } type OAuthCredential { @@ -252,25 +200,39 @@ type OAuthCredential { updatedAt: DateTimeUtc! } +type ServerInfo { + isAdminInitialized: Boolean! + isChatEnabled: Boolean! + isEmailConfigured: Boolean! + allowSelfSignup: Boolean! +} + input PasswordResetInput { code: String! password1: String! password2: String! } -type PointRange { - start: Point! - end: Point! +input PasswordChangeInput { + oldPassword: String + newPassword1: String! + newPassword2: String! } -type RepositoryMeta { - gitUrl: String! - filepath: String! - language: String! - maxLineLength: Int! - avgLineLength: Float! - alphanumFraction: Float! - tags: [Tag!]! +type Invitation { + id: ID! + email: String! + code: String! + createdAt: DateTimeUtc! +} + +type EmailSetting { + smtpUsername: String! + smtpServer: String! + smtpPort: Int! + fromAddress: String! + encryption: Encryption! + authMethod: AuthMethod! } type User { @@ -284,10 +246,6 @@ type User { isPasswordSet: Boolean! } -input RequestInvitationInput { - email: String! -} - type Worker { kind: WorkerKind! name: String! @@ -299,19 +257,15 @@ type Worker { cudaDevices: [String!]! } -enum OAuthProvider { - GITHUB - GOOGLE -} - type InvitationEdge { node: Invitation! cursor: String! } -type IntRange { - start: Int! - end: Int! +type JobStats { + success: Int! + failed: Int! + pending: Int! } type PageInfo { @@ -321,6 +275,15 @@ type PageInfo { endCursor: String } +type NetworkSetting { + externalUrl: String! +} + +type JobRunEdge { + node: JobRun! + cursor: String! +} + type Repository { id: ID! name: String!