Skip to content

Commit

Permalink
Update graphql schema
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Apr 25, 2024
1 parent d8695ec commit 5906b91
Showing 1 changed file with 64 additions and 23 deletions.
87 changes: 64 additions & 23 deletions ee/tabby-webserver/graphql/schema.graphql
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
input UpdateRepositoryProviderInput {
id: ID!
displayName: String!
accessToken: String!
}

type GitlabRepositoryProvider {
id: ID!
displayName: String!
connected: Boolean!
}

enum Language {
RUST
PYTHON
Expand Down Expand Up @@ -36,6 +48,11 @@ type JobRun {
stderr: String!
}

type GitlabProvidedRepositoryEdge {
node: GitlabProvidedRepository!
cursor: String!
}

enum AuthMethod {
NONE
PLAIN
Expand Down Expand Up @@ -71,6 +88,11 @@ type LicenseInfo {
expiresAt: DateTimeUtc
}

type GitlabRepositoryProviderEdge {
node: GitlabRepositoryProvider!
cursor: String!
}

type GithubRepositoryProviderConnection {
edges: [GithubRepositoryProviderEdge!]!
pageInfo: PageInfo!
Expand Down Expand Up @@ -130,6 +152,11 @@ type Invitation {
createdAt: DateTimeUtc!
}

type GitlabProvidedRepositoryConnection {
edges: [GitlabProvidedRepositoryEdge!]!
pageInfo: PageInfo!
}

type EmailSetting {
smtpUsername: String!
smtpServer: String!
Expand All @@ -139,17 +166,17 @@ type EmailSetting {
authMethod: AuthMethod!
}

type TokenAuthResponse {
accessToken: String!
refreshToken: String!
}

type JobStats {
success: Int!
failed: Int!
pending: Int!
}

type TokenAuthResponse {
accessToken: String!
refreshToken: String!
}

type NetworkSetting {
externalUrl: String!
}
Expand Down Expand Up @@ -201,10 +228,14 @@ type Mutation {
deleteEmailSetting: Boolean!
uploadLicense(license: String!): Boolean!
resetLicense: Boolean!
createGithubRepositoryProvider(input: CreateGithubRepositoryProviderInput!): ID!
createGithubRepositoryProvider(input: CreateRepositoryProviderInput!): ID!
deleteGithubRepositoryProvider(id: ID!): Boolean!
updateGithubRepositoryProvider(input: UpdateGithubRepositoryProviderInput!): Boolean!
updateGithubRepositoryProvider(input: UpdateRepositoryProviderInput!): Boolean!
updateGithubProvidedRepositoryActive(id: ID!, active: Boolean!): Boolean!
createGitlabRepositoryProvider(input: CreateRepositoryProviderInput!): ID!
deleteGitlabRepositoryProvider(id: ID!): Boolean!
updateGitlabRepositoryProvider(input: UpdateRepositoryProviderInput!): Boolean!
updateGitlabProvidedRepositoryActive(id: ID!, active: Boolean!): Boolean!
}

type UserEventEdge {
Expand All @@ -217,12 +248,6 @@ type RepositoryEdge {
cursor: String!
}

input UpdateGithubRepositoryProviderInput {
id: ID!
displayName: String!
accessToken: String!
}

"DateTime"
scalar DateTimeUtc

Expand Down Expand Up @@ -250,6 +275,8 @@ type Query {
invitations(after: String, before: String, first: Int, last: Int): InvitationConnection!
githubRepositoryProviders(ids: [ID!], after: String, before: String, first: Int, last: Int): GithubRepositoryProviderConnection!
githubRepositories(providerIds: [ID!]!, after: String, before: String, first: Int, last: Int): GithubProvidedRepositoryConnection!
gitlabRepositoryProviders(ids: [ID!], after: String, before: String, first: Int, last: Int): GitlabRepositoryProviderConnection!
gitlabRepositories(providerIds: [ID!]!, after: String, before: String, first: Int, last: Int): GitlabProvidedRepositoryConnection!
jobRuns(ids: [ID!], jobs: [String!], after: String, before: String, first: Int, last: Int): JobRunConnection!
jobRunStats(jobs: [String!]): JobStats!
emailSetting: EmailSetting
Expand Down Expand Up @@ -299,6 +326,11 @@ type RefreshTokenResponse {
refreshExpiresAt: DateTimeUtc!
}

type GitlabRepositoryProviderConnection {
edges: [GitlabRepositoryProviderEdge!]!
pageInfo: PageInfo!
}

type RepositoryConnection {
edges: [RepositoryEdge!]!
pageInfo: PageInfo!
Expand All @@ -320,6 +352,15 @@ enum LicenseType {
ENTERPRISE
}

type GitlabProvidedRepository {
id: ID!
vendorId: String!
gitlabRepositoryProviderId: ID!
name: String!
gitUrl: String!
active: Boolean!
}

type OAuthCredential {
provider: OAuthProvider!
clientId: String!
Expand Down Expand Up @@ -347,7 +388,7 @@ input PasswordResetInput {
password2: String!
}

input CreateGithubRepositoryProviderInput {
input CreateRepositoryProviderInput {
displayName: String!
accessToken: String!
}
Expand All @@ -363,10 +404,6 @@ type User {
isPasswordSet: Boolean!
}

input RequestInvitationInput {
email: String!
}

type Worker {
kind: WorkerKind!
name: String!
Expand All @@ -378,23 +415,27 @@ type Worker {
cudaDevices: [String!]!
}

enum OAuthProvider {
GITHUB
GOOGLE
}

type InvitationEdge {
node: Invitation!
cursor: String!
}

enum OAuthProvider {
GITHUB
GOOGLE
}

type PageInfo {
hasPreviousPage: Boolean!
hasNextPage: Boolean!
startCursor: String
endCursor: String
}

input RequestInvitationInput {
email: String!
}

type GithubProvidedRepositoryEdge {
node: GithubProvidedRepository!
cursor: String!
Expand Down

0 comments on commit 5906b91

Please sign in to comment.