"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.graphql = void 0;
/* eslint-disable */
const types = __importStar(require("./graphql"));
/**
 * Map of all GraphQL operations in the project.
 *
 * This map has several performance disadvantages:
 * 1. It is not tree-shakeable, so it will include all operations in the project.
 * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
 * 3. It does not support dead code elimination, so it will add unused operations.
 *
 * Therefore it is highly recommended to use the babel or swc plugin for production.
 */
const documents = {
    "\n            query ListDatasets ($where: DatasetWhereInput, $skip: Int, $take: Int, $cursor: DatasetWhereUniqueInput, $distinct: [DatasetScalarFieldEnum!]) {\n                datasets(where: $where, skip: $skip, take: $take, orderBy: { createdAt: desc }, cursor: $cursor, distinct: $distinct) {\n                    id\n                    name\n                    createdAt\n                    updatedAt\n                    _count {\n                        predictions\n                        trainingPredictions\n                    }\n                }\n            }\n        ": types.ListDatasetsDocument,
    "\n            query GetDataset($datasetId: Int!) {\n                dataset(where: { id: $datasetId }) {\n                _count {\n                    predictions\n                    trainingPredictions\n                }\n                name\n                id\n                updatedAt\n                createdAt\n                }\n            }\n        ": types.GetDatasetDocument,
    "\n            mutation CreateDataset($data: DatasetCreateInput!) {\n                createOneDataset(data: $data) {\n                id\n                name\n                }\n            }\n        ": types.CreateDatasetDocument,
    "\n            query GetDatasetCSV($datasetId: Float!) {\n                datasetCSV(datasetId: $datasetId)\n            }\n        ": types.GetDatasetCsvDocument,
    "\n      query ListFeedback(\n        $where: FeedbackWhereInput\n        $cursor: FeedbackWhereUniqueInput\n        $orderBy: [FeedbackOrderByWithRelationInput!]\n        $take: Int\n        $skip: Int\n        $distinct: [FeedbackScalarFieldEnum!]\n      ) {\n        feedbacks(\n          where: $where\n          cursor: $cursor\n          orderBy: $orderBy\n          take: $take\n          skip: $skip\n          distinct: $distinct\n        ) {\n          content\n          createdAt\n          id\n          labelId\n          updatedAt\n          upvote\n          userId\n        }\n      }\n    ": types.ListFeedbackDocument,
    "\n      query GetFeedback($where: FeedbackWhereUniqueInput!) {\n        feedback(where: $where) {\n          id\n          userId\n          upvote\n          content\n          labelId\n        }\n      }\n    ": types.GetFeedbackDocument,
    "\n      mutation CreateFeedback($data: FeedbackCreateInput!) {\n        createOneFeedback(data: $data) {\n          id\n          userId\n          upvote\n          content\n          labelId\n        }\n      }\n    ": types.CreateFeedbackDocument,
    "\n      mutation CreateManyFeedbacks($data: [FeedbackCreateManyInput!]!) {\n        createManyFeedback(data: $data) {\n          count\n        }\n      }\n    ": types.CreateManyFeedbacksDocument,
    "\n      mutation UpdateFeedback($where: FeedbackWhereUniqueInput!, $data: FeedbackUpdateInput!) {\n        updateOneFeedback(where: $where, data: $data) {\n          id\n          userId\n          upvote\n          content\n          labelId\n        }\n      }\n    ": types.UpdateFeedbackDocument,
    "\n      mutation DeleteFeedback($where: FeedbackWhereUniqueInput!) {\n        deleteOneFeedback(where: $where) {\n          id\n        }\n      }\n    ": types.DeleteFeedbackDocument,
    "\n      query ListInferenceBackends($where: InferenceBackendWhereInput, $skip: Int, $take: Int, $cursor: InferenceBackendWhereUniqueInput, $distinct: [InferenceBackendScalarFieldEnum!]) {\n        inferenceBackends(where: $where, skip: $skip, take: $take, orderBy: { createdAt: desc }, cursor: $cursor, distinct: $distinct) {\n          id\n          name\n          active\n          urls\n          apiKey\n        }\n      }\n    ": types.ListInferenceBackendsDocument,
    "\n      query GetInferenceBackend($where: InferenceBackendWhereUniqueInput!) {\n        inferenceBackend(where: $where) {\n          id\n          name\n          active\n          urls\n          apiKey\n        }\n      }\n    ": types.GetInferenceBackendDocument,
    "\n      mutation CreateInferenceBackend($data: InferenceBackendCreateInput!) {\n        createOneInferenceBackend(data: $data) {\n          id\n          name\n          active\n          urls\n          apiKey\n        }\n      }\n    ": types.CreateInferenceBackendDocument,
    "\n      mutation UpdateInferenceBackend(\n        $where: InferenceBackendWhereUniqueInput!\n        $data: InferenceBackendUpdateInput!\n      ) {\n        updateOneInferenceBackend(where: $where, data: $data) {\n          id\n          name\n          active\n          urls\n          apiKey\n        }\n      }\n    ": types.UpdateInferenceBackendDocument,
    "\n      mutation DeleteInferenceBackend($where: InferenceBackendWhereUniqueInput!) {\n        deleteOneInferenceBackend(where: $where) {\n          id\n        }\n      }\n    ": types.DeleteInferenceBackendDocument,
    "\n      query ListLabels(\n        $where: LabelWhereInput\n        $skip: Int\n        $take: Int\n        $cursor: LabelWhereUniqueInput\n        $distinct: [LabelScalarFieldEnum!]\n        $orderBy: [LabelOrderByWithRelationInput!]\n      ) {\n        labels(\n          where: $where\n          skip: $skip\n          take: $take\n          orderBy: $orderBy\n          cursor: $cursor\n          distinct: $distinct\n        ) {\n          id\n          value\n          confidence\n          predictionId\n          createdAt\n          name\n          trainingPredictionId\n          updatedAt\n        }\n      }\n    ": types.ListLabelsDocument,
    "\n      query GetLabel($where: LabelWhereUniqueInput!) {\n        label(where: $where) {\n          id\n          value\n          confidence\n          predictionId\n        }\n      }\n    ": types.GetLabelDocument,
    "\n      mutation CreateLabel($data: LabelCreateInput!) {\n        createOneLabel(data: $data) {\n          id\n          value\n          confidence\n          predictionId\n        }\n      }\n    ": types.CreateLabelDocument,
    "\n      mutation UpdateLabel($where: LabelWhereUniqueInput!, $data: LabelUpdateInput!) {\n        updateOneLabel(where: $where, data: $data) {\n          id\n          value\n          confidence\n          predictionId\n        }\n      }\n    ": types.UpdateLabelDocument,
    "\n      mutation DeleteLabel($where: LabelWhereUniqueInput!) {\n        deleteOneLabel(where: $where) {\n          id\n        }\n      }\n    ": types.DeleteLabelDocument,
    "\n      query Prediction($openaiKwargs: OpenAIKwargs!, $prompt: String!, $modelBackendName: String!, $useCache: Boolean!, $labelParser: String, $metadata: [MetadataInput!]) {\n        prediction(openaiKwargs: $openaiKwargs, prompt: $prompt, modelBackendName: $modelBackendName, useCache: $useCache, labelParser: $labelParser, metadata: $metadata) {\n          completion\n          id\n          labels {\n            id\n            confidence\n            name\n            value\n          }\n          prompt\n          labelParser\n          metadata {\n            key\n            value\n          }\n        }\n      }\n    ": types.PredictionDocument,
    "\n      query CountPredictions($where: PredictionWhereInput) {\n        aggregatePrediction(where: $where) {\n          _count {\n            _all\n          }\n        }\n      }\n    ": types.CountPredictionsDocument,
    "\n      query GetLabelsForPrediction($where: LabelWhereInput) {\n        labels(where: $where) {\n          id\n          value\n          confidence\n          predictionId\n        }\n      }\n    ": types.GetLabelsForPredictionDocument,
    "\n    query ListPredictions($where: PredictionWhereInput, $orderBy: [PredictionOrderByWithRelationInput!], $cursor: PredictionWhereUniqueInput, $take: Int, $skip: Int, $distinct: [PredictionScalarFieldEnum!]) {\n      predictions(where: $where, orderBy: $orderBy, cursor: $cursor, take: $take, skip: $skip, distinct: $distinct) {\n        id\n        completion\n        createdAt\n        _count {\n          labels\n          datasets\n        }\n        labels {\n          id\n          name\n          value\n          confidence\n        }\n        prompt\n        requestArgs\n        response\n        updatedAt\n        userId\n        modelId\n      }\n    }\n    ": types.ListPredictionsDocument,
    "\n        query GetPrediction($id: Int!) {\n          getPrediction(where: { id: $id }) {\n            completion\n            createdAt\n            id\n            _count {\n              labels\n              datasets\n            }\n            model {\n              name\n            }\n            prompt\n          }\n        }\n      ": types.GetPredictionDocument,
    "\n      mutation UpdateOnePrediction($predictionId: Int!, $datasetId: Int!) {\n        updateOnePrediction(where: { id: $predictionId }, data: { datasets: { connect: { id: $datasetId } } }) {\n          id\n          _count {\n            datasets\n          }\n        }\n      }\n    ": types.UpdateOnePredictionDocument,
    "\n      mutation Mutation($datasetId: Int!, $predictionIds: [PredictionWhereUniqueInput!]!) {\n        updateOneDataset(where: { id: $datasetId }, data: { predictions: { connect: $predictionIds } }) {\n          id\n          _count {\n            predictions\n          }\n        }\n      }\n    ": types.MutationDocument,
    "\n      query GetUser($where: UserWhereUniqueInput!) {\n        user(where: $where) {\n          id\n          name\n          role\n          apiKey\n          email\n        }\n      }\n    ": types.GetUserDocument,
    "\n      mutation CreateUser($data: UserCreateInput!) {\n        createOneUser(data: $data) {\n          id\n          name\n          role\n          apiKey\n          email\n        }\n      }\n    ": types.CreateUserDocument,
    "\n      mutation UpdateUser($where: UserWhereUniqueInput!, $data: UserUpdateInput!) {\n        updateOneUser(where: $where, data: $data) {\n          id\n          name\n          role\n          apiKey\n          email\n        }\n      }\n    ": types.UpdateUserDocument,
    "\n      mutation DeleteUser($where: UserWhereUniqueInput!) {\n        deleteOneUser(where: $where) {\n          id\n        }\n      }\n    ": types.DeleteUserDocument,
};
function graphql(source) {
    return documents[source] ?? {};
}
exports.graphql = graphql;
