Files
probo/pkg/server/api/connect/v1/graphql/base.graphql
Bryan Frimin 383ea5a2d4 Retrict some query and mutation to only session
Signed-off-by: Bryan Frimin <bryan@probo.com>
2026-06-02 17:43:21 -07:00

43 lines
923 B
GraphQL

directive @goField(
forceResolver: Boolean
name: String
omittable: Boolean
) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
directive @goModel(
model: String
models: [String!]
) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
directive @goEnum(value: String) on ENUM_VALUE
scalar CursorKey
scalar Datetime
scalar Upload
scalar EmailAddr
interface Node {
id: ID!
}
type Query {
node(id: ID!): Node @authentication(required: PRESENT)
viewer: Identity @authentication(required: PRESENT)
ssoLoginURL(email: EmailAddr!): String
@goField(forceResolver: true)
@authentication(required: OPTIONAL)
oidcProviders: [OIDCProviderInfo!]!
@goField(forceResolver: true)
@authentication(required: OPTIONAL)
signUpEnabled: Boolean!
@goField(forceResolver: true)
@authentication(required: OPTIONAL)
}
type OIDCProviderInfo {
name: String!
loginURL: String!
}
type Mutation