import { TailorField } from "./field.generated.mjs"; //#region src/types/resolver.generated.d.ts /** * GraphQL operation type */ export type QueryType = "query" | "mutation"; export type Resolver = { /** GraphQL operation type (query or mutation) */ operation: QueryType; /** Resolver name */ name: string; /** Resolver implementation function */ body: Function; /** Output field definition */ output: TailorField; /** Resolver description */ description?: string | undefined; /** Input field definitions */ input?: { [x: string]: TailorField; }; /** Enable publishing events from this resolver */ publishEvents?: boolean | undefined; /** Machine user to execute this resolver as */ invoker?: string | { /** Auth namespace */ namespace: string; /** Machine user name for authentication */ machineUserName: string; } | undefined; /** Access requirement for this resolver, evaluated against the original caller (unaffected by `invoker`) before `body` runs. "allowAnonymous" documents that anonymous callers are allowed. Omitted (default): unchanged, anonymous callers can reach the resolver */ permission?: "allowAnonymous" | readonly { conditions: readonly [(string | boolean | { user: string; }), "=" | "!=", (string | boolean | { user: string; })] | readonly (readonly [(string | boolean | { user: string; }), "=" | "!=", (string | boolean | { user: string; })])[]; permit: boolean; /** Reason recorded for this policy, used in the access-denied error message */ description?: string | undefined; }[] | undefined; }; export type ResolverInput = Resolver; //#endregion