Skip to content

Commit

Permalink
Schema v0.39.0
Browse files Browse the repository at this point in the history
  • Loading branch information
caidobot committed Jul 18, 2024
1 parent 456d59a commit 693b737
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions plugin/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,20 @@ type CreateFilterPresetPayload {
filter: FilterPreset
}

union CreateFindingError = UnknownIdUserError | OtherUserError

input CreateFindingInput {
dedupeKey: String
description: String
reporter: String!
title: String!
}

type CreateFindingPayload {
error: CreateFindingError
finding: Finding
}

input CreateProjectInput {
name: String!
}
Expand Down Expand Up @@ -1157,6 +1171,7 @@ type FilterPresetEdge {

type Finding {
createdAt: Timestamp!
dedupeKey: String
description: String
host: String!
id: ID!
Expand Down Expand Up @@ -1518,6 +1533,7 @@ type MutationRoot {
createAutomateSession(input: CreateAutomateSessionInput!): CreateAutomateSessionPayload!
createBackup(projectId: ID!): CreateBackupPayload!
createFilterPreset(input: CreateFilterPresetInput!): CreateFilterPresetPayload!
createFinding(requestId: ID!, input: CreateFindingInput!): CreateFindingPayload!
createProject(input: CreateProjectInput!): CreateProjectPayload!
createReplaySession(input: CreateReplaySessionInput!): CreateReplaySessionPayload!
createReplaySessionCollection(input: CreateReplaySessionCollectionInput!): CreateReplaySessionCollectionPayload!
Expand Down Expand Up @@ -1686,14 +1702,26 @@ type PluginAuthor {
url: String
}

type PluginBackend implements Plugin {
enabled: Boolean!
id: ID!
manifestId: ID!
name: String
package: PluginPackage!
runtime: PluginRuntime!
state: PluginState!
}

enum PluginErrorReason {
ALREADY_INSTALLED
INVALID_MANIFEST
INVALID_OPERATION
INVALID_PACKAGE
MISSING_FILE
}

type PluginFrontend implements Plugin {
backend: PluginBackend
data: JSON
enabled: Boolean!
entrypoint: String
Expand All @@ -1719,6 +1747,15 @@ input PluginPackageSource @oneOf {
file: Upload
}

enum PluginRuntime {
JAVASCRIPT
}

type PluginState {
error: String
running: Boolean!
}

type PluginUserError implements UserError {
code: String!
reason: PluginErrorReason!
Expand Down

0 comments on commit 693b737

Please sign in to comment.