diff --git a/.gitignore b/.gitignore index fdb9010b9cb..6e44b3adc1d 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,5 @@ site/src/**/*.md tests/integration/hugo-site/resources tests/integration/hugo-site/out tests/integration/hugo-site/.hugo_build.lock +_test_out/** + diff --git a/README.md b/README.md index abaa2c8c27e..ea5ec0c9ca4 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,9 @@ Manage netlify functions | Subcommand | description | |:--------------------------- |:-----| | [`graph:edit`](/docs/commands/graph.md#graphedit) | Launch the browser to edit your local graph functions from Netlify | +| [`graph:handler`](/docs/commands/graph.md#graphhandler) | Generate a handler for a Graph operation given its name. See `graph:operations` for a list of operations. | +| [`graph:library`](/docs/commands/graph.md#graphlibrary) | Generate the Graph function library | +| [`graph:operations`](/docs/commands/graph.md#graphoperations) | List all of the locally available operations | | [`graph:pull`](/docs/commands/graph.md#graphpull) | Pull down your local Netlify Graph schema, and process pending Graph edit events | diff --git a/docs/README.md b/docs/README.md index abff6d1d26a..ee5d052f2aa 100644 --- a/docs/README.md +++ b/docs/README.md @@ -117,6 +117,9 @@ Manage netlify functions | Subcommand | description | |:--------------------------- |:-----| | [`graph:edit`](/docs/commands/graph.md#graphedit) | Launch the browser to edit your local graph functions from Netlify | +| [`graph:handler`](/docs/commands/graph.md#graphhandler) | Generate a handler for a Graph operation given its name. See `graph:operations` for a list of operations. | +| [`graph:library`](/docs/commands/graph.md#graphlibrary) | Generate the Graph function library | +| [`graph:operations`](/docs/commands/graph.md#graphoperations) | List all of the locally available operations | | [`graph:pull`](/docs/commands/graph.md#graphpull) | Pull down your local Netlify Graph schema, and process pending Graph edit events | diff --git a/docs/commands/graph.md b/docs/commands/graph.md index 476f55c0edd..3d7ef6d15a2 100644 --- a/docs/commands/graph.md +++ b/docs/commands/graph.md @@ -23,6 +23,9 @@ netlify graph | Subcommand | description | |:--------------------------- |:-----| | [`graph:edit`](/docs/commands/graph.md#graphedit) | Launch the browser to edit your local graph functions from Netlify | +| [`graph:handler`](/docs/commands/graph.md#graphhandler) | Generate a handler for a Graph operation given its name. See `graph:operations` for a list of operations. | +| [`graph:library`](/docs/commands/graph.md#graphlibrary) | Generate the Graph function library | +| [`graph:operations`](/docs/commands/graph.md#graphoperations) | List all of the locally available operations | | [`graph:pull`](/docs/commands/graph.md#graphpull) | Pull down your local Netlify Graph schema, and process pending Graph edit events | @@ -50,6 +53,61 @@ netlify graph:edit - `httpProxy` (*string*) - Proxy server address to route requests through. - `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server +--- +## `graph:handler` + +Generate a handler for a Graph operation given its name. See `graph:operations` for a list of operations. + +**Usage** + +```bash +netlify graph:handler +``` + +**Arguments** + +- name - Operation name + +**Flags** + +- `debug` (*boolean*) - Print debugging information +- `httpProxy` (*string*) - Proxy server address to route requests through. +- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server + +--- +## `graph:library` + +Generate the Graph function library + +**Usage** + +```bash +netlify graph:library +``` + +**Flags** + +- `debug` (*boolean*) - Print debugging information +- `httpProxy` (*string*) - Proxy server address to route requests through. +- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server + +--- +## `graph:operations` + +List all of the locally available operations + +**Usage** + +```bash +netlify graph:operations +``` + +**Flags** + +- `debug` (*boolean*) - Print debugging information +- `httpProxy` (*string*) - Proxy server address to route requests through. +- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server + --- ## `graph:pull` diff --git a/docs/commands/index.md b/docs/commands/index.md index 65d517a1b52..26df889019b 100644 --- a/docs/commands/index.md +++ b/docs/commands/index.md @@ -98,6 +98,9 @@ Manage netlify functions | Subcommand | description | |:--------------------------- |:-----| | [`graph:edit`](/docs/commands/graph.md#graphedit) | Launch the browser to edit your local graph functions from Netlify | +| [`graph:handler`](/docs/commands/graph.md#graphhandler) | Generate a handler for a Graph operation given its name. See `graph:operations` for a list of operations. | +| [`graph:library`](/docs/commands/graph.md#graphlibrary) | Generate the Graph function library | +| [`graph:operations`](/docs/commands/graph.md#graphoperations) | List all of the locally available operations | | [`graph:pull`](/docs/commands/graph.md#graphpull) | Pull down your local Netlify Graph schema, and process pending Graph edit events | diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 9dc37ab7101..7e76125e271 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -82,7 +82,7 @@ "multiparty": "^4.2.1", "netlify": "^11.0.0", "netlify-headers-parser": "^6.0.1", - "netlify-onegraph-internal": "0.0.18", + "netlify-onegraph-internal": "0.0.28", "netlify-redirect-parser": "^13.0.2", "netlify-redirector": "^0.2.1", "node-fetch": "^2.6.0", @@ -15762,9 +15762,9 @@ } }, "node_modules/netlify-onegraph-internal": { - "version": "0.0.18", - "resolved": "https://registry.npmjs.org/netlify-onegraph-internal/-/netlify-onegraph-internal-0.0.18.tgz", - "integrity": "sha512-dUODB7zQDj03gwXQZQPlxFAfB1NBAtAt0A/CvWkfieG0g3MuRFAT/TOQGWtFesN1HkRZbW7dnC3JR9S9jB66WQ==", + "version": "0.0.28", + "resolved": "https://registry.npmjs.org/netlify-onegraph-internal/-/netlify-onegraph-internal-0.0.28.tgz", + "integrity": "sha512-csKAJ43gcdOBk1UsdVAQcfsMobDPjxqqTEZzWZOhlxjQvOZQJHXtoqnbD0eLfYl7TqCQFz2+Y/bWILIrHzYTIQ==", "dependencies": { "graphql": "16.0.0", "node-fetch": "^2.6.0", @@ -34723,9 +34723,9 @@ } }, "netlify-onegraph-internal": { - "version": "0.0.18", - "resolved": "https://registry.npmjs.org/netlify-onegraph-internal/-/netlify-onegraph-internal-0.0.18.tgz", - "integrity": "sha512-dUODB7zQDj03gwXQZQPlxFAfB1NBAtAt0A/CvWkfieG0g3MuRFAT/TOQGWtFesN1HkRZbW7dnC3JR9S9jB66WQ==", + "version": "0.0.28", + "resolved": "https://registry.npmjs.org/netlify-onegraph-internal/-/netlify-onegraph-internal-0.0.28.tgz", + "integrity": "sha512-csKAJ43gcdOBk1UsdVAQcfsMobDPjxqqTEZzWZOhlxjQvOZQJHXtoqnbD0eLfYl7TqCQFz2+Y/bWILIrHzYTIQ==", "requires": { "graphql": "16.0.0", "node-fetch": "^2.6.0", diff --git a/package.json b/package.json index 678df6d681e..7b8a3480941 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "url": "https://github.com/netlify/cli/issues" }, "scripts": { + "snap": "ava --verbose -u", "prepare": "husky install node_modules/@netlify/eslint-config-node/.husky/", "start": "node ./bin/run", "test": "run-s format test:dev", @@ -149,7 +150,7 @@ "multiparty": "^4.2.1", "netlify": "^11.0.0", "netlify-headers-parser": "^6.0.1", - "netlify-onegraph-internal": "0.0.18", + "netlify-onegraph-internal": "0.0.28", "netlify-redirect-parser": "^13.0.2", "netlify-redirector": "^0.2.1", "node-fetch": "^2.6.0", diff --git a/src/commands/graph/graph-edit.js b/src/commands/graph/graph-edit.js index 5f3eb9f498b..b443d85e843 100644 --- a/src/commands/graph/graph-edit.js +++ b/src/commands/graph/graph-edit.js @@ -1,3 +1,4 @@ +// @ts-check const gitRepoInfo = require('git-repo-info') const { OneGraphCliClient, generateSessionName, loadCLISession } = require('../../lib/one-graph/cli-client') @@ -15,7 +16,7 @@ const { createCLISession, createPersistedQuery, ensureAppForSite, updateCLISessi /** * Creates the `netlify graph:edit` command * @param {import('commander').OptionValues} options - * @param {import('../base-command').BaseCommand} program + * @param {import('../base-command').BaseCommand} command * @returns */ const graphEdit = async (options, command) => { @@ -46,7 +47,7 @@ const graphEdit = async (options, command) => { let oneGraphSessionId = loadCLISession(state) if (!oneGraphSessionId) { const sessionName = generateSessionName() - const oneGraphSession = await createCLISession(netlifyToken, site.id, sessionName) + const oneGraphSession = await createCLISession(netlifyToken, site.id, sessionName, null) state.set('oneGraphSessionId', oneGraphSession.id) oneGraphSessionId = state.get('oneGraphSessionId') } diff --git a/src/commands/graph/graph-handler.js b/src/commands/graph/graph-handler.js new file mode 100644 index 00000000000..dbf5d1564d9 --- /dev/null +++ b/src/commands/graph/graph-handler.js @@ -0,0 +1,53 @@ +// @ts-check +const { + buildSchema, + generateHandlerByOperationName, + getNetlifyGraphConfig, + readGraphQLSchemaFile, +} = require('../../lib/one-graph/cli-netlify-graph') +const { error } = require('../../utils') + +/** + * Creates the `netlify graph:handler` command + * @param {string} operationName + * @param {import('commander').OptionValues} options + * @param {import('../base-command').BaseCommand} command + * @returns + */ +const graphHandler = async (operationName, options, command) => { + const netlifyGraphConfig = await getNetlifyGraphConfig({ command, options }) + + const schemaString = readGraphQLSchemaFile(netlifyGraphConfig) + + let schema + + try { + schema = buildSchema(schemaString) + } catch (buildSchemaError) { + error(`Error parsing schema: ${buildSchemaError}`) + } + + if (!schema) { + error(`Failed to parse Netlify GraphQL schema`) + } + + generateHandlerByOperationName(netlifyGraphConfig, schema, operationName, {}) +} + +/** + * Creates the `netlify graph:handler` command + * @param {import('../base-command').BaseCommand} program + * @returns + */ +const createGraphHandlerCommand = (program) => + program + .command('graph:handler') + .argument('', 'Operation name') + .description( + 'Generate a handler for a Graph operation given its name. See `graph:operations` for a list of operations.', + ) + .action(async (operationName, options, command) => { + await graphHandler(operationName, options, command) + }) + +module.exports = { createGraphHandlerCommand } diff --git a/src/commands/graph/graph-library.js b/src/commands/graph/graph-library.js new file mode 100644 index 00000000000..e7383c9508d --- /dev/null +++ b/src/commands/graph/graph-library.js @@ -0,0 +1,61 @@ +// @ts-check +const { + buildSchema, + defaultExampleOperationsDoc, + extractFunctionsFromOperationDoc, + generateFunctionsFile, + getNetlifyGraphConfig, + parse, + readGraphQLOperationsSourceFile, + readGraphQLSchemaFile, +} = require('../../lib/one-graph/cli-netlify-graph') +const { error } = require('../../utils') + +/** + * Creates the `netlify graph:library` command + * @param {import('commander').OptionValues} options + * @param {import('../base-command').BaseCommand} command + * @returns + */ +const graphLibrary = async (options, command) => { + const netlifyGraphConfig = await getNetlifyGraphConfig({ command, options }) + + const schemaString = readGraphQLSchemaFile(netlifyGraphConfig) + + let schema + + try { + schema = buildSchema(schemaString) + } catch (buildSchemaError) { + error(`Error parsing schema: ${buildSchemaError}`) + } + + if (!schema) { + error(`Failed to parse Netlify GraphQL schema`) + } + + let currentOperationsDoc = readGraphQLOperationsSourceFile(netlifyGraphConfig) + if (currentOperationsDoc.trim().length === 0) { + currentOperationsDoc = defaultExampleOperationsDoc + } + + const parsedDoc = parse(currentOperationsDoc) + const { fragments, functions } = extractFunctionsFromOperationDoc(parsedDoc) + + generateFunctionsFile({ netlifyGraphConfig, schema, operationsDoc: currentOperationsDoc, functions, fragments }) +} + +/** + * Creates the `netlify graph:library` command + * @param {import('../base-command').BaseCommand} program + * @returns + */ +const createGraphLibraryCommand = (program) => + program + .command('graph:library') + .description('Generate the Graph function library') + .action(async (options, command) => { + await graphLibrary(options, command) + }) + +module.exports = { createGraphLibraryCommand } diff --git a/src/commands/graph/graph-operations.js b/src/commands/graph/graph-operations.js new file mode 100644 index 00000000000..b7e77346ee8 --- /dev/null +++ b/src/commands/graph/graph-operations.js @@ -0,0 +1,113 @@ +// @ts-check +const { GraphQL } = require('netlify-onegraph-internal') + +const { + defaultExampleOperationsDoc, + extractFunctionsFromOperationDoc, + getNetlifyGraphConfig, + readGraphQLOperationsSourceFile, +} = require('../../lib/one-graph/cli-netlify-graph') +const { log } = require('../../utils') + +const { parse } = GraphQL + +/** + * Creates the `netlify graph:operations` command + * @param {import('commander').OptionValues} options + * @param {import('../base-command').BaseCommand} command + * @returns + */ +const graphOperations = async (options, command) => { + const netlifyGraphConfig = await getNetlifyGraphConfig({ command, options }) + try { + let currentOperationsDoc = readGraphQLOperationsSourceFile(netlifyGraphConfig) + if (currentOperationsDoc.trim().length === 0) { + currentOperationsDoc = defaultExampleOperationsDoc + } + + const parsedDoc = parse(currentOperationsDoc) + const { fragments, functions } = extractFunctionsFromOperationDoc(parsedDoc) + + const sorted = { + queries: [], + mutations: [], + subscriptions: [], + fragments: [], + other: [], + } + + // Sort the operations by name and add them to the correct array under the operation type in sorted + Object.values(functions) + .sort((aItem, bItem) => aItem.operationName.localeCompare(bItem.operationName)) + .forEach((operation) => { + switch (operation.kind) { + case 'query': { + sorted.queries.push(operation) + + break + } + case 'mutation': { + sorted.mutations.push(operation) + + break + } + case 'subscription': { + sorted.subscriptions.push(operation) + + break + } + default: { + sorted.other.push(operation) + } + } + }) + + Object.values(fragments) + .sort((aItem, bItem) => aItem.fragmentName.localeCompare(bItem.fragmentName)) + .forEach((fragment) => { + sorted.fragments.push(fragment) + }) + + if (sorted.queries.length !== 0) { + log(`Queries:`) + sorted.queries.forEach((operation) => { + log(`\t${operation.operationName}`) + }) + } + if (sorted.mutations.length !== 0) { + log(`Mutations:`) + sorted.mutations.forEach((operation) => { + log(`\t${operation.operationName}`) + }) + } + if (sorted.subscriptions.length !== 0) { + log(`Subscriptions:`) + sorted.subscriptions.forEach((operation) => { + log(`\t${operation.operationName}`) + }) + } + if (sorted.fragments.length !== 0) { + log(`Fragments:`) + sorted.fragments.forEach((fragment) => { + log(`\t${fragment.fragmentName}`) + }) + } + } catch (error) { + error(`Error parsing operations library: ${error}`) + } +} + +/** + * Creates the `netlify graph:operations` command + * @param {import('../base-command').BaseCommand} program + * @returns + */ +const createGraphOperationCommand = (program) => + program + .command('graph:operations') + .description('List all of the locally available operations') + .action(async (options, command) => { + await graphOperations(options, command) + }) + +module.exports = { createGraphOperationCommand } diff --git a/src/commands/graph/graph-pull.js b/src/commands/graph/graph-pull.js index 6423b0af4f4..eb079458258 100644 --- a/src/commands/graph/graph-pull.js +++ b/src/commands/graph/graph-pull.js @@ -1,3 +1,4 @@ +// @ts-check /* eslint-disable eslint-comments/disable-enable-pair */ /* eslint-disable fp/no-loops */ const { @@ -12,7 +13,7 @@ const { chalk, error, warn } = require('../../utils') /** * Creates the `netlify graph:pull` command * @param {import('commander').OptionValues} options - * @param {import('../base-command').BaseCommand} program + * @param {import('../base-command').BaseCommand} command * @returns */ const graphPull = async (options, command) => { @@ -60,7 +61,7 @@ const graphPull = async (options, command) => { }) if (next.errors) { - error(`Failed to fetch Netlify Graph cli session events`, next.errors) + error(`Failed to fetch Netlify Graph cli session events: ${JSON.stringify(next.errors, null, 2)}`) } if (next.events) { diff --git a/src/commands/graph/graph.js b/src/commands/graph/graph.js index 9c928b7e770..4aa46672092 100644 --- a/src/commands/graph/graph.js +++ b/src/commands/graph/graph.js @@ -1,5 +1,8 @@ // @ts-check const { createGraphEditCommand } = require('./graph-edit') +const { createGraphHandlerCommand } = require('./graph-handler') +const { createGraphLibraryCommand } = require('./graph-library') +const { createGraphOperationCommand } = require('./graph-operations') const { createGraphPullCommand } = require('./graph-pull') /** @@ -18,6 +21,9 @@ const graph = (options, command) => { */ const createGraphCommand = (program) => { createGraphEditCommand(program) + createGraphHandlerCommand(program) + createGraphLibraryCommand(program) + createGraphOperationCommand(program) createGraphPullCommand(program) return program diff --git a/src/lib/one-graph/cli-client.js b/src/lib/one-graph/cli-client.js index feadd72081e..05e91852211 100644 --- a/src/lib/one-graph/cli-client.js +++ b/src/lib/one-graph/cli-client.js @@ -1,3 +1,4 @@ +// @ts-check /* eslint-disable eslint-comments/disable-enable-pair */ /* eslint-disable fp/no-loops */ const crypto = require('crypto') @@ -8,12 +9,13 @@ const gitRepoInfo = require('git-repo-info') const { GraphQL, InternalConsole, OneGraphClient } = require('netlify-onegraph-internal') const { NetlifyGraph } = require('netlify-onegraph-internal') -const { chalk, error, log, warn } = require('../../utils') +// eslint-disable-next-line no-unused-vars +const { StateConfig, chalk, error, log, warn } = require('../../utils') const { watchDebounced } = require('../functions/watcher') const { generateFunctionsFile, - generateHandler, + generateHandlerByOperationId, readGraphQLOperationsSourceFile, writeGraphQLOperationsSourceFile, writeGraphQLSchemaFile, @@ -30,9 +32,11 @@ const internalConsole = { debug: console.debug, } +/** + * Keep track of which document hashes we've received from the server so we can ignore events from the filesystem based on them + */ const witnessedIncomingDocumentHashes = [] -// Keep track of which document hashes we've received from the server so we can ignore events from the filesystem based on them InternalConsole.registerConsole(internalConsole) /** @@ -40,12 +44,12 @@ InternalConsole.registerConsole(internalConsole) * @param {object} input * @param {string} input.appId The app to query against, typically the siteId * @param {string} input.netlifyToken The (typically netlify) access token that is used for authentication, if any - * @param {NetlifyGraphConfig} input.netlifyGraphConfig A standalone config object that contains all the information necessary for Netlify Graph to process events + * @param {NetlifyGraph.NetlifyGraphConfig} input.netlifyGraphConfig A standalone config object that contains all the information necessary for Netlify Graph to process events * @param {function} input.onClose A function to call when the polling loop is closed * @param {function} input.onError A function to call when an error occurs * @param {function} input.onEvents A function to call when CLI events are received and need to be processed * @param {string} input.sessionId The session id to monitor CLI events for - * @param {state} input.state A function to call to set/get the current state of the local Netlify project + * @param {StateConfig} input.state A function to call to set/get the current state of the local Netlify project * @returns */ const monitorCLISessionEvents = (input) => { @@ -117,15 +121,16 @@ const monitorCLISessionEvents = (input) => { /** * Monitor the operations document for changes * @param {object} input - * @param {NetlifyGraphConfig} input.netlifyGraphConfig A standalone config object that contains all the information necessary for Netlify Graph to process events - * @param {function} input.onAdd A callback function to handle when the operations document is added - * @param {function} input.onChange A callback function to handle when the operations document is changed - * @param {function} input.onUnlink A callback function to handle when the operations document is unlinked - * @returns {Promise} + * @param {NetlifyGraph.NetlifyGraphConfig} input.netlifyGraphConfig A standalone config object that contains all the information necessary for Netlify Graph to process events + * @param {() => void} input.onAdd A callback function to handle when the operations document is added + * @param {() => void} input.onChange A callback function to handle when the operations document is changed + * @param {() => void=} input.onUnlink A callback function to handle when the operations document is unlinked + * @returns {Promise} */ const monitorOperationFile = async ({ netlifyGraphConfig, onAdd, onChange, onUnlink }) => { const filePath = path.resolve(...netlifyGraphConfig.graphQLOperationsSourceFilename) const newWatcher = await watchDebounced([filePath], { + depth: 1, onAdd, onChange, onUnlink, @@ -139,8 +144,8 @@ const monitorOperationFile = async ({ netlifyGraphConfig, onAdd, onChange, onUnl * @param {object} input * @param {string} input.siteId The id of the site to query against * @param {string} input.netlifyToken The (typically netlify) access token that is used for authentication, if any - * @param {NetlifyGraphConfig} input.netlifyGraphConfig A standalone config object that contains all the information necessary for Netlify Graph to process events - * @param {state} input.state A function to call to set/get the current state of the local Netlify project + * @param {NetlifyGraph.NetlifyGraphConfig} input.netlifyGraphConfig A standalone config object that contains all the information necessary for Netlify Graph to process events + * @param {StateConfig} input.state A function to call to set/get the current state of the local Netlify project * @returns {Promise} */ const refetchAndGenerateFromOneGraph = async (input) => { @@ -174,8 +179,8 @@ const refetchAndGenerateFromOneGraph = async (input) => { /** * Regenerate the function library based on the current operations document on disk * @param {object} input - * @param {string} input.schema The GraphQL schema to use when generating code - * @param {NetlifyGraphConfig} input.netlifyGraphConfig A standalone config object that contains all the information necessary for Netlify Graph to process events + * @param {GraphQL.GraphQLSchema} input.schema The GraphQL schema to use when generating code + * @param {NetlifyGraph.NetlifyGraphConfig} input.netlifyGraphConfig A standalone config object that contains all the information necessary for Netlify Graph to process events * @returns */ const regenerateFunctionsFileFromOperationsFile = (input) => { @@ -214,15 +219,15 @@ const quickHash = (input) => { * @param {string} input.siteId The site id to query against * @param {string} input.netlifyToken The (typically netlify) access token that is used for authentication, if any * @param {string} input.docId The GraphQL operations document id to fetch - * @param {string} input.schema The GraphQL schema to use when generating code - * @param {NetlifyGraphConfig} input.netlifyGraphConfig A standalone config object that contains all the information necessary for Netlify Graph to process events + * @param {GraphQL.GraphQLSchema} input.schema The GraphQL schema to use when generating code + * @param {NetlifyGraph.NetlifyGraphConfig} input.netlifyGraphConfig A standalone config object that contains all the information necessary for Netlify Graph to process events * @returns */ const updateGraphQLOperationsFileFromPersistedDoc = async (input) => { const { docId, netlifyGraphConfig, netlifyToken, schema, siteId } = input const persistedDoc = await OneGraphClient.fetchPersistedQuery(netlifyToken, siteId, docId) if (!persistedDoc) { - warn('No persisted doc found for:', docId) + warn(`No persisted doc found for: ${docId}`) return } @@ -249,7 +254,11 @@ const handleCliSessionEvent = async ({ event, netlifyGraphConfig, netlifyToken, await handleCliSessionEvent({ netlifyToken, event: payload, netlifyGraphConfig, schema, siteId }) break case 'OneGraphNetlifyCliSessionGenerateHandlerEvent': - await generateHandler(netlifyGraphConfig, schema, payload.operationId, payload) + if (!payload.operationId || !payload.operationId.id) { + warn(`No operation id found in payload, ${JSON.stringify(payload, null, 2)}`) + return + } + generateHandlerByOperationId(netlifyGraphConfig, schema, payload.operationId.id, payload) break case 'OneGraphNetlifyCliSessionPersistedLibraryUpdatedEvent': await updateGraphQLOperationsFileFromPersistedDoc({ @@ -261,7 +270,13 @@ const handleCliSessionEvent = async ({ event, netlifyGraphConfig, netlifyToken, }) break default: { - warn(`Unrecognized event received, you may need to upgrade your CLI version`, __typename, payload) + warn( + `Unrecognized event received, you may need to upgrade your CLI version: ${__typename}: ${JSON.stringify( + payload, + null, + 2, + )}`, + ) break } } @@ -281,13 +296,13 @@ const persistNewOperationsDocForSession = async ({ netlifyToken, oneGraphSession const result = await OneGraphClient.updateCLISessionMetadata(netlifyToken, siteId, oneGraphSessionId, newMetadata) if (result.errors) { - warn('Unable to update session metadata with updated operations doc', result.errors) + warn(`Unable to update session metadata with updated operations doc ${JSON.stringify(result.errors, null, 2)}`) } } /** * Load the CLI session id from the local state - * @param {state} state + * @param {StateConfig} state * @returns */ const loadCLISession = (state) => state.get('oneGraphSessionId') @@ -296,9 +311,9 @@ const loadCLISession = (state) => state.get('oneGraphSessionId') * Idemponentially save the CLI session id to the local state and start monitoring for CLI events, upstream schema changes, and local operation file changes * @param {object} input * @param {string} input.netlifyToken The (typically netlify) access token that is used for authentication, if any - * @param {NetlifyGraphConfig} input.netlifyGraphConfig A standalone config object that contains all the information necessary for Netlify Graph to process events - * @param {state} input.state A function to call to set/get the current state of the local Netlify project - * @param {site} input.site The site object + * @param {NetlifyGraph.NetlifyGraphConfig} input.netlifyGraphConfig A standalone config object that contains all the information necessary for Netlify Graph to process events + * @param {StateConfig} input.state A function to call to set/get the current state of the local Netlify project + * @param {any} input.site The site object */ const startOneGraphCLISession = async (input) => { const { netlifyGraphConfig, netlifyToken, site, state } = input @@ -387,6 +402,7 @@ const OneGraphCliClient = { module.exports = { OneGraphCliClient, + extractFunctionsFromOperationDoc, handleCliSessionEvent, generateSessionName, loadCLISession, diff --git a/src/lib/one-graph/cli-netlify-graph.js b/src/lib/one-graph/cli-netlify-graph.js index 960b566c956..862a5a7e780 100644 --- a/src/lib/one-graph/cli-netlify-graph.js +++ b/src/lib/one-graph/cli-netlify-graph.js @@ -1,3 +1,4 @@ +// @ts-check const fs = require('fs') const path = require('path') const process = require('process') @@ -17,6 +18,8 @@ const internalConsole = { InternalConsole.registerConsole(internalConsole) +const { extractFunctionsFromOperationDoc } = NetlifyGraph + /** * Remove any relative path components from the given path * @param {string[]} items Filesystem path items to filter @@ -27,10 +30,11 @@ const filterRelativePathItems = (items) => items.filter((part) => part !== '') /** * Return the default Netlify Graph configuration for a generic site * @param {object} context + * @param {object} context.baseConfig * @param {string[]} context.detectedFunctionsPath * @param {string[]} context.siteRoot */ -const makeDefaultNetlifGraphConfig = ({ baseConfig, detectedFunctionsPath }) => { +const makeDefaultNetlifyGraphConfig = ({ baseConfig, detectedFunctionsPath }) => { const functionsPath = filterRelativePathItems([...detectedFunctionsPath]) const webhookBasePath = '/.netlify/functions' const netlifyGraphPath = [...functionsPath, 'netlifyGraph'] @@ -57,10 +61,11 @@ const makeDefaultNetlifGraphConfig = ({ baseConfig, detectedFunctionsPath }) => /** * Return the default Netlify Graph configuration for a Nextjs site * @param {object} context + * @param {object} context.baseConfig * @param {string[]} context.detectedFunctionsPath * @param {string[]} context.siteRoot */ -const makeDefaultNextJsNetlifGraphConfig = ({ baseConfig, siteRoot }) => { +const makeDefaultNextJsNetlifyGraphConfig = ({ baseConfig, siteRoot }) => { const functionsPath = filterRelativePathItems([...siteRoot, 'pages', 'api']) const webhookBasePath = '/api' const netlifyGraphPath = filterRelativePathItems([...siteRoot, 'lib', 'netlifyGraph']) @@ -87,10 +92,11 @@ const makeDefaultNextJsNetlifGraphConfig = ({ baseConfig, siteRoot }) => { /** * Return the default Netlify Graph configuration for a Remix site * @param {object} context + * @param {object} context.baseConfig * @param {string[]} context.detectedFunctionsPath * @param {string[]} context.siteRoot */ -const makeDefaultRemixNetlifGraphConfig = ({ baseConfig, detectedFunctionsPath, siteRoot }) => { +const makeDefaultRemixNetlifyGraphConfig = ({ baseConfig, detectedFunctionsPath, siteRoot }) => { const functionsPath = filterRelativePathItems([...detectedFunctionsPath]) const webhookBasePath = '/webhooks' const netlifyGraphPath = filterRelativePathItems([ @@ -118,22 +124,25 @@ const makeDefaultRemixNetlifGraphConfig = ({ baseConfig, detectedFunctionsPath, } const defaultFrameworkLookup = { - 'Next.js': makeDefaultNextJsNetlifGraphConfig, - Remix: makeDefaultRemixNetlifGraphConfig, - default: makeDefaultNetlifGraphConfig, + 'Next.js': makeDefaultNextJsNetlifyGraphConfig, + Remix: makeDefaultRemixNetlifyGraphConfig, + default: makeDefaultNetlifyGraphConfig, } /** * Return a full NetlifyGraph config with any defaults overridden by netlify.toml - * @param {import('../base-command').BaseCommand} command - * @return {NetlifyGraphConfig} NetlifyGraphConfig + * @param {object} input + * @param {import('../../commands/base-command').BaseCommand} input.command + * @param {import('commander').OptionValues} input.options + * @param {Partial=} input.settings + * @return {Promise} NetlifyGraphConfig */ const getNetlifyGraphConfig = async ({ command, options, settings }) => { const { config, site } = command.netlify config.dev = { ...config.dev } config.build = { ...config.build } const userSpecifiedConfig = (config && config.graph) || {} - /** @type {import('./types').DevConfig} */ + /** @type {import('../../commands/dev/types').DevConfig} */ const devConfig = { framework: '#auto', ...(config.functionsDirectory && { functions: config.functionsDirectory }), @@ -148,7 +157,13 @@ const getNetlifyGraphConfig = async ({ command, options, settings }) => { settings = await detectServerSettings(devConfig, options, site.root) } catch (detectServerSettingsError) { settings = {} - warn('Error while auto-detecting project settings, Netlify Graph encounter problems', detectServerSettingsError) + warn( + `Error while auto-detecting project settings, Netlify Graph encounter problems: ${JSON.stringify( + detectServerSettingsError, + null, + 2, + )}`, + ) } } @@ -167,9 +182,11 @@ const getNetlifyGraphConfig = async ({ command, options, settings }) => { const baseConfig = { ...NetlifyGraph.defaultNetlifyGraphConfig, ...userSpecifiedConfig } const defaultFrameworkConfig = makeDefaultFrameworkConfig({ baseConfig, detectedFunctionsPath, siteRoot }) + const userSpecifiedFunctionPath = + userSpecifiedConfig.functionsPath && userSpecifiedConfig.functionsPath.split(path.sep) + const functionsPath = - (userSpecifiedConfig.functionsPath && userSpecifiedConfig.functionsPath.split(path.sep)) || - defaultFrameworkConfig.functionsPath + (userSpecifiedFunctionPath && [...siteRoot, ...userSpecifiedFunctionPath]) || defaultFrameworkConfig.functionsPath const netlifyGraphPath = (userSpecifiedConfig.netlifyGraphPath && userSpecifiedConfig.netlifyGraphPath.split(path.sep)) || defaultFrameworkConfig.netlifyGraphPath @@ -225,7 +242,7 @@ const getNetlifyGraphConfig = async ({ command, options, settings }) => { /** * Given a NetlifyGraphConfig, ensure that the netlifyGraphPath exists - * @param {NetlifyGraphConfig} netlifyGraphConfig + * @param {NetlifyGraph.NetlifyGraphConfig} netlifyGraphConfig */ const ensureNetlifyGraphPath = (netlifyGraphConfig) => { const fullPath = path.resolve(...netlifyGraphConfig.netlifyGraphPath) @@ -234,7 +251,7 @@ const ensureNetlifyGraphPath = (netlifyGraphConfig) => { /** * Given a NetlifyGraphConfig, ensure that the functionsPath exists - * @param {NetlifyGraphConfig} netlifyGraphConfig + * @param {NetlifyGraph.NetlifyGraphConfig} netlifyGraphConfig */ const ensureFunctionsPath = (netlifyGraphConfig) => { const fullPath = path.resolve(...netlifyGraphConfig.functionsPath) @@ -248,9 +265,8 @@ const runPrettier = async (filePath) => { return } - const command = `prettier --write ${filePath}` try { - const commandProcess = execa.command(command, { + const commandProcess = execa('prettier', ['--write', filePath], { preferLocal: true, // windowsHide needs to be false for child process to terminate properly on Windows windowsHide: false, @@ -269,11 +285,11 @@ const runPrettier = async (filePath) => { /** * Generate a library file with type definitions for a given NetlifyGraphConfig, operationsDoc, and schema, writing them to the filesystem * @param {object} context - * @param {NetlifyGraphConfig} context.netlifyGraphConfig - * @param {GraphQLSchema} context.schema The schema to use when generating the functions and their types + * @param {NetlifyGraph.NetlifyGraphConfig} context.netlifyGraphConfig + * @param {GraphQL.GraphQLSchema} context.schema The schema to use when generating the functions and their types * @param {string} context.operationsDoc The GraphQL operations doc to use when generating the functions - * @param {NetlifyGraph.ParsedFunction} context.functions The parsed queries with metadata to use when generating library functions - * @param {NetlifyGraph.ParsedFragment} context.fragments The parsed queries with metadata to use when generating library functions + * @param {Record} context.functions The parsed queries with metadata to use when generating library functions + * @param {Record} context.fragments The parsed queries with metadata to use when generating library functions * @returns {void} Void, effectfully writes the generated library to the filesystem */ const generateFunctionsFile = ({ fragments, functions, netlifyGraphConfig, operationsDoc, schema }) => { @@ -298,7 +314,7 @@ const generateFunctionsFile = ({ fragments, functions, netlifyGraphConfig, opera /** * Using the given NetlifyGraphConfig, read the GraphQL operations file and return the _unparsed_ GraphQL operations doc - * @param {NetlifyGraphConfig} netlifyGraphConfig + * @param {NetlifyGraph.NetlifyGraphConfig} netlifyGraphConfig * @returns {string} GraphQL operations doc */ const readGraphQLOperationsSourceFile = (netlifyGraphConfig) => { @@ -317,11 +333,11 @@ const readGraphQLOperationsSourceFile = (netlifyGraphConfig) => { /** * Write an operations doc to the filesystem using the given NetlifyGraphConfig - * @param {NetlifyGraphConfig} netlifyGraphConfig - * @param {string} operationsDoc The GraphQL operations doc to write + * @param {NetlifyGraph.NetlifyGraphConfig} netlifyGraphConfig + * @param {string} operationsDocString The GraphQL operations doc to write */ -const writeGraphQLOperationsSourceFile = (netlifyGraphConfig, operationDocString) => { - const graphqlSource = operationDocString +const writeGraphQLOperationsSourceFile = (netlifyGraphConfig, operationsDocString) => { + const graphqlSource = operationsDocString ensureNetlifyGraphPath(netlifyGraphConfig) fs.writeFileSync(path.resolve(...netlifyGraphConfig.graphQLOperationsSourceFilename), graphqlSource, 'utf8') @@ -329,8 +345,8 @@ const writeGraphQLOperationsSourceFile = (netlifyGraphConfig, operationDocString /** * Write a GraphQL Schema printed in SDL format to the filesystem using the given NetlifyGraphConfig - * @param {NetlifyGraphConfig} netlifyGraphConfig - * @param {GraphQLSchema} schema The GraphQL schema to print and write to the filesystem + * @param {NetlifyGraph.NetlifyGraphConfig} netlifyGraphConfig + * @param {GraphQL.GraphQLSchema} schema The GraphQL schema to print and write to the filesystem */ const writeGraphQLSchemaFile = (netlifyGraphConfig, schema) => { const graphqlSource = printSchema(schema) @@ -341,7 +357,7 @@ const writeGraphQLSchemaFile = (netlifyGraphConfig, schema) => { /** * Using the given NetlifyGraphConfig, read the GraphQL schema file and return it _unparsed_ - * @param {NetlifyGraphConfig} netlifyGraphConfig + * @param {NetlifyGraph.NetlifyGraphConfig} netlifyGraphConfig * @returns {string} GraphQL schema */ const readGraphQLSchemaFile = (netlifyGraphConfig) => { @@ -351,13 +367,13 @@ const readGraphQLSchemaFile = (netlifyGraphConfig) => { /** * Given a NetlifyGraphConfig, read the appropriate files and write a handler for the given operationId to the filesystem - * @param {NetlifyGraphConfig} netlifyGraphConfig - * @param {GraphQLSchema} schema The GraphQL schema to use when generating the handler + * @param {NetlifyGraph.NetlifyGraphConfig} netlifyGraphConfig + * @param {GraphQL.GraphQLSchema} schema The GraphQL schema to use when generating the handler * @param {string} operationId The operationId to use when generating the handler * @param {object} handlerOptions The options to use when generating the handler * @returns */ -const generateHandler = (netlifyGraphConfig, schema, operationId, handlerOptions) => { +const generateHandlerByOperationId = (netlifyGraphConfig, schema, operationId, handlerOptions) => { let currentOperationsDoc = readGraphQLOperationsSourceFile(netlifyGraphConfig) if (currentOperationsDoc.trim().length === 0) { currentOperationsDoc = NetlifyGraph.defaultExampleOperationsDoc @@ -415,6 +431,35 @@ const generateHandler = (netlifyGraphConfig, schema, operationId, handlerOptions }) } +/** + * Given a NetlifyGraphConfig, read the appropriate files and write a handler for the given operationId to the filesystem + * @param {NetlifyGraph.NetlifyGraphConfig} netlifyGraphConfig + * @param {GraphQL.GraphQLSchema} schema The GraphQL schema to use when generating the handler + * @param {string} operationName The name of the operation to use when generating the handler + * @param {object} handlerOptions The options to use when generating the handler + * @returns + */ +const generateHandlerByOperationName = (netlifyGraphConfig, schema, operationName, handlerOptions) => { + let currentOperationsDoc = readGraphQLOperationsSourceFile(netlifyGraphConfig) + if (currentOperationsDoc.trim().length === 0) { + currentOperationsDoc = NetlifyGraph.defaultExampleOperationsDoc + } + + const parsedDoc = parse(currentOperationsDoc) + const { functions } = extractFunctionsFromOperationDoc(parsedDoc) + + const operation = Object.values(functions).find( + (potentialOperation) => potentialOperation.operationName === operationName, + ) + + if (!operation) { + warn(`No operation named ${operationName} was found in the operations doc`) + return + } + + generateHandlerByOperationId(netlifyGraphConfig, schema, operation.id, handlerOptions) +} + // Export the minimal set of functions that are required for Netlify Graph const { buildSchema, parse } = GraphQL @@ -455,13 +500,15 @@ module.exports = { generateFunctionsSource: NetlifyGraph.generateFunctionsSource, generateFunctionsFile, generateHandlerSource: NetlifyGraph.generateHandlerSource, - generateHandler, + generateHandlerByOperationId, + generateHandlerByOperationName, getGraphEditUrlBySiteId, getGraphEditUrlBySiteName, getNetlifyGraphConfig, parse, readGraphQLOperationsSourceFile, readGraphQLSchemaFile, + runPrettier, writeGraphQLOperationsSourceFile, writeGraphQLSchemaFile, } diff --git a/src/utils/command-helpers.js b/src/utils/command-helpers.js index 0afcb7b8b87..dc41c30ece5 100644 --- a/src/utils/command-helpers.js +++ b/src/utils/command-helpers.js @@ -47,8 +47,6 @@ const USER_AGENT = `${name}/${version} ${platform}-${arch} node-${process.versio /** A list of base command flags that needs to be sorted down on documentation and on help pages */ const BASE_FLAGS = new Set(['--debug', '--httpProxy', '--httpProxyCertificateFilename']) -const { NETLIFY_AUTH_TOKEN } = process.env - // eslint-disable-next-line no-magic-numbers const NETLIFY_CYAN = chalk.rgb(40, 180, 170) @@ -121,6 +119,7 @@ const getToken = async (tokenFromOptions) => { return [tokenFromOptions, 'flag'] } // 2. then Check ENV var + const { NETLIFY_AUTH_TOKEN } = process.env if (NETLIFY_AUTH_TOKEN && NETLIFY_AUTH_TOKEN !== 'null') { return [NETLIFY_AUTH_TOKEN, 'env'] } diff --git a/tests/integration/530.graph-codegen.test.js b/tests/integration/530.graph-codegen.test.js index 7a777bca43d..2a9a9a3224b 100644 --- a/tests/integration/530.graph-codegen.test.js +++ b/tests/integration/530.graph-codegen.test.js @@ -1,8 +1,14 @@ +/* eslint-disable eslint-comments/disable-enable-pair */ +/* eslint-disable no-unused-vars */ +// @ts-check const fs = require('fs') -const { join } = require('path') +const path = require('path') +const process = require('process') const test = require('ava') +const { GraphQL, NetlifyGraph } = require('netlify-onegraph-internal') +const { runPrettier } = require('../../src/lib/one-graph/cli-netlify-graph') const { buildSchema, extractFunctionsFromOperationDoc, @@ -13,47 +19,72 @@ const { const { normalize } = require('./utils/snapshots') -const netlifyGraphConfig = { +/** + * Given a path, ensure that the path exists + * @param {string[]} filePath + */ +const ensurePath = (filePath) => { + const fullPath = path.resolve(...filePath) + fs.mkdirSync(fullPath, { recursive: true }) +} + +/** + * @constant + * @type {NetlifyGraph.NetlifyGraphConfig} + */ +const baseNetlifyGraphConfig = { extension: 'js', - netlifyGraphPath: 'netlify', - moduleType: 'commonjs', + netlifyGraphPath: ['netlify'], + moduleType: 'esm', functionsPath: ['functions'], - netlifyGraphImplementationFilename: 'dummy/index.js', - netlifyGraphTypeDefinitionsFilename: 'dummy/index.d.ts', - graphQLOperationsSourceFilename: 'dummy/netlifyGraphOperationsLibrary.graphql', - graphQLSchemaFilename: 'dummy/netlifyGraphSchema.graphql', + netlifyGraphImplementationFilename: ['dummy', 'index.js'], + netlifyGraphTypeDefinitionsFilename: ['dummy', 'index.d.ts'], + graphQLOperationsSourceFilename: ['dummy', 'netlifyGraphOperationsLibrary.graphql'], + graphQLSchemaFilename: ['dummy', 'netlifyGraphSchema.graphql'], + webhookBasePath: '/webhooks', + netlifyGraphRequirePath: ['.', 'netlifyGraph'], + framework: '#custom', + language: 'javascript', + runtimeTargetEnv: 'node', } -const loadAsset = (filename) => fs.readFileSync(join(__dirname, 'assets', filename), 'utf8') - -test('netlify graph function codegen', (t) => { - const schemaString = loadAsset('../assets/netlifyGraphSchema.graphql') - const schema = buildSchema(schemaString) +/** + * @constant + * @type {("esm" | "commonjs")[]} + */ +const moduleTypes = [ + 'esm', + /** + * Restore this when we have a way to generate commonjs modules with typescript enabled + */ + // 'commonjs' +] - const appOperationsDoc = loadAsset('../assets/netlifyGraphOperationsLibrary.graphql') - const parsedDoc = parse(appOperationsDoc, { - noLocation: true, - }) - - const { fragments, functions } = extractFunctionsFromOperationDoc(parsedDoc) - const generatedFunctions = generateFunctionsSource(netlifyGraphConfig, schema, appOperationsDoc, functions, fragments) +const loadAsset = (filename) => fs.readFileSync(path.join(__dirname, 'assets', filename), 'utf8') +const schemaString = loadAsset('../assets/netlifyGraphSchema.graphql') +const commonSchema = buildSchema(schemaString) - t.snapshot(normalize(JSON.stringify(generatedFunctions))) +const appOperationsDoc = loadAsset('../assets/netlifyGraphOperationsLibrary.graphql') +const parsedDoc = parse(appOperationsDoc, { + noLocation: true, }) -test('netlify graph handler codegen', (t) => { - const schemaString = loadAsset('../assets/netlifyGraphSchema.graphql') - const schema = buildSchema(schemaString) - - const appOperationsDoc = loadAsset('../assets/netlifyGraphOperationsLibrary.graphql') - - // From the asset GraphQL file - const operationId = 'd86699fb-ddfc-4833-9d9a-f3497cb7c992' - const handlerOptions = {} +/** + * + * @param {object} input + * @param {Record} input.handlerOptions + * @param {string} input.operationId + * @param {string} input.operationsDoc + * @param {NetlifyGraph.NetlifyGraphConfig} input.netlifyGraphConfig + * @param {GraphQL.GraphQLSchema} input.schema + * @param {string[]} input.outDir + * @returns + */ +const generateHandlerText = ({ handlerOptions, netlifyGraphConfig, operationId, operationsDoc, outDir, schema }) => { const result = generateHandlerSource({ netlifyGraphConfig, schema, - operationsDoc: appOperationsDoc, + operationsDoc, operationId, handlerOptions, }) @@ -74,28 +105,190 @@ test('netlify graph handler codegen', (t) => { const { content } = exportedFile const isNamed = exportedFile.kind === 'NamedExportedFile' - let filenameArr + let baseFilenameArr if (isNamed) { - filenameArr = [...exportedFile.name] + baseFilenameArr = [...exportedFile.name] } else { const operationName = (operation.name && operation.name.value) || 'Unnamed' const fileExtension = netlifyGraphConfig.language === 'typescript' ? 'ts' : netlifyGraphConfig.extension const defaultBaseFilename = `${operationName}.${fileExtension}` const baseFilename = defaultBaseFilename - filenameArr = [...netlifyGraphConfig.functionsPath, baseFilename] + baseFilenameArr = [baseFilename] } - const dummyPath = filenameArr.join('|') + const filenameArr = [...outDir, ...baseFilenameArr] + + const filePath = path.resolve(...filenameArr) + const parentDir = filenameArr.slice(0, -1) + + ensurePath(parentDir) + fs.writeFileSync(filePath, content, 'utf8') + // Run prettier to help normalize the output + runPrettier(filePath) - sources.push([dummyPath, content]) + const prettierContent = fs.readFileSync(filePath, 'utf-8') + + sources.push([filePath, baseFilenameArr, prettierContent]) }) + if (sources.length === 0) { + console.warn(`No exported files found for operation ${operationId}`) + } + const textualSource = sources .sort(([filenameA], [filenameB]) => filenameA[0].localeCompare(filenameB[0])) - .map(([filename, content]) => `${filename}: ${content}`) + .map(([_, baseFilenameArr, content]) => { + // Strip the outDir from the filename so the output is the same regardless of where the tests are run + const filename = baseFilenameArr.join('|') + return `${filename}: ${content}` + }) .join('/-----------------/') - t.snapshot(normalize(JSON.stringify(textualSource))) + return textualSource +} + +const testGenerateFunctionLibraryAndRuntime = ({ frameworkName, language, name, runtimeTargetEnv }) => { + moduleTypes.forEach((moduleType) => { + // @ts-ignore + test(`netlify graph function library (+runtime) codegen [${frameworkName}-${name}-${language}-${moduleType}]`, (t) => { + const outDirPath = path.join(process.cwd(), '_test_out') + const outDir = [path.sep, ...outDirPath.split(path.sep), `netlify-graph-test-${frameworkName}-${moduleType}`] + + /** + * @constant + * @type {NetlifyGraph.NetlifyGraphConfig} + */ + const netlifyGraphConfig = { ...baseNetlifyGraphConfig, runtimeTargetEnv, moduleType } + + const { fragments, functions } = extractFunctionsFromOperationDoc(parsedDoc) + const generatedFunctions = generateFunctionsSource( + netlifyGraphConfig, + commonSchema, + appOperationsDoc, + functions, + fragments, + ) + const clientDefinitionsFilenameArr = [...outDir, 'netlifyGraph', 'index.js'] + const typescriptFilenameArr = [...outDir, 'netlifyGraph', 'index.d.ts'] + + const writeFile = (filenameArr, content) => { + const filePath = path.resolve(...filenameArr) + const parentDir = filenameArr.slice(0, -1) + + ensurePath(parentDir) + fs.writeFileSync(filePath, content, 'utf8') + // Run prettier to help normalize the output (and also make sure we're generating parsable code) + runPrettier(filePath) + } + + writeFile(typescriptFilenameArr, generatedFunctions.typeDefinitionsSource) + writeFile(clientDefinitionsFilenameArr, generatedFunctions.clientSource) + + const prettierGeneratedFunctions = { + functionDefinitions: generatedFunctions.functionDefinitions, + typeDefinitionsSource: fs.readFileSync(path.resolve(...typescriptFilenameArr), 'utf-8'), + clientSource: fs.readFileSync(path.resolve(...clientDefinitionsFilenameArr), 'utf-8'), + } + + t.snapshot(normalize(JSON.stringify(prettierGeneratedFunctions))) + }) + }) +} + +const testGenerateHandlerSource = ({ frameworkName, language, name, operationId }) => { + moduleTypes.forEach((moduleType) => { + // @ts-ignore + test(`netlify graph handler codegen [${frameworkName}-${name}-${language}-${moduleType}]`, (t) => { + const outDirPath = path.join(process.cwd(), '_test_out') + const outDir = [path.sep, ...outDirPath.split(path.sep), `netlify-graph-test-${frameworkName}-${moduleType}`] + + /** + * @constant + * @type {NetlifyGraph.NetlifyGraphConfig} + */ + const netlifyGraphConfig = { ...baseNetlifyGraphConfig, framework: frameworkName, language, moduleType } + + /** + * @constant + * @type Record + */ + const handlerOptions = {} + const textualSource = generateHandlerText({ + handlerOptions, + netlifyGraphConfig, + operationId, + operationsDoc: appOperationsDoc, + schema: commonSchema, + outDir, + }) + + t.snapshot(normalize(JSON.stringify(textualSource))) + }) + }) +} + +const frameworks = ['#custom', 'Next.js', 'Remix', 'unknown'] + +const queryWithFragmentOperationId = 'e2394c86-260c-4646-88df-7bc7370de666' +frameworks.forEach((frameworkName) => { + testGenerateFunctionLibraryAndRuntime({ + frameworkName, + language: 'javascript', + name: 'node', + runtimeTargetEnv: 'node', + }) + testGenerateFunctionLibraryAndRuntime({ + frameworkName, + language: 'javascript', + name: 'browser', + runtimeTargetEnv: 'browser', + }) + testGenerateHandlerSource({ + frameworkName, + operationId: queryWithFragmentOperationId, + name: 'queryWithFragment', + language: 'javascript', + }) +}) + +frameworks.forEach((frameworkName) => { + testGenerateFunctionLibraryAndRuntime({ + frameworkName, + language: 'typescript', + name: 'node', + runtimeTargetEnv: 'node', + }) + testGenerateFunctionLibraryAndRuntime({ + frameworkName, + language: 'typescript', + name: 'browser', + runtimeTargetEnv: 'browser', + }) + testGenerateHandlerSource({ + frameworkName, + operationId: queryWithFragmentOperationId, + name: 'queryWithFragment', + language: 'typescript', + }) +}) + +const subscriptionWithFragmentOperationId = 'e3d4bb8b-2fb5-9898-b051-db6027224112' +frameworks.forEach((frameworkName) => { + testGenerateHandlerSource({ + frameworkName, + operationId: subscriptionWithFragmentOperationId, + name: 'subscriptionWithFragment', + language: 'javascript', + }) +}) + +frameworks.forEach((frameworkName) => { + testGenerateHandlerSource({ + frameworkName, + operationId: subscriptionWithFragmentOperationId, + name: 'subscriptionWithFragment', + language: 'typescript', + }) }) diff --git a/tests/integration/assets/netlifyGraphOperationsLibrary.graphql b/tests/integration/assets/netlifyGraphOperationsLibrary.graphql index d0546046c16..7f2f87efef0 100644 --- a/tests/integration/assets/netlifyGraphOperationsLibrary.graphql +++ b/tests/integration/assets/netlifyGraphOperationsLibrary.graphql @@ -1,10 +1,391 @@ -query ExampleQuery($package: String!) @netlify(id: "d86699fb-ddfc-4833-9d9a-f3497cb7c992", doc: "A test query to snapshot") { - npm { - package(name: $package) { +fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: """12b5bdea-9bab-4124-a731-5e697b1553be""", doc: """Subset of LoggedInServices""") { + friendlyServiceName + service + isLoggedIn + usedTestFlow + serviceInfo { + logoUrl + availableScopes { + category + scope + display + isDefault + isRequired + description + title + } + } + grantedScopes { + scope + } + foreignUserId +} + +fragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: """12b5bdea-9bab-4164-a731-5e697b1553be""", doc: """Basic info on a Service Auth""") { + id + service + clientId + revealTokens + scopes +} + +fragment AppCORSOriginFragment on OneGraphApp @netlify(id: """e3d4bb8b-2fb5-48d8-b051-db6027224145""", doc: """Allowed CORS origins for calls to a site's Graph.""") { + id + corsOrigins + customCorsOrigins { + friendlyServiceName + displayName + encodedValue + } + netlifySiteNames +} + +mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: """16a58acb-8188-4a47-bc93-1f4a5ef805c0""", doc: """Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) { + session { + id + name + metadata + createdAt + lastEventAt + } + } + } +} + +query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: """30aeff10-e743-473e-bae0-438a48074edc""", doc: """ +Get the _metadata_ about a site's current GraphQL schema: + +- enabled services +- schema id +- creation date + +etc. +""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + app(id: $appId) { + graphQLSchema { + appId + createdAt + id + services { + friendlyServiceName + logoUrl + service + slug + supportsCustomRedirectUri + supportsCustomServiceAuth + supportsOauthLogin + } + updatedAt + } + } + } +} + +mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: """3d069fc8-3a03-40c8-8637-ddcf33692c34""", doc: """Delete a OneGraph personal token for a user's site""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + destroyToken(token: $token, authlifyTokenId: $authlifyTokenId) + } +} + +mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: """3d069fc8-3a03-40c8-8637-ddcf33692c99""", doc: """Sign out of a service associated with a Authlify token""") { + signoutServices( + data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId} + ) { + me { + serviceMetadata { + loggedInServices { + ...LoggedInServicesFragment + } + } + } + } +} + +mutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: """47c6abec-7e34-4ec1-ae7d-b3303828b0ce""", doc: """Update a service's (i.e. GitHub) enabled scope permissions""") { + oneGraph { + addAuthsToPersonalToken( + input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId} + ) { + accessToken { + netlifyId + token + } + } + } +} + +mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: """4fc2298a-225b-4329-b3f3-a8f8bc0513a8""", doc: """Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn't set it as the default for all queries to use.""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + createGraphQLSchema(input: $input) { + app { + graphQLSchema { + id + } + } + graphqlSchema { + id + services { + friendlyServiceName + logoUrl + service + slug + supportsCustomRedirectUri + supportsCustomServiceAuth + supportsOauthLogin + } + } + } + } +} + +mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: """5c7bb879-a810-4a7e-8aec-55d05fd9c172""", doc: """Delete a custom service auth""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) { + app { + serviceAuths { + ...ServiceAuthFragment + } + } + } + } +} + +mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: """5e855574-a316-4060-955c-85b1f8898c29""", doc: """Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + createPersistedQuery( + input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent} + ) { + persistedQuery { + id + } + } + } +} + +query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: """68c383e7-2e2f-4e6c-9a72-a5d095498ba3""", doc: """Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user's site""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + authlifyToken(authlifyTokenId: $authlifyTokenId) { + serviceMetadata { + loggedInServices { + usedTestFlow + friendlyServiceName + ...LoggedInServicesFragment + } + } + } + } +} + +mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: """694dfc01-3844-431d-9e56-7089c101fe08""", doc: """Create a custom service auth""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + createServiceAuth( + data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true} + ) { + app { + serviceAuths { + ...ServiceAuthFragment + } + } + } + } +} + +mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: """6f42e462-7cbf-4d95-880b-16eb55ed7a1a""", doc: """Create a new session for the Netlify CLI to communicate with the React UI via events.""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + createNetlifyCliTestEvent( + input: {data: {payload: $payload}, sessionId: $sessionId} + ) { + event { + id + createdAt + sessionId + } + } + } +} + +query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: """6f9a0536-25f7-4b8f-ad1f-5a39edd923bb""", doc: """Get a Netlify CLI session by its id""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + netlifyCliSession(id: $id) { id - readme - license { - url + name + netlifyUserId + events { + createdAt + } + createdAt + lastEventAt + metadata + } + } +} + +query Deprecated_FindLoggedInServicesQuery @netlify(id: """9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd""", doc: """(Deprecated) Find logged in services""") { + me { + serviceMetadata { + loggedInServices { + ...LoggedInServicesFragment + } + } + } +} + +mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: """a64681f1-014c-4413-8a7d-b188c4dd5f55""", doc: """Create a new OneGraph personal token for a user's site""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + createPersonalTokenWithNetlifySiteAnchor( + input: {name: "Netlify AuthManager Token", netlifySiteId: $siteId} + ) { + accessToken { + token + name + anchor + netlifyId + } + } + } +} + +query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: """a6969eb4-5e17-43fb-a325-11566f7d1db3""", doc: """Retrieve a list of _all_ supported services from OneGraph""") { + oneGraph { + services { + friendlyServiceName + logoUrl(style: $logoStyle) + service + slug + supportsCustomRedirectUri + supportsCustomServiceAuth + supportsOauthLogin + } + } +} + +query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: """da5acd46-f2f1-4f24-aff9-1fe36d9c999b""", doc: null) { + oneGraph { + personalToken(accessToken: $personalToken) { + netlifyId + } + } +} + +query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: """dfbf037c-a603-46a9-8ca2-ac0069c05db2""", doc: """Retrieve a previously persisted operations doc""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + persistedQuery(appId: $appId, id: $id) { + id + query + allowedOperationNames + description + freeVariables + fixedVariables + tags + } + } +} + +query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: """e09d703b-468c-4c94-b098-f1ba09fdf692""", doc: """List all the CLI sessions belonging to a site""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + netlifyCliSessionsByAppId(appId: $appId, first: 10) { + id + name + netlifyUserId + events { + createdAt + } + createdAt + lastEventAt + metadata + } + } +} + +query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: """e2394c86-260c-4646-88df-7bc7370de666""", doc: """Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + services(filter: {supportsOauthLogin: true}) { + friendlyServiceName + service + slug + logoUrl(style: $logoStyle) + availableScopes { + category + scope + display + isDefault + isRequired + description + title + } + } + app(id: $siteId) { + serviceAuths { + ...ServiceAuthFragment + } + } + } +} + +mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: """e3d3bb8b-2fb5-48d8-b051-db602722419f""", doc: """Ensure that an app resource exists on the OneGraph servers for a given site.""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) { + org { + id + name + } + app { + id + name + corsOrigins + customCorsOrigins { + friendlyServiceName + displayName + encodedValue + } + } + } + } +} + +mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: """e3d4bb8b-2fb5-48d8-b051-db6027224101""", doc: """Add additional allowed CORS origins for calls to a site's Graph.""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + addCORSOriginToApp(input: $input) { + app { + ...AppCORSOriginFragment + } + } + } +} + +mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: """e3d4bb8b-2fb5-48d8-b051-db6027224112""", doc: """Remove the given CORS origins for calls to a site's Graph.""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + removeCORSOriginFromApp(input: $input) { + app { + ...AppCORSOriginFragment + } + } + } +} + +query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: """e3d4bb8b-2fb5-48d8-b051-db6027224190""", doc: """List the allowed CORS origins for calls to a site's Graph.""") { + oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) { + app(id: $siteId) { + ...AppCORSOriginFragment + } + } +} + +subscription TestSubscription($minutes: Int = 1) @netlify(id: """e3d4bb8b-2fb5-9898-b051-db6027224112""", doc: """A subscription with variables and a fragment to test code generation.""") { + poll( + schedule: {every: {minutes: $minutes}} + onlyTriggerWhenPayloadChanged: true + ) { + query { + me { + serviceMetadata { + loggedInServices { + ...LoggedInServicesFragment + } + } } } } diff --git a/tests/integration/assets/netlifyGraphSchema.graphql b/tests/integration/assets/netlifyGraphSchema.graphql index 7e4126c008e..45e7236d89b 100644 --- a/tests/integration/assets/netlifyGraphSchema.graphql +++ b/tests/integration/assets/netlifyGraphSchema.graphql @@ -1,27 +1,3 @@ -input OneGraphSubscriptionPollScheduleRepeatInput { - """How many minutes to wait before re-running the underlying query""" - minutes: Int! -} - -input OneGraphSubscriptionPollScheduleInput { - """""" - every: OneGraphSubscriptionPollScheduleRepeatInput! -} - -type OneGraphSubscriptionPollingQueryDiffPrevious { - payload: JSON - createdAt: String -} - -type OneGraphSubscriptionPollingQueryDiff { - previous: OneGraphSubscriptionPollingQueryDiffPrevious -} - -type PollingQuery { - query: Query! - diff: OneGraphSubscriptionPollingQueryDiff! -} - """ Whether to include information about the API requests that OneGraph made to fulfill the query in the `extensions` field. """ @@ -36,7 +12,26 @@ enum OneGraphSubscriptionShowMetricsEnum { FULL_REQUESTS } -"\nOptional authentication for making requests to the Gmail API if you want\nto use a custom gmail app instead of OneGraph's built-in app.\n\nSubscriptions are long-lived, so a refresh token must also be provided.\n\nIf you use this arg, make sure you've updated OneGraph to use your OAuth credentials in the dashboard.\n" +input OneGraphSubscriptionPollScheduleRepeatInput { + """How many minutes to wait before re-running the underlying query""" + minutes: Int! +} + +input OneGraphSubscriptionPollScheduleInput { + """""" + every: OneGraphSubscriptionPollScheduleRepeatInput! +} + +""" + +Optional authentication for making requests to the Gmail API if you want +to use a custom gmail app instead of OneGraph's built-in app. + +Subscriptions are long-lived, so a refresh token must also be provided. + +If you use this arg, make sure you've updated OneGraph to use your OAuth credentials in the dashboard. + +""" input OneGraphSubscriptionGmailAuthArg { refreshToken: String! accessToken: String! @@ -46,55 +41,34 @@ input OneGraphSubscriptionGmailAuthArg { input OneGraphSubscriptionAuthArg { twilio: OneGraphTwilioAuth - "\nOptional authentication for making requests to the Gmail API if you want\nto use a custom gmail app instead of OneGraph's built-in app.\n\nSubscriptions are long-lived, so a refresh token must also be provided.\n\nIf you use this arg, make sure you've updated OneGraph to use your OAuth credentials in the dashboard.\n" - gmail: OneGraphSubscriptionGmailAuthArg -} - -input NpmPackagePublishedArg { """ - The names of packages to be notified about when published, e.g. ["graphql", "express", "fela"] + + Optional authentication for making requests to the Gmail API if you want + to use a custom gmail app instead of OneGraph's built-in app. + + Subscriptions are long-lived, so a refresh token must also be provided. + + If you use this arg, make sure you've updated OneGraph to use your OAuth credentials in the dashboard. + """ - names: [String!]! + gmail: OneGraphSubscriptionGmailAuthArg } -type NpmNewPackagePublishedSubscriptionPayload { - """Package being published""" - package: NpmPackage! +type OneGraphSubscriptionPollingQueryDiffPrevious { + payload: JSON + createdAt: String } -"""Namespace for npm subscriptions.""" -type NpmSubscriptionRoot { - """Get notified when *any* package is published or updated on npm""" - allPublishActivity: NpmNewPackagePublishedSubscriptionPayload +type OneGraphSubscriptionPollingQueryDiff { + previous: OneGraphSubscriptionPollingQueryDiffPrevious +} - """Get notified when a package is published or updated on npm""" - packagePublished(input: NpmPackagePublishedArg!): NpmNewPackagePublishedSubscriptionPayload +type PollingQuery { + query: Query! + diff: OneGraphSubscriptionPollingQueryDiff! } type Subscription { - npm( - """ - Whether to include information about the API requests that OneGraph made to fulfill the query in the `extensions` field. - """ - showMetrics: OneGraphSubscriptionShowMetricsEnum - secret: OneGraphSubscriptionSecretInput - auth: OneGraphSubscriptionAuthArg - - """ - Set to true when creating a subscription over a websocket that should only be retained and not sent over the websocket or a webhook. If set to true, `retainPayloads` must not be set to false. - """ - retainedOnly: Boolean - - """ - Set to true to have OneGraph store payloads for this subscription. They payloads are available on the OneGraph dashboard from the app's `Subscription` page. - """ - retainPayloads: Boolean - - """ - Webhook URL that will receive a POST request every time there is new data for the subscription. The endpoint should return a 200 within 30 seconds to be considered successful. If the request does not succeed, it will be retried. - """ - webhookUrl: String - ): NpmSubscriptionRoot! poll( """ Whether to include information about the API requests that OneGraph made to fulfill the query in the `extensions` field. @@ -125,6 +99,12 @@ type Subscription { } input SignoutServicesData { + authlifyTokenId: String + + """ + Auths to establish the anchor. Note that these auths won't be removed from the personal token. + """ + anchorAuth: OneGraphServiceAuths services: [OneGraphServiceEnum!]! } @@ -905,6 +885,8 @@ type OneGraphPersistAuthsResponsePayload { } input OneGraphAddAuthsToPersonalTokenInput { + authlifyTokenId: String + """ Auths to establish the anchor. Note that these auths won't be added to the personal token. """ @@ -915,7 +897,7 @@ input OneGraphAddAuthsToPersonalTokenInput { Token that will be destroyed and have its auths moved to the personal token. """ sacrificialToken: String! - personalToken: String! + personalToken: String } type OneGraphAddAuthsToPersonalTokenResponsePayload { @@ -1096,6 +1078,7 @@ enum OneGraphCustomServiceAuthServiceEnum { FIREBASE GITHUB GMAIL + GONG GOOGLE GOOGLE_ADS GOOGLE_ANALYTICS @@ -1110,9 +1093,11 @@ enum OneGraphCustomServiceAuthServiceEnum { MEETUP NETLIFY NOTION + OUTREACH PRODUCT_HUNT QUICKBOOKS SALESFORCE + SANITY SLACK SPOTIFY STRIPE @@ -1586,8 +1571,11 @@ type OneGraphMutation { If you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service's revocation process. """ destroyToken( + """An Authlify Token identifier""" + authlifyTokenId: String + """Any OneGraph access token, refresh token, or JWT""" - token: String! + token: String ): Boolean! exchangeGitHubContextForOneGraphAccessToken: OneGraphSignInResult! exchangeNetlifyContextForOneGraphAccessToken: OneGraphSignInResult! @@ -1640,83 +1628,7 @@ type OneGraphMutation { createNetlifyCliTestEvent(input: OneGraphCreateNetlifyTestEvent!): OneGraphCreateNetlifyTestResponsePayload! } -enum NpmPublishPackagAccessEnumArg { - """ - The package will only be visible to users with appropriate permissions (as decided by the registry). - """ - PRIVATE - - """The package will be publicly visible and installable by anyone.""" - PUBLIC -} - -enum NpmPublishPackageRegistryEnumArg { - """Publish to the npm registry""" - NPM - - """ - Publish to your GitHub package registry. Set your scope to the GitHub repository owner, and the name to repository name. For more info, see [GitHub's Package Repository](https://github.com/features/packages). - """ - GITHUB -} - -input OneGraphNpmPublishPackageFileArg { - contents: String! - path: String! -} - -input NpmPublishPackageInputArg { - """Whether the package is public or private.""" - access: NpmPublishPackagAccessEnumArg! - - """ - Which registry to publish to: npm, or a GitHub repository package repository. - """ - registry: NpmPublishPackageRegistryEnumArg - - """The list of files to include in the package""" - files: [OneGraphNpmPublishPackageFileArg!]! - - """ - package.json of your package. Must include `name` and `version` as strings fields at a minimum. - """ - packageJson: JSON! -} - -"""Results from running the publishPackage mutation""" -type NpmPublishPackageResult { - """ - Whether the package was successfully uploaded to npm. Note that due to the delay between uploading and indexing, you maybe have to wait until npm reflects the new version.OneGraphNpmPackage - - You can also use the `packagePublished` npm subscription to be notified when the new version of your package has been published. - """ - successfullyUploaded: Boolean -} - -"""The root for Npm mutations.""" -type NpmMutation { - """Publish a package to npm or GitHub package registry""" - publishPackage( - """Input for package publishing""" - input: NpmPublishPackageInputArg! - ): NpmPublishPackageResult -} - type Mutation { - """The root for npm mutations""" - npm( - """ - Instruct OneGraph to use the auth associated with a particular user. - - Note that the user must have gone through the OneGraph oauth flow and logged in with an account with the userId provided in the auth. If there is no user with the account, you may get an auth/auth-missing error. - - The userIds for logged-in services can be found under `me.serviceMetadata.loggedInServices.foreignUserId`. - """ - userIds: OneGraphServiceUserIds - - """Optional OAuth tokens used to execute the query""" - auths: OneGraphServiceAuths - ): NpmMutation! oneGraph( """ Instruct OneGraph to use the auth associated with a particular user. @@ -1769,6 +1681,11 @@ interface OneGraphNetlifyCliSessionEvent { createdAt: String! } +type AuthlifyToken { + """Metadata and logged-in state for all OneGraph services""" + serviceMetadata: OneGraphServicesMetadata! +} + input OneGraphSetAuthGuardianRuleEffectHasuraSetSessionVariableInput { value: OneGraphSetAuthGuardianRuleEffectJsonValueInput! name: String! @@ -3150,6 +3067,52 @@ type OneGraphGmailServiceAuth implements OneGraphServiceAuth { cname: String } +"""Custom OAuth client for Gong""" +type OneGraphGongServiceAuth implements OneGraphServiceAuth { + """id for the service auth""" + id: String! + + """ + The service that the clientId and clientSecret belong to, e.g. "gmail" + """ + service: String! + + """clientId for the serviceAuth.""" + clientId: String! + + """clientSecret for the serviceAuth.""" + clientSecret: String! + + """ + Optional pubsub topic for gmail auth. Required to use gmail subscriptions with custom OAuth credentials. + """ + gmailWatchPubSubTopic: String + + """ + Developer token for the Google Ads api. Required to use the Google Ads api. + """ + googleDeveloperToken: String + + """ + App name for Trello OAuth client. This is the name that will be displayed on the OAuth login form. + """ + trelloAppName: String + + """Optional scopes to use for the OAuth flow.""" + scopes: [String!] + + """ + If true, the bearer token that is created fetchable by the user whose account the token grants access to. + """ + revealTokens: Boolean! + + """Custom OAuth redirect URI.""" + customRedirectUri: String + + """Custom CNAME host.""" + cname: String +} + """Custom OAuth client for Google""" type OneGraphGoogleServiceAuth implements OneGraphServiceAuth { """id for the service auth""" @@ -3794,6 +3757,52 @@ type OneGraphNotionServiceAuth implements OneGraphServiceAuth { cname: String } +"""Custom OAuth client for Outreach""" +type OneGraphOutreachServiceAuth implements OneGraphServiceAuth { + """id for the service auth""" + id: String! + + """ + The service that the clientId and clientSecret belong to, e.g. "gmail" + """ + service: String! + + """clientId for the serviceAuth.""" + clientId: String! + + """clientSecret for the serviceAuth.""" + clientSecret: String! + + """ + Optional pubsub topic for gmail auth. Required to use gmail subscriptions with custom OAuth credentials. + """ + gmailWatchPubSubTopic: String + + """ + Developer token for the Google Ads api. Required to use the Google Ads api. + """ + googleDeveloperToken: String + + """ + App name for Trello OAuth client. This is the name that will be displayed on the OAuth login form. + """ + trelloAppName: String + + """Optional scopes to use for the OAuth flow.""" + scopes: [String!] + + """ + If true, the bearer token that is created fetchable by the user whose account the token grants access to. + """ + revealTokens: Boolean! + + """Custom OAuth redirect URI.""" + customRedirectUri: String + + """Custom CNAME host.""" + cname: String +} + """Custom OAuth client for Product Hunt""" type OneGraphProductHuntServiceAuth implements OneGraphServiceAuth { """id for the service auth""" @@ -3932,6 +3941,52 @@ type OneGraphSalesforceServiceAuth implements OneGraphServiceAuth { cname: String } +"""Custom OAuth client for Sanity""" +type OneGraphSanityServiceAuth implements OneGraphServiceAuth { + """id for the service auth""" + id: String! + + """ + The service that the clientId and clientSecret belong to, e.g. "gmail" + """ + service: String! + + """clientId for the serviceAuth.""" + clientId: String! + + """clientSecret for the serviceAuth.""" + clientSecret: String! + + """ + Optional pubsub topic for gmail auth. Required to use gmail subscriptions with custom OAuth credentials. + """ + gmailWatchPubSubTopic: String + + """ + Developer token for the Google Ads api. Required to use the Google Ads api. + """ + googleDeveloperToken: String + + """ + App name for Trello OAuth client. This is the name that will be displayed on the OAuth login form. + """ + trelloAppName: String + + """Optional scopes to use for the OAuth flow.""" + scopes: [String!] + + """ + If true, the bearer token that is created fetchable by the user whose account the token grants access to. + """ + revealTokens: Boolean! + + """Custom OAuth redirect URI.""" + customRedirectUri: String + + """Custom CNAME host.""" + cname: String +} + """Slack Event Webhook for an app.""" type OneGraphSlackEventWebhook { """Unique identifier.""" @@ -4770,6 +4825,10 @@ type OneGraphServiceQuery { """The id of the GraphQL schema.""" id: String! ): OneGraphGraphQLSchema! + authlifyToken(authlifyTokenId: String!): AuthlifyToken! + + """Personal access token lookup""" + personalToken(accessToken: String!): OneGraphAccessToken netlifyCliEvents( """The number of events to fetch. The maximum is 1000.""" first: Int = 1000 @@ -4787,367 +4846,6 @@ type OneGraphServiceQuery { netlifyCliSession(id: String!): OneGraphNetlifyCliSession! } -"""Download data for npm overall""" -type NpmOverallDownloadPeriodData { - """The start date of download stats""" - start: String! - - """The end date of download stats""" - end: String! - - """ - The download stats for all over npm for the given range. Check out explanation of how [npm download counts work](http://blog.npmjs.org/post/92574016600/numeric-precision-matters-how-npm-download-counts), including "what counts as a download?" - """ - count: Int! - - """ - "Download data for all of npm for a given period in a daily breakdown" - """ - perDay: [NpmDownloadsPerDay!]! -} - -"""Information about download stats related to a package""" -type NpmOverallDownloadData { - """The download status for all of npm over the last day""" - lastDay: NpmOverallDownloadPeriodData - - """The download status for all of npm over the last week""" - lastWeek: NpmOverallDownloadPeriodData - - """The download status for all of npm over the last month""" - lastMonth: NpmOverallDownloadPeriodData - - """The download status for all of npm for a specific period""" - period( - """ - The later date for download stats, e.g. 2018-12-07. Must be after `startDate` - """ - endDate: String! - - """ - The earlier date for download stats, e.g. 2018-12-06. Must be before `endDate` - """ - startDate: String! - ): NpmOverallDownloadPeriodData - - """The download status for all of npm for a specific day""" - day( - """The specific date for download stats, e.g. 2018-12-06""" - date: String! - ): NpmOverallDownloadPeriodData -} - -type NpmPackageMetadataDistTagEntry { - """The name of the tag""" - tag: String! - - """The version as a string for this tag""" - versionString: String! - - """The full version for this tag""" - version: NpmPackageVersion -} - -type NpmPackageMetadataDistTagLatestEntry { - """The version as a string for this tag""" - versionString: String - - """The full version for the `latest` tag""" - version: NpmPackageVersion -} - -""" -Tags can be used to provide an alias instead of version numbers. For example, a project might choose to have multiple streams of development and use a different tag for each stream, e.g., stable, beta, dev, canary. -""" -type NpmPackageDistTags { - """ - By default, the latest tag is used by npm to identify the current version of a package - """ - latest: NpmPackageMetadataDistTagLatestEntry - - """Any custom tags used by the package maintainers""" - custom: [NpmPackageMetadataDistTagEntry!]! -} - -type NpmDownloadsPerDay { - """The download count""" - count: Int - - """""" - day: String -} - -"""Download data for a given package""" -type NpmPackageDownloadPeriodData { - """The start date of download stats""" - start: String! - - """The end date of download stats""" - end: String! - - """ - The download stats for the given package and range. Check out explanation of how [npm download counts work](http://blog.npmjs.org/post/92574016600/numeric-precision-matters-how-npm-download-counts), including "what counts as a download?" - """ - count: Int! - - """ - "Download data for this package and period in a daily breakdown" - """ - perDay: [NpmDownloadsPerDay!]! -} - -"""Information about download stats related to a package""" -type NpmPackageDownloadData { - """The download status for this package over the last day""" - lastDay: NpmPackageDownloadPeriodData - - """The download status for this package over the last week""" - lastWeek: NpmPackageDownloadPeriodData - - """The download status for this package over the last month""" - lastMonth: NpmPackageDownloadPeriodData - - """The download status for this package for a specific period""" - period( - """ - The later date for download stats, e.g. 2018-12-07. Must be after `startDate` - """ - endDate: String! - - """ - The earlier date for download stats, e.g. 2018-12-06. Must be before `endDate` - """ - startDate: String! - ): NpmPackageDownloadPeriodData - - """The download status for this package for a specific day""" - day( - """The specific date for download stats, e.g. 2018-12-06""" - date: String! - ): NpmPackageDownloadPeriodData -} - -"""A npm package license""" -type NpmPackageLicense { - """ - The [SPDX identifier](https://spdx.org/licenses/) of the package's license - """ - type: String - - """A url for the full license""" - url: String -} - -""" -A mapping of other packages this version depends on to the required semver ranges -""" -type NpmPackageVersionDependency { - """The package name of the dependency""" - name: String - - """The version of the package dependency""" - version: String -} - -"""The dist object is generated by npm and may be relied upon""" -type NpmPackageDist { - """""" - tarball: String - - """""" - shasum: String -} - -"""A npm package version""" -type NpmPackageVersion { - """ - `true` if this version is known to have a shrinkwrap that must be used to install it; false if this version is known not to have a shrinkwrap. If this field is undefined, the client must determine through other means if a shrinkwrap exists. - """ - hasShrinkwrap: Boolean - - """""" - from: String - - """`package@version`, such as `npm@1.0.0`""" - id: String - - """The version of node used to publish this""" - nodeVersion: String - - """The version of the npm client used to publish this""" - npmVersion: String - - """The dist object is generated by npm and may be relied upon.""" - dist: NpmPackageDist - - """The SHA-1 sum of the tarball""" - shasum: String - - """A short description of the package at this version""" - description: String - - """The package's entry point (e.g., `index.js` or `main.js`)""" - main: String - - """The package name""" - name: String - - """Deprecation warnings message of this version""" - deprecated: String - - """The version string for this version""" - version: String - - """""" - maintainers: [NpmPackageMaintainer!] - - """ - A mapping of other packages this version depends on to the required semver ranges - """ - dependencies: [NpmPackageVersionDependency!]! - - """ - A mapping of package names to the required semver ranges of _development_ dependencies - """ - devDependencies: [NpmPackageVersionDependency!]! - - """ - A mapping of package names to the required semver ranges of _optional_ dependencies - """ - optionalDependencies: [NpmPackageVersionDependency!]! - - """ - A mapping of package names to the required semver ranges of _peer_ dependencies - """ - peerDependencies: [NpmPackageVersionDependency!]! - - """The license for this package""" - license: NpmPackageLicense! -} - -"""Information on where bugs are filed for this package""" -type NpmPackageBugs { - """""" - url: String -} - -""" -Specifies the repository where the source for this package might be found -""" -type NpmPackageRepository { - """""" - url: String - - """""" - type: String -} - -"""A package publishing time for a given version""" -type NpmPackageTimeVersion { - """The package version""" - version: String - - """The date this version was published""" - date: String -} - -""" -Information about when a package was created and last modified, as well as the publishing date for each version -""" -type NpmPackageTime { - """""" - created: String - - """""" - modified: String - - """Publishing information for each version of a package""" - versions: [NpmPackageTimeVersion!]! -} - -"""A npm package maintainer""" -type NpmPackageMaintainer { - """The package maintainer's email""" - email: String - - """""" - name: String -} - -"""A npm package""" -type NpmPackage { - """The package name, used as an ID in CouchDB""" - id: String - - """The revision number of this version of the document in CouchDB""" - rev: String - - """The primary author of the npm package""" - author: NpmPackageMaintainer - - """ - A mapping of versions to the time published, along with created and modified timestamps - """ - time: NpmPackageTime - - """The package name""" - name: String - - """A short description of the package""" - description: String - - """ - The first 64K of the README data for the most-recently published version of the package - """ - readme: String - - """""" - homepage: String - - """The repository url as given in package.json, for the latest version""" - repository: NpmPackageRepository - - """""" - keywords: [String!] - - """""" - bugs: NpmPackageBugs - - """The name of the file from which the readme data was taken""" - readmeFilename: String - - """ - People with permission to publish this package (NB: Not authoritative, but informational) - """ - maintainers: [NpmPackageMaintainer!] - - """A mapping of semver-compliant version numbers to version data""" - versions: [NpmPackageVersion!]! - - """Summary download stats for a package""" - downloads: NpmPackageDownloadData! - - """The license for this package""" - license: NpmPackageLicense! - - """ - Tags can be used to provide an alias instead of version numbers. For example, a project might choose to have multiple streams of development and use a different tag for each stream, e.g., stable, beta, dev, canary. - """ - distTags: NpmPackageDistTags -} - -"""The root for Npm.""" -type NpmQuery { - """Find a npm package member by its npm name, e.g. `"fela"`""" - package( - """Find the package by its name""" - name: String! - ): NpmPackage - - """Overall download stats in the npm ecosystem""" - downloads: NpmOverallDownloadData -} - input OneGraphServiceUserIds { """User id for Adroll""" adroll: String @@ -5191,6 +4889,9 @@ input OneGraphServiceUserIds { """User id for Gmail""" gmail: String + """User id for Gong""" + gong: String + """User id for Google""" google: String @@ -5233,6 +4934,9 @@ input OneGraphServiceUserIds { """User id for Notion""" notion: String + """User id for Outreach""" + outreach: String + """User id for Product Hunt""" productHunt: String @@ -5242,6 +4946,9 @@ input OneGraphServiceUserIds { """User id for Salesforce""" salesforce: String + """User id for Sanity""" + sanity: String + """User id for Slack""" slack: String @@ -5387,6 +5094,23 @@ input OneGraphGoogleAdsAuthArg { developerToken: String! } +input OneGraphGongBasicAuthArg { + accessKeySecret: String! + accessKey: String! +} + +input OneGraphGongAuthArg { + """ + For advanced usage: if you have separately implemented the Gong OAuth flow and have an OAuth token to make calls on behalf of your user, use it with this `oauthToken` argument + """ + oauthToken: String + + """ + In the [Gong API Page](https://app.gong.io/company/api) (you must be a technical administrator in Gong), click `Create` to receive an Access Key and an Access Key Secret. + """ + basic: OneGraphGongBasicAuthArg +} + input OneGraphFedexAPIAuth { meterNumber: String! accountNumber: String! @@ -5468,6 +5192,7 @@ input OneGraphServiceAuths { googleCalendarOAuthToken: String googleAdsAuth: OneGraphGoogleAdsAuthArg googleOAuthToken: String + gongAuth: OneGraphGongAuthArg gmailOAuthToken: String gitHubOAuthToken: String firebaseOAuthToken: String @@ -5635,6 +5360,7 @@ enum OneGraphServiceEnumArg { FIREBASE GITHUB GMAIL + GONG GOOGLE GOOGLE_ADS GOOGLE_ANALYTICS @@ -5649,9 +5375,11 @@ enum OneGraphServiceEnumArg { MEETUP NETLIFY NOTION + OUTREACH PRODUCT_HUNT QUICKBOOKS SALESFORCE + SANITY SLACK SPOTIFY STRIPE @@ -5728,6 +5456,12 @@ type OneGraphLinkedNodesConnection { nodes: [OneGraphNode!]! } +"""The style for the logo svg.""" +enum OneGraphAppLogoStyleEnum { + DEFAULT + ROUNDED_RECTANGLE +} + """An OAuth scope that the service supports.""" type OneGraphServiceScope { category: String @@ -5755,7 +5489,7 @@ type OneGraphServiceInfo implements OneGraphNode { availableScopes: [OneGraphServiceScope!] """A short-lived svg image url of the logo for the service. May be null.""" - logoUrl: String + logoUrl(style: OneGraphAppLogoStyleEnum = DEFAULT): String oneGraphLinkedNodes( """Filter the connected nodes that are returned by service or typename.""" filter: OneGraphLinkedNodesConnectionFilter @@ -5781,6 +5515,7 @@ enum OneGraphServiceEnum { FIREBASE GITHUB GMAIL + GONG GOOGLE GOOGLE_ADS GOOGLE_ANALYTICS @@ -5795,9 +5530,11 @@ enum OneGraphServiceEnum { MEETUP NETLIFY NOTION + OUTREACH PRODUCT_HUNT QUICKBOOKS SALESFORCE + SANITY SLACK SPOTIFY STRIPE @@ -5872,6 +5609,7 @@ type OneGraphServicesMetadata { firebase: OneGraphServiceMetadata! gitHub: OneGraphServiceMetadata! gmail: OneGraphServiceMetadata! + gong: OneGraphServiceMetadata! google: OneGraphServiceMetadata! googleAds: OneGraphServiceMetadata! googleAnalytics: OneGraphServiceMetadata! @@ -5886,9 +5624,11 @@ type OneGraphServicesMetadata { meetup: OneGraphServiceMetadata! netlify: OneGraphServiceMetadata! notion: OneGraphServiceMetadata! + outreach: OneGraphServiceMetadata! productHunt: OneGraphServiceMetadata! quickbooks: OneGraphServiceMetadata! salesforce: OneGraphServiceMetadata! + sanity: OneGraphServiceMetadata! slack: OneGraphServiceMetadata! spotify: OneGraphServiceMetadata! stripe: OneGraphServiceMetadata! @@ -5968,21 +5708,6 @@ type Query { """Optional OAuth tokens used to execute the query""" auths: OneGraphServiceAuths ): OneGraphNode - - """The root for npm queries""" - npm( - """ - Instruct OneGraph to use the auth associated with a particular user. - - Note that the user must have gone through the OneGraph oauth flow and logged in with an account with the userId provided in the auth. If there is no user with the account, you may get an auth/auth-missing error. - - The userIds for logged-in services can be found under `me.serviceMetadata.loggedInServices.foreignUserId`. - """ - userIds: OneGraphServiceUserIds - - """Optional OAuth tokens used to execute the query""" - auths: OneGraphServiceAuths - ): NpmQuery! oneGraph( """ Instruct OneGraph to use the auth associated with a particular user. diff --git a/tests/integration/snapshots/220.command.graph.test.js.md b/tests/integration/snapshots/220.command.graph.test.js.md index 717ba55c824..9ec798e5039 100644 --- a/tests/integration/snapshots/220.command.graph.test.js.md +++ b/tests/integration/snapshots/220.command.graph.test.js.md @@ -1,4 +1,4 @@ -# Snapshot report for `tests/220.command.graph.test.js` +# Snapshot report for `tests/integration/220.command.graph.test.js` The actual snapshot is saved in `220.command.graph.test.js.snap`. @@ -25,6 +25,9 @@ Generated by [AVA](https://avajs.dev). ␊ COMMANDS␊ $ graph:edit Launch the browser to edit your local graph functions from Netlify␊ + $ graph:handler Generate a handler for a Graph operation given its name. See \`graph:operations\` for a list of operations.␊ + $ graph:library Generate the Graph function library␊ + $ graph:operations List all of the locally available operations␊ $ graph:pull Pull down your local Netlify Graph schema, and process pending Graph edit events␊ ` @@ -49,5 +52,8 @@ Generated by [AVA](https://avajs.dev). ␊ COMMANDS␊ $ graph:edit Launch the browser to edit your local graph functions from Netlify␊ + $ graph:handler Generate a handler for a Graph operation given its name. See \`graph:operations\` for a list of operations.␊ + $ graph:library Generate the Graph function library␊ + $ graph:operations List all of the locally available operations␊ $ graph:pull Pull down your local Netlify Graph schema, and process pending Graph edit events␊ ` diff --git a/tests/integration/snapshots/220.command.graph.test.js.snap b/tests/integration/snapshots/220.command.graph.test.js.snap index d9162ce32d0..8391675a0f0 100644 Binary files a/tests/integration/snapshots/220.command.graph.test.js.snap and b/tests/integration/snapshots/220.command.graph.test.js.snap differ diff --git a/tests/integration/snapshots/530.graph-codegen.test.js.md b/tests/integration/snapshots/530.graph-codegen.test.js.md index f39fdb85311..630270dc326 100644 --- a/tests/integration/snapshots/530.graph-codegen.test.js.md +++ b/tests/integration/snapshots/530.graph-codegen.test.js.md @@ -4,8 +4,194 @@ The actual snapshot is saved in `530.graph-codegen.test.js.snap`. Generated by [AVA](https://avajs.dev). -## netlify graph function codegen +## netlify graph function library (+runtime) codegen [#custom-node-javascript-esm] > Snapshot 1 - '{"clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/n/n/n/n/nconst operationsDoc = `query ExampleQuery($package: String!) @netlify(id: /"d88888fb-ddfc-4833-9d9a-f3497cb7c992/", doc: /"A test query to snapshot/") {/n npm {/n package(name: $package) {/n id/n readme/n license {/n url/n }/n }/n }/n}`/n/n/n/n/nconst fetchOneGraph = async function fetchOneGraph(input) {/n const accessToken = input.accessToken /n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/n/n/n/n /n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * A test query to snapshot/n *//n fetchExampleQuery: exports.fetchExampleQuery/n}/n/nexports.default = functions/n/n","typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string; /n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/n/nexport type ExampleQueryInput = {/"package/": string};/n/nexport type ExampleQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n /**/n * The root for npm queries/n *//nnpm: {/n /**/n * Find a npm package member by its npm name, e.g. `/"fela/"`/n *//npackage: {/n /**/n * The package name, used as an ID in CouchDB/n *//nid: string;/n /**/n * The first 64K of the README data for the most-recently published version of the package/n *//nreadme: string;/n /**/n * The license for this package/n *//nlicense: {/n /**/n * A url for the full license/n *//nurl: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * A test query to snapshot/n *//nexport function fetchExampleQuery(/n variables: ExampleQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n","functionDefinitions":[{"id":"d88888fb-ddfc-4833-9d9a-f3497cb7c992","operationString":"query ExampleQuery($package: String!) @netlify(id: /"d88888fb-ddfc-4833-9d9a-f3497cb7c992/", doc: /"A test query to snapshot/") {/n npm {/n package(name: $package) {/n id/n readme/n license {/n url/n }/n }/n }/n}","description":"A test query to snapshot","fnName":"fetchExampleQuery","safeBody":"query ExampleQuery($package: String!) @netlify(id: /"d88888fb-ddfc-4833-9d9a-f3497cb7c992/", doc: /"A test query to snapshot/") {/n npm {/n package(name: $package) {/n id/n readme/n license {/n url/n }/n }/n }/n}","kind":"query","variableSignature":"{/"package/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n /**/n * The root for npm queries/n *//nnpm: {/n /**/n * Find a npm package member by its npm name, e.g. `/"fela/"`/n *//npackage: {/n /**/n * The package name, used as an ID in CouchDB/n *//nid: string;/n /**/n * The first 64K of the README data for the most-recently published version of the package/n *//nreadme: string;/n /**/n * The license for this package/n *//nlicense: {/n /**/n * A url for the full license/n *//nurl: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ExampleQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ExampleQuery","loc":{"start":6,"end":18}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"package","loc":{"start":20,"end":27}},"loc":{"start":19,"end":27}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":29,"end":35}},"loc":{"start":29,"end":35}},"loc":{"start":29,"end":36}},"directives":[],"loc":{"start":19,"end":36}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":39,"end":46}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":47,"end":49}},"value":{"kind":"StringValue","value":"d88888fb-ddfc-4833-9d9a-f3497cb7c992","block":false,"loc":{"start":51,"end":89}},"loc":{"start":47,"end":89}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":91,"end":94}},"value":{"kind":"StringValue","value":"A test query to snapshot","block":false,"loc":{"start":96,"end":122}},"loc":{"start":91,"end":122}}],"loc":{"start":38,"end":123}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"npm","loc":{"start":128,"end":131}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"package","loc":{"start":138,"end":145}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"name","loc":{"start":146,"end":150}},"value":{"kind":"Variable","name":{"kind":"Name","value":"package","loc":{"start":153,"end":160}},"loc":{"start":152,"end":160}},"loc":{"start":146,"end":160}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":170,"end":172}},"arguments":[],"directives":[],"loc":{"start":170,"end":172}},{"kind":"Field","name":{"kind":"Name","value":"readme","loc":{"start":179,"end":185}},"arguments":[],"directives":[],"loc":{"start":179,"end":185}},{"kind":"Field","name":{"kind":"Name","value":"license","loc":{"start":192,"end":199}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url","loc":{"start":210,"end":213}},"arguments":[],"directives":[],"loc":{"start":210,"end":213}}],"loc":{"start":200,"end":221}},"loc":{"start":192,"end":221}}],"loc":{"start":162,"end":227}},"loc":{"start":138,"end":227}}],"loc":{"start":132,"end":231}},"loc":{"start":128,"end":231}}],"loc":{"start":124,"end":233}},"loc":{"start":0,"end":233}},"operationStringWithoutNetlifyDirective":"query ExampleQuery($package: String!) {/n npm {/n package(name: $package) {/n id/n readme/n license {/n url/n }/n }/n }/n}"}]}' + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n import buffer from /"buffer/"/n import crypto from /"crypto/"/n import https from /"https/"/n import process from /"process/"/n/nexport const verifySignature = (input) => {/n const secret = input.secret/n const body = input.body/n const signature = input.signature/n/n if (!signature) {/n console.error(\'Missing signature\')/n return false/n }/n/n const sig = {}/n for (const pair of signature.split(\',\')) {/n const [key, value] = pair.split(\'=\')/n sig[key] = value/n }/n/n if (!sig.t || !sig.hmac_sha256) {/n console.error(\'Invalid signature header\')/n return false/n }/n/n const hash = crypto/n .createHmac(\'sha256\', secret)/n .update(sig.t)/n .update(\'.\')/n .update(body)/n .digest(\'hex\')/n/n if (/n !crypto.timingSafeEqual(/n Buffer.from(hash, \'hex\'),/n Buffer.from(sig.hmac_sha256, \'hex\')/n )/n ) {/n console.error(\'Invalid signature\')/n return false/n }/n/n if (parseInt(sig.t, 10) < Date.now() / 1000 - 300 /* 5 minutes */) {/n console.error(\'Request is too old\')/n return false/n }/n/n return true/n}/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n \'Content-Length\': reqBody.length,/n }/n/n const timeoutMs = 30_000/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: timeoutMs,/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n const respBody = []/n/n return new Promise((resolve, reject) => {/n const req = https.request(url, reqOptions, (res) => {/n if (res.statusCode && (res.statusCode < 200 || res.statusCode > 299)) {/n return reject(/n new Error(/n /"Netlify Graph return non-OK HTTP status code/" + res.statusCode,/n ),/n )/n }/n/n res.on(\'data\', (chunk) => respBody.push(chunk))/n/n res.on(\'end\', () => {/n const resString = buffer.Buffer.concat(respBody).toString()/n resolve(resString)/n })/n })/n/n req.on(\'error\', (error) => {/n console.error(\'Error making request to Netlify Graph:\', error)/n })/n/n req.on(\'timeout\', () => {/n req.destroy()/n reject(new Error(\'Request to Netlify Graph timed out\'))/n })/n/n req.write(reqBody)/n req.end()/n })/n}/n/n/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/nexport const verifyRequestSignature = (request) => {/n const event = request.event/n const secret = process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const signature = event.headers[\'x-netlify-graph-signature\']/n const body = event.body/n/n if (!secret) {/n console.error(/n \'NETLIFY_GRAPH_WEBHOOK_SECRET is not set, cannot verify incoming webhook request\'/n )/n return false/n }/n/n return verifySignature({ secret, signature, body: body || \'\' })/n}/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery,/n /**/n * A subscription with variables and a fragment to test code generation./n *//n subscribeToTestSubscription:subscribeToTestSubscription,/n /**/n * Verify the event body is signed securely, and then parse the result./n *//n parseAndVerifyTestSubscriptionEvent: parseAndVerifyTestSubscriptionEvent/n}/n/nexport default functions/n/nexport const handler = () => {/n // return a 401 json response/n return {/n statusCode: 401,/n body: JSON.stringify({/n message: \'Unauthorized\',/n }),/n }/n }"}' + +## netlify graph function library (+runtime) codegen [#custom-browser-javascript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n /n /n /n /n/n/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n }/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: 88888,/n body: reqBody/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n return fetch(url, reqOptions).then(response => response.text());/n}/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/n/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery/n}/n/nexport default functions/n/n"}' + +## netlify graph handler codegen [#custom-queryWithFragment-javascript-esm] + +> Snapshot 1 + + '"ListServicesQuery.js: import NetlifyGraph from /"./netlifyGraph/"/n/nexport const handler = async (event) => {/n // By default, all API calls use no authentication/n let accessToken;/n/n //// If you want to use the client\'s accessToken when making API calls on the user\'s behalf:/n // accessToken = event.headers[/"authorization/"]?.split(/" /")[1]/n/n //// If you want to use the API with your own access token:/n // accessToken = event.authlifyToken/n /n const eventBodyJson = JSON.parse(event.body || /"{}/");/n/n const nfToken = event.queryStringParameters?.nfToken;/n const siteId = event.queryStringParameters?.siteId;/n const logoStyle = event.queryStringParameters?.logoStyle;/n/n if (nfToken === undefined || nfToken === null || siteId === undefined || siteId === null) {/n return {/n statusCode: 422,/n body: JSON.stringify({/n error: \'You must supply parameters for: `nfToken`, `siteId`\'/n }),/n };/n }/n/n const { errors: ListServicesQueryErrors, data: ListServicesQueryData } =/n await NetlifyGraph.fetchListServicesQuery({ nfToken: nfToken, siteId: siteId, logoStyle: logoStyle }, {accessToken: accessToken});/n/n if (ListServicesQueryErrors) {/n console.error(JSON.stringify(ListServicesQueryErrors, null, 2));/n }/n/n console.log(JSON.stringify(ListServicesQueryData, null, 2));/n/n return {/n statusCode: 200,/n body: JSON.stringify({/n success: true,/n ListServicesQueryErrors: ListServicesQueryErrors,/n ListServicesQueryData: ListServicesQueryData/n }),/n headers: {/n \'content-type\': \'application/json\',/n },/n };/n};/n/n/** /n * Client-side invocations:/n * Call your Netlify function from the browser (after saving/n * the code to `ListServicesQuery.js`) with these helpers:/n *//n/n/**/nasync function fetchListServicesQuery(params) {/n const {nfToken, siteId, logoStyle} = params || {};/n const resp = await fetch(`/.netlify/functions/ListServicesQuery?nfToken=${nfToken}&siteId=${siteId}&logoStyle=${logoStyle}`,/n {/n method: /"GET/"/n });/n/n const text = await resp.text();/n/n return JSON.parse(text);/n}/n*//n"' + +## netlify graph function library (+runtime) codegen [Next.js-node-javascript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n import buffer from /"buffer/"/n import crypto from /"crypto/"/n import https from /"https/"/n import process from /"process/"/n/nexport const verifySignature = (input) => {/n const secret = input.secret/n const body = input.body/n const signature = input.signature/n/n if (!signature) {/n console.error(\'Missing signature\')/n return false/n }/n/n const sig = {}/n for (const pair of signature.split(\',\')) {/n const [key, value] = pair.split(\'=\')/n sig[key] = value/n }/n/n if (!sig.t || !sig.hmac_sha256) {/n console.error(\'Invalid signature header\')/n return false/n }/n/n const hash = crypto/n .createHmac(\'sha256\', secret)/n .update(sig.t)/n .update(\'.\')/n .update(body)/n .digest(\'hex\')/n/n if (/n !crypto.timingSafeEqual(/n Buffer.from(hash, \'hex\'),/n Buffer.from(sig.hmac_sha256, \'hex\')/n )/n ) {/n console.error(\'Invalid signature\')/n return false/n }/n/n if (parseInt(sig.t, 10) < Date.now() / 1000 - 300 /* 5 minutes */) {/n console.error(\'Request is too old\')/n return false/n }/n/n return true/n}/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n \'Content-Length\': reqBody.length,/n }/n/n const timeoutMs = 30_000/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: timeoutMs,/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n const respBody = []/n/n return new Promise((resolve, reject) => {/n const req = https.request(url, reqOptions, (res) => {/n if (res.statusCode && (res.statusCode < 200 || res.statusCode > 299)) {/n return reject(/n new Error(/n /"Netlify Graph return non-OK HTTP status code/" + res.statusCode,/n ),/n )/n }/n/n res.on(\'data\', (chunk) => respBody.push(chunk))/n/n res.on(\'end\', () => {/n const resString = buffer.Buffer.concat(respBody).toString()/n resolve(resString)/n })/n })/n/n req.on(\'error\', (error) => {/n console.error(\'Error making request to Netlify Graph:\', error)/n })/n/n req.on(\'timeout\', () => {/n req.destroy()/n reject(new Error(\'Request to Netlify Graph timed out\'))/n })/n/n req.write(reqBody)/n req.end()/n })/n}/n/n/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/nexport const verifyRequestSignature = (request) => {/n const event = request.event/n const secret = process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const signature = event.headers[\'x-netlify-graph-signature\']/n const body = event.body/n/n if (!secret) {/n console.error(/n \'NETLIFY_GRAPH_WEBHOOK_SECRET is not set, cannot verify incoming webhook request\'/n )/n return false/n }/n/n return verifySignature({ secret, signature, body: body || \'\' })/n}/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery,/n /**/n * A subscription with variables and a fragment to test code generation./n *//n subscribeToTestSubscription:subscribeToTestSubscription,/n /**/n * Verify the event body is signed securely, and then parse the result./n *//n parseAndVerifyTestSubscriptionEvent: parseAndVerifyTestSubscriptionEvent/n}/n/nexport default functions/n/nexport const handler = () => {/n // return a 401 json response/n return {/n statusCode: 401,/n body: JSON.stringify({/n message: \'Unauthorized\',/n }),/n }/n }"}' + +## netlify graph function library (+runtime) codegen [Next.js-browser-javascript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n /n /n /n /n/n/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n }/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: 88888,/n body: reqBody/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n return fetch(url, reqOptions).then(response => response.text());/n}/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/n/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery/n}/n/nexport default functions/n/n"}' + +## netlify graph handler codegen [Next.js-queryWithFragment-javascript-esm] + +> Snapshot 1 + + '"ListServicesQuery.js: /nimport NetlifyGraph from /"./netlifyGraph/";/n/nexport const handler = async (req, res) => {/n // By default, all API calls use no authentication/n let accessToken = null;/n/n //// If you want to use the client\'s accessToken when making API calls on the user\'s behalf:/n // accessToken = req.headers[/"authorization/"]?.split(/" /")[1];/n/n //// If you want to use the API with your own access token:/n // accessToken = process.env.ONEGRAPH_AUTHLIFY_TOKEN;/n /n const eventBodyJson = req.body || {};/n/n const nfToken = typeof req.query?.nfToken === \'string\' ? req.query?.nfToken : req.query?.nfToken[0];/n const siteId = typeof req.query?.siteId === \'string\' ? req.query?.siteId : req.query?.siteId[0];/n const logoStyle = typeof req.query?.logoStyle === \'string\' ? req.query?.logoStyle : req.query?.logoStyle[0];/n/n if (nfToken === undefined || nfToken === null || siteId === undefined || siteId === null) {/n return res.status(422).json({/n errors: [/"You must supply parameters for: `nfToken`, `siteId`/"],/n });/n }/n/n const { errors, data } = await NetlifyGraph.fetchListServicesQuery({ nfToken: nfToken, siteId: siteId, logoStyle: logoStyle }, {accessToken: accessToken}); /n/n if (errors) {/n console.error(JSON.stringify(errors, null, 2));/n }/n/n console.log(JSON.stringify(data, null, 2));/n/n res.setHeader(/"Content-Type/", /"application/json/");/n/n return res.status(200).json({/n errors, data/n });/n};/n/nexport default handler;/n/n/** /n * Client-side invocations:/n * Call your Netlify function from the browser with this helper:/n *//n/n/**/nasync function fetchListServicesQuery(params) {/n const {nfToken, siteId, logoStyle} = params || {};/n const resp = await fetch(`/api/ListServicesQuery?nfToken=${nfToken}&siteId=${siteId}&logoStyle=${logoStyle}`, {/n method: /"GET/"/n });/n/n const text = await resp.text();/n/n return JSON.parse(text);/n}/n*//-----------------/pages|ListServicesQueryForm.jsx: import Head from /"next/head/";/nimport React, { useState } from /"react/";/nimport { Auth } from \'netlify-graph-auth\';/n/nconst { NetlifyGraphAuth } = Auth;/n/nexport default function Form(props) {/n const isServer = typeof window === /"undefined/";/n const [formVariables, setFormVariables] = React.useState({});/n const [result, setResult] = useState(null);/n const [auth, setAuth] = useState(/n isServer/n ? null/n : new NetlifyGraphAuth({/n siteId: props.siteId,/n })/n );/n/n const submitForm = async () => {/n const res = await fetch(/"/api/ListServicesQuery/", {/n body: JSON.stringify(formVariables),/n headers: {/n /"Content-Type/": /"application/json/",/n ...auth?.authHeaders()/n },/n method: /"POST/"/n });/n/n const formResult = await res.json();/n setResult(formResult);/n };/n/n const needsLoginService = auth?.findMissingAuthServices(result)[0];/n/n return (/n
/n /n ListServicesQuery form/n /n
/n

{props.title}

/n
{ event.preventDefault(); submitForm() }}>/n value)} />/n value)} />/n /n /n
/n {needsLoginService ? (/n ) /n : null}/n
{JSON.stringify(formVariables, null, 2)}
/n
{JSON.stringify(result, null, 2)}
/n
/n
/n )/n}/n/nexport async function getServerSideProps(context) {/n const siteId = process.env.SITE_ID;/n if (!siteId) {/n throw new Error(/"SITE_ID environment variable is not set. Be sure to run `netlify link` before `netlify dev`/");/n }/n/n return {/n props: {/n title: /"ListServicesQuery form/",/n siteId: siteId/n }/n }/n}/n/nconst updateFormVariables = (setFormVariables, path, coerce) => {/n const setIn = (object, path, value) => {/n if (path.length === 1) {/n if (value === null) {/n delete object[path[0]];/n } else {/n object[path[0]] = value;/n }/n } else {/n if ([undefined, null].indexOf(object[path[0]]) > -1) {/n object[path[0]] = typeof path[1] === /"number/" ? [] : {};/n }/n setIn(object[path[0]], path.slice(1), value);/n }/n return object;/n };/n/n const formInputHandler = (event) => {/n // We parse the form input, coerce it to the correct type, and then update the form variables/n const rawValue = event.target.value;/n // We take a blank input to mean `null`/n const value = rawValue === /"/" ? null : rawValue;/n setFormVariables((oldFormVariables) => {/n const newValue = setIn(oldFormVariables, path, coerce(value));/n return { ...newValue };/n });/n };/n/n return formInputHandler;/n};/n"' + +## netlify graph function library (+runtime) codegen [Remix-node-javascript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n import buffer from /"buffer/"/n import crypto from /"crypto/"/n import https from /"https/"/n import process from /"process/"/n/nexport const verifySignature = (input) => {/n const secret = input.secret/n const body = input.body/n const signature = input.signature/n/n if (!signature) {/n console.error(\'Missing signature\')/n return false/n }/n/n const sig = {}/n for (const pair of signature.split(\',\')) {/n const [key, value] = pair.split(\'=\')/n sig[key] = value/n }/n/n if (!sig.t || !sig.hmac_sha256) {/n console.error(\'Invalid signature header\')/n return false/n }/n/n const hash = crypto/n .createHmac(\'sha256\', secret)/n .update(sig.t)/n .update(\'.\')/n .update(body)/n .digest(\'hex\')/n/n if (/n !crypto.timingSafeEqual(/n Buffer.from(hash, \'hex\'),/n Buffer.from(sig.hmac_sha256, \'hex\')/n )/n ) {/n console.error(\'Invalid signature\')/n return false/n }/n/n if (parseInt(sig.t, 10) < Date.now() / 1000 - 300 /* 5 minutes */) {/n console.error(\'Request is too old\')/n return false/n }/n/n return true/n}/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n \'Content-Length\': reqBody.length,/n }/n/n const timeoutMs = 30_000/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: timeoutMs,/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n const respBody = []/n/n return new Promise((resolve, reject) => {/n const req = https.request(url, reqOptions, (res) => {/n if (res.statusCode && (res.statusCode < 200 || res.statusCode > 299)) {/n return reject(/n new Error(/n /"Netlify Graph return non-OK HTTP status code/" + res.statusCode,/n ),/n )/n }/n/n res.on(\'data\', (chunk) => respBody.push(chunk))/n/n res.on(\'end\', () => {/n const resString = buffer.Buffer.concat(respBody).toString()/n resolve(resString)/n })/n })/n/n req.on(\'error\', (error) => {/n console.error(\'Error making request to Netlify Graph:\', error)/n })/n/n req.on(\'timeout\', () => {/n req.destroy()/n reject(new Error(\'Request to Netlify Graph timed out\'))/n })/n/n req.write(reqBody)/n req.end()/n })/n}/n/n/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/nexport const verifyRequestSignature = (request) => {/n const event = request.event/n const secret = process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const signature = event.headers[\'x-netlify-graph-signature\']/n const body = event.body/n/n if (!secret) {/n console.error(/n \'NETLIFY_GRAPH_WEBHOOK_SECRET is not set, cannot verify incoming webhook request\'/n )/n return false/n }/n/n return verifySignature({ secret, signature, body: body || \'\' })/n}/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery,/n /**/n * A subscription with variables and a fragment to test code generation./n *//n subscribeToTestSubscription:subscribeToTestSubscription,/n /**/n * Verify the event body is signed securely, and then parse the result./n *//n parseAndVerifyTestSubscriptionEvent: parseAndVerifyTestSubscriptionEvent/n}/n/nexport default functions/n/nexport const handler = () => {/n // return a 401 json response/n return {/n statusCode: 401,/n body: JSON.stringify({/n message: \'Unauthorized\',/n }),/n }/n }"}' + +## netlify graph function library (+runtime) codegen [Remix-browser-javascript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n /n /n /n /n/n/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n }/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: 88888,/n body: reqBody/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n return fetch(url, reqOptions).then(response => response.text());/n}/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/n/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery/n}/n/nexport default functions/n/n"}' + +## netlify graph handler codegen [Remix-queryWithFragment-javascript-esm] + +> Snapshot 1 + + '"app|routes|ListServicesQuery.js: import { json, Form, useActionData, useTransition } from /"remix/";/nimport type { ActionFunction } from /"remix/";/nimport NetlifyGraph from /".,netlifyGraph/";/n/nexport const action = async ({ request }) => {/n const formData = await request.formData();/n/n // By default, all API calls use no authentication/n let accessToken;/n/n //// If you want to use the API with your own access token:/n // accessToken = authlifyToken;/n/n const nfTokenFormValue = formData.get(/"nfToken/");/nconst nfToken = nfTokenFormValue;/n/n const siteIdFormValue = formData.get(/"siteId/");/nconst siteId = siteIdFormValue;/n/n const logoStyleFormValue = formData.get(/"logoStyle/");/nconst logoStyle = logoStyleFormValue;/n/n/n if (nfToken === undefined || nfToken === null || siteId === undefined || siteId === null) {/n return json(/n {/n errors: [/"You must supply parameters for: `nfToken`, `siteId`/"],/n },/n { status: 422 }/n );/n }/n/n const { errors, data } = await NetlifyGraph.fetchListServicesQuery({ nfToken: nfToken, siteId: siteId, logoStyle: logoStyle }, {accessToken: accessToken});/n/n if (errors) {/n console.error(JSON.stringify(errors, null, 2));/n }/n/n console.log(JSON.stringify(data, null, 2));/n/n return json({ data, errors });/n};/n/nexport default function handler() {/n const results = useActionData();/n const transition = useTransition();/n/n const errors = results?.errors;/n const data = results?.data;/n/n/n return (/n
/n

/n

/n

/n

/n /n

/n/n {errors ? (
{JSON.stringify(errors, null, 2)}
) : null}/n {data ? (
{JSON.stringify(data, null, 2)}
) : null}/n
/n );/n}/n"' + +## netlify graph function library (+runtime) codegen [unknown-node-javascript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n import buffer from /"buffer/"/n import crypto from /"crypto/"/n import https from /"https/"/n import process from /"process/"/n/nexport const verifySignature = (input) => {/n const secret = input.secret/n const body = input.body/n const signature = input.signature/n/n if (!signature) {/n console.error(\'Missing signature\')/n return false/n }/n/n const sig = {}/n for (const pair of signature.split(\',\')) {/n const [key, value] = pair.split(\'=\')/n sig[key] = value/n }/n/n if (!sig.t || !sig.hmac_sha256) {/n console.error(\'Invalid signature header\')/n return false/n }/n/n const hash = crypto/n .createHmac(\'sha256\', secret)/n .update(sig.t)/n .update(\'.\')/n .update(body)/n .digest(\'hex\')/n/n if (/n !crypto.timingSafeEqual(/n Buffer.from(hash, \'hex\'),/n Buffer.from(sig.hmac_sha256, \'hex\')/n )/n ) {/n console.error(\'Invalid signature\')/n return false/n }/n/n if (parseInt(sig.t, 10) < Date.now() / 1000 - 300 /* 5 minutes */) {/n console.error(\'Request is too old\')/n return false/n }/n/n return true/n}/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n \'Content-Length\': reqBody.length,/n }/n/n const timeoutMs = 30_000/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: timeoutMs,/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n const respBody = []/n/n return new Promise((resolve, reject) => {/n const req = https.request(url, reqOptions, (res) => {/n if (res.statusCode && (res.statusCode < 200 || res.statusCode > 299)) {/n return reject(/n new Error(/n /"Netlify Graph return non-OK HTTP status code/" + res.statusCode,/n ),/n )/n }/n/n res.on(\'data\', (chunk) => respBody.push(chunk))/n/n res.on(\'end\', () => {/n const resString = buffer.Buffer.concat(respBody).toString()/n resolve(resString)/n })/n })/n/n req.on(\'error\', (error) => {/n console.error(\'Error making request to Netlify Graph:\', error)/n })/n/n req.on(\'timeout\', () => {/n req.destroy()/n reject(new Error(\'Request to Netlify Graph timed out\'))/n })/n/n req.write(reqBody)/n req.end()/n })/n}/n/n/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/nexport const verifyRequestSignature = (request) => {/n const event = request.event/n const secret = process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const signature = event.headers[\'x-netlify-graph-signature\']/n const body = event.body/n/n if (!secret) {/n console.error(/n \'NETLIFY_GRAPH_WEBHOOK_SECRET is not set, cannot verify incoming webhook request\'/n )/n return false/n }/n/n return verifySignature({ secret, signature, body: body || \'\' })/n}/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery,/n /**/n * A subscription with variables and a fragment to test code generation./n *//n subscribeToTestSubscription:subscribeToTestSubscription,/n /**/n * Verify the event body is signed securely, and then parse the result./n *//n parseAndVerifyTestSubscriptionEvent: parseAndVerifyTestSubscriptionEvent/n}/n/nexport default functions/n/nexport const handler = () => {/n // return a 401 json response/n return {/n statusCode: 401,/n body: JSON.stringify({/n message: \'Unauthorized\',/n }),/n }/n }"}' + +## netlify graph function library (+runtime) codegen [unknown-browser-javascript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n /n /n /n /n/n/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n }/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: 88888,/n body: reqBody/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n return fetch(url, reqOptions).then(response => response.text());/n}/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/n/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery/n}/n/nexport default functions/n/n"}' + +## netlify graph handler codegen [unknown-queryWithFragment-javascript-esm] + +> Snapshot 1 + + '"ListServicesQuery.js: import NetlifyGraph from /"./netlifyGraph/"/n/nexport const handler = async (event) => {/n // By default, all API calls use no authentication/n let accessToken;/n/n //// If you want to use the client\'s accessToken when making API calls on the user\'s behalf:/n // accessToken = event.headers[/"authorization/"]?.split(/" /")[1]/n/n //// If you want to use the API with your own access token:/n // accessToken = event.authlifyToken/n /n const eventBodyJson = JSON.parse(event.body || /"{}/");/n/n const nfToken = event.queryStringParameters?.nfToken;/n const siteId = event.queryStringParameters?.siteId;/n const logoStyle = event.queryStringParameters?.logoStyle;/n/n if (nfToken === undefined || nfToken === null || siteId === undefined || siteId === null) {/n return {/n statusCode: 422,/n body: JSON.stringify({/n error: \'You must supply parameters for: `nfToken`, `siteId`\'/n }),/n };/n }/n/n const { errors: ListServicesQueryErrors, data: ListServicesQueryData } =/n await NetlifyGraph.fetchListServicesQuery({ nfToken: nfToken, siteId: siteId, logoStyle: logoStyle }, {accessToken: accessToken});/n/n if (ListServicesQueryErrors) {/n console.error(JSON.stringify(ListServicesQueryErrors, null, 2));/n }/n/n console.log(JSON.stringify(ListServicesQueryData, null, 2));/n/n return {/n statusCode: 200,/n body: JSON.stringify({/n success: true,/n ListServicesQueryErrors: ListServicesQueryErrors,/n ListServicesQueryData: ListServicesQueryData/n }),/n headers: {/n \'content-type\': \'application/json\',/n },/n };/n};/n/n/** /n * Client-side invocations:/n * Call your Netlify function from the browser (after saving/n * the code to `ListServicesQuery.js`) with these helpers:/n *//n/n/**/nasync function fetchListServicesQuery(params) {/n const {nfToken, siteId, logoStyle} = params || {};/n const resp = await fetch(`/.netlify/functions/ListServicesQuery?nfToken=${nfToken}&siteId=${siteId}&logoStyle=${logoStyle}`,/n {/n method: /"GET/"/n });/n/n const text = await resp.text();/n/n return JSON.parse(text);/n}/n*//n"' + +## netlify graph function library (+runtime) codegen [#custom-node-typescript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n import buffer from /"buffer/"/n import crypto from /"crypto/"/n import https from /"https/"/n import process from /"process/"/n/nexport const verifySignature = (input) => {/n const secret = input.secret/n const body = input.body/n const signature = input.signature/n/n if (!signature) {/n console.error(\'Missing signature\')/n return false/n }/n/n const sig = {}/n for (const pair of signature.split(\',\')) {/n const [key, value] = pair.split(\'=\')/n sig[key] = value/n }/n/n if (!sig.t || !sig.hmac_sha256) {/n console.error(\'Invalid signature header\')/n return false/n }/n/n const hash = crypto/n .createHmac(\'sha256\', secret)/n .update(sig.t)/n .update(\'.\')/n .update(body)/n .digest(\'hex\')/n/n if (/n !crypto.timingSafeEqual(/n Buffer.from(hash, \'hex\'),/n Buffer.from(sig.hmac_sha256, \'hex\')/n )/n ) {/n console.error(\'Invalid signature\')/n return false/n }/n/n if (parseInt(sig.t, 10) < Date.now() / 1000 - 300 /* 5 minutes */) {/n console.error(\'Request is too old\')/n return false/n }/n/n return true/n}/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n \'Content-Length\': reqBody.length,/n }/n/n const timeoutMs = 30_000/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: timeoutMs,/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n const respBody = []/n/n return new Promise((resolve, reject) => {/n const req = https.request(url, reqOptions, (res) => {/n if (res.statusCode && (res.statusCode < 200 || res.statusCode > 299)) {/n return reject(/n new Error(/n /"Netlify Graph return non-OK HTTP status code/" + res.statusCode,/n ),/n )/n }/n/n res.on(\'data\', (chunk) => respBody.push(chunk))/n/n res.on(\'end\', () => {/n const resString = buffer.Buffer.concat(respBody).toString()/n resolve(resString)/n })/n })/n/n req.on(\'error\', (error) => {/n console.error(\'Error making request to Netlify Graph:\', error)/n })/n/n req.on(\'timeout\', () => {/n req.destroy()/n reject(new Error(\'Request to Netlify Graph timed out\'))/n })/n/n req.write(reqBody)/n req.end()/n })/n}/n/n/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/nexport const verifyRequestSignature = (request) => {/n const event = request.event/n const secret = process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const signature = event.headers[\'x-netlify-graph-signature\']/n const body = event.body/n/n if (!secret) {/n console.error(/n \'NETLIFY_GRAPH_WEBHOOK_SECRET is not set, cannot verify incoming webhook request\'/n )/n return false/n }/n/n return verifySignature({ secret, signature, body: body || \'\' })/n}/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery,/n /**/n * A subscription with variables and a fragment to test code generation./n *//n subscribeToTestSubscription:subscribeToTestSubscription,/n /**/n * Verify the event body is signed securely, and then parse the result./n *//n parseAndVerifyTestSubscriptionEvent: parseAndVerifyTestSubscriptionEvent/n}/n/nexport default functions/n/nexport const handler = () => {/n // return a 401 json response/n return {/n statusCode: 401,/n body: JSON.stringify({/n message: \'Unauthorized\',/n }),/n }/n }"}' + +## netlify graph function library (+runtime) codegen [#custom-browser-typescript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n /n /n /n /n/n/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n }/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: 88888,/n body: reqBody/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n return fetch(url, reqOptions).then(response => response.text());/n}/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/n/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery/n}/n/nexport default functions/n/n"}' + +## netlify graph handler codegen [#custom-queryWithFragment-typescript-esm] + +> Snapshot 1 + + '"ListServicesQuery.ts: import NetlifyGraph from /"./netlifyGraph/"/n/nexport const handler = async (event) => {/n // By default, all API calls use no authentication/n let accessToken;/n/n //// If you want to use the client\'s accessToken when making API calls on the user\'s behalf:/n // accessToken = event.headers[/"authorization/"]?.split(/" /")[1]/n/n //// If you want to use the API with your own access token:/n // accessToken = event.authlifyToken/n /n const eventBodyJson = JSON.parse(event.body || /"{}/");/n/n const nfToken = event.queryStringParameters?.nfToken;/n const siteId = event.queryStringParameters?.siteId;/n const logoStyle = event.queryStringParameters?.logoStyle;/n/n if (nfToken === undefined || nfToken === null || siteId === undefined || siteId === null) {/n return {/n statusCode: 422,/n body: JSON.stringify({/n error: \'You must supply parameters for: `nfToken`, `siteId`\'/n }),/n };/n }/n/n const { errors: ListServicesQueryErrors, data: ListServicesQueryData } =/n await NetlifyGraph.fetchListServicesQuery({ nfToken: nfToken, siteId: siteId, logoStyle: logoStyle }, {accessToken: accessToken});/n/n if (ListServicesQueryErrors) {/n console.error(JSON.stringify(ListServicesQueryErrors, null, 2));/n }/n/n console.log(JSON.stringify(ListServicesQueryData, null, 2));/n/n return {/n statusCode: 200,/n body: JSON.stringify({/n success: true,/n ListServicesQueryErrors: ListServicesQueryErrors,/n ListServicesQueryData: ListServicesQueryData/n }),/n headers: {/n \'content-type\': \'application/json\',/n },/n };/n};/n/n/** /n * Client-side invocations:/n * Call your Netlify function from the browser (after saving/n * the code to `ListServicesQuery.js`) with these helpers:/n *//n/n/**/nasync function fetchListServicesQuery(params) {/n const {nfToken, siteId, logoStyle} = params || {};/n const resp = await fetch(`/.netlify/functions/ListServicesQuery?nfToken=${nfToken}&siteId=${siteId}&logoStyle=${logoStyle}`,/n {/n method: /"GET/"/n });/n/n const text = await resp.text();/n/n return JSON.parse(text);/n}/n*//n"' + +## netlify graph function library (+runtime) codegen [Next.js-node-typescript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n import buffer from /"buffer/"/n import crypto from /"crypto/"/n import https from /"https/"/n import process from /"process/"/n/nexport const verifySignature = (input) => {/n const secret = input.secret/n const body = input.body/n const signature = input.signature/n/n if (!signature) {/n console.error(\'Missing signature\')/n return false/n }/n/n const sig = {}/n for (const pair of signature.split(\',\')) {/n const [key, value] = pair.split(\'=\')/n sig[key] = value/n }/n/n if (!sig.t || !sig.hmac_sha256) {/n console.error(\'Invalid signature header\')/n return false/n }/n/n const hash = crypto/n .createHmac(\'sha256\', secret)/n .update(sig.t)/n .update(\'.\')/n .update(body)/n .digest(\'hex\')/n/n if (/n !crypto.timingSafeEqual(/n Buffer.from(hash, \'hex\'),/n Buffer.from(sig.hmac_sha256, \'hex\')/n )/n ) {/n console.error(\'Invalid signature\')/n return false/n }/n/n if (parseInt(sig.t, 10) < Date.now() / 1000 - 300 /* 5 minutes */) {/n console.error(\'Request is too old\')/n return false/n }/n/n return true/n}/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n \'Content-Length\': reqBody.length,/n }/n/n const timeoutMs = 30_000/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: timeoutMs,/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n const respBody = []/n/n return new Promise((resolve, reject) => {/n const req = https.request(url, reqOptions, (res) => {/n if (res.statusCode && (res.statusCode < 200 || res.statusCode > 299)) {/n return reject(/n new Error(/n /"Netlify Graph return non-OK HTTP status code/" + res.statusCode,/n ),/n )/n }/n/n res.on(\'data\', (chunk) => respBody.push(chunk))/n/n res.on(\'end\', () => {/n const resString = buffer.Buffer.concat(respBody).toString()/n resolve(resString)/n })/n })/n/n req.on(\'error\', (error) => {/n console.error(\'Error making request to Netlify Graph:\', error)/n })/n/n req.on(\'timeout\', () => {/n req.destroy()/n reject(new Error(\'Request to Netlify Graph timed out\'))/n })/n/n req.write(reqBody)/n req.end()/n })/n}/n/n/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/nexport const verifyRequestSignature = (request) => {/n const event = request.event/n const secret = process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const signature = event.headers[\'x-netlify-graph-signature\']/n const body = event.body/n/n if (!secret) {/n console.error(/n \'NETLIFY_GRAPH_WEBHOOK_SECRET is not set, cannot verify incoming webhook request\'/n )/n return false/n }/n/n return verifySignature({ secret, signature, body: body || \'\' })/n}/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery,/n /**/n * A subscription with variables and a fragment to test code generation./n *//n subscribeToTestSubscription:subscribeToTestSubscription,/n /**/n * Verify the event body is signed securely, and then parse the result./n *//n parseAndVerifyTestSubscriptionEvent: parseAndVerifyTestSubscriptionEvent/n}/n/nexport default functions/n/nexport const handler = () => {/n // return a 401 json response/n return {/n statusCode: 401,/n body: JSON.stringify({/n message: \'Unauthorized\',/n }),/n }/n }"}' + +## netlify graph function library (+runtime) codegen [Next.js-browser-typescript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n /n /n /n /n/n/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n }/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: 88888,/n body: reqBody/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n return fetch(url, reqOptions).then(response => response.text());/n}/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/n/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery/n}/n/nexport default functions/n/n"}' + +## netlify graph handler codegen [Next.js-queryWithFragment-typescript-esm] + +> Snapshot 1 + + '"ListServicesQuery.ts: import type { NextApiRequest, NextApiResponse } from /"next/";/nimport NetlifyGraph from /"./netlifyGraph/";/n/nexport const handler = async (req: NextApiRequest, res: NextApiResponse) => {/n // By default, all API calls use no authentication/n let accessToken = null;/n/n //// If you want to use the client\'s accessToken when making API calls on the user\'s behalf:/n // accessToken = req.headers[/"authorization/"]?.split(/" /")[1];/n/n //// If you want to use the API with your own access token:/n // accessToken = process.env.ONEGRAPH_AUTHLIFY_TOKEN;/n /n const eventBodyJson = req.body || {};/n/n const nfToken = typeof req.query?.nfToken === \'string\' ? req.query?.nfToken : req.query?.nfToken[0];/n const siteId = typeof req.query?.siteId === \'string\' ? req.query?.siteId : req.query?.siteId[0];/n const logoStyle = typeof req.query?.logoStyle === \'string\' ? req.query?.logoStyle : req.query?.logoStyle[0];/n/n if (nfToken === undefined || nfToken === null || siteId === undefined || siteId === null) {/n return res.status(422).json({/n errors: [/"You must supply parameters for: `nfToken`, `siteId`/"],/n });/n }/n/n const { errors, data } = await NetlifyGraph.fetchListServicesQuery({ nfToken: nfToken, siteId: siteId, logoStyle: logoStyle }, {accessToken: accessToken}); /n/n if (errors) {/n console.error(JSON.stringify(errors, null, 2));/n }/n/n console.log(JSON.stringify(data, null, 2));/n/n res.setHeader(/"Content-Type/", /"application/json/");/n/n return res.status(200).json({/n errors, data/n });/n};/n/nexport default handler;/n/n/** /n * Client-side invocations:/n * Call your Netlify function from the browser with this helper:/n *//n/n/**/nasync function fetchListServicesQuery(params) {/n const {nfToken, siteId, logoStyle} = params || {};/n const resp = await fetch(`/api/ListServicesQuery?nfToken=${nfToken}&siteId=${siteId}&logoStyle=${logoStyle}`, {/n method: /"GET/"/n });/n/n const text = await resp.text();/n/n return JSON.parse(text);/n}/n*//-----------------/pages|ListServicesQueryForm.tsx: import Head from /"next/head/";/nimport React, { useState } from /"react/";/nimport { Auth } from \'netlify-graph-auth\';/nimport NetlifyGraphAuth = Auth.NetlifyGraphAuth;/n/nexport default function Form(props) {/n const isServer = typeof window === /"undefined/";/n const [formVariables, setFormVariables] = React.useState({});/n const [result, setResult] = useState(null);/n const [auth, setAuth] = useState(/n isServer/n ? null/n : new NetlifyGraphAuth({/n siteId: props.siteId,/n })/n );/n/n const submitForm = async () => {/n const res = await fetch(/"/api/ListServicesQuery/", {/n body: JSON.stringify(formVariables),/n headers: {/n /"Content-Type/": /"application/json/",/n ...auth?.authHeaders()/n },/n method: /"POST/"/n });/n/n const formResult = await res.json();/n setResult(formResult);/n };/n/n const needsLoginService = auth?.findMissingAuthServices(result)[0];/n/n return (/n
/n /n ListServicesQuery form/n /n
/n

{props.title}

/n
{ event.preventDefault(); submitForm() }}>/n value)} />/n value)} />/n /n /n
/n {needsLoginService ? (/n ) /n : null}/n
{JSON.stringify(formVariables, null, 2)}
/n
{JSON.stringify(result, null, 2)}
/n
/n
/n )/n}/n/nexport async function getServerSideProps(context) {/n const siteId = process.env.SITE_ID;/n if (!siteId) {/n throw new Error(/"SITE_ID environment variable is not set. Be sure to run `netlify link` before `netlify dev`/");/n }/n/n return {/n props: {/n title: /"ListServicesQuery form/",/n siteId: siteId/n }/n }/n}/n/nconst updateFormVariables = (setFormVariables, path, coerce) => {/n const setIn = (object, path, value) => {/n if (path.length === 1) {/n if (value === null) {/n delete object[path[0]];/n } else {/n object[path[0]] = value;/n }/n } else {/n if ([undefined, null].indexOf(object[path[0]]) > -1) {/n object[path[0]] = typeof path[1] === /"number/" ? [] : {};/n }/n setIn(object[path[0]], path.slice(1), value);/n }/n return object;/n };/n/n const formInputHandler = (event) => {/n // We parse the form input, coerce it to the correct type, and then update the form variables/n const rawValue = event.target.value;/n // We take a blank input to mean `null`/n const value = rawValue === /"/" ? null : rawValue;/n setFormVariables((oldFormVariables) => {/n const newValue = setIn(oldFormVariables, path, coerce(value));/n return { ...newValue };/n });/n };/n/n return formInputHandler;/n};/n"' + +## netlify graph function library (+runtime) codegen [Remix-node-typescript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n import buffer from /"buffer/"/n import crypto from /"crypto/"/n import https from /"https/"/n import process from /"process/"/n/nexport const verifySignature = (input) => {/n const secret = input.secret/n const body = input.body/n const signature = input.signature/n/n if (!signature) {/n console.error(\'Missing signature\')/n return false/n }/n/n const sig = {}/n for (const pair of signature.split(\',\')) {/n const [key, value] = pair.split(\'=\')/n sig[key] = value/n }/n/n if (!sig.t || !sig.hmac_sha256) {/n console.error(\'Invalid signature header\')/n return false/n }/n/n const hash = crypto/n .createHmac(\'sha256\', secret)/n .update(sig.t)/n .update(\'.\')/n .update(body)/n .digest(\'hex\')/n/n if (/n !crypto.timingSafeEqual(/n Buffer.from(hash, \'hex\'),/n Buffer.from(sig.hmac_sha256, \'hex\')/n )/n ) {/n console.error(\'Invalid signature\')/n return false/n }/n/n if (parseInt(sig.t, 10) < Date.now() / 1000 - 300 /* 5 minutes */) {/n console.error(\'Request is too old\')/n return false/n }/n/n return true/n}/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n \'Content-Length\': reqBody.length,/n }/n/n const timeoutMs = 30_000/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: timeoutMs,/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n const respBody = []/n/n return new Promise((resolve, reject) => {/n const req = https.request(url, reqOptions, (res) => {/n if (res.statusCode && (res.statusCode < 200 || res.statusCode > 299)) {/n return reject(/n new Error(/n /"Netlify Graph return non-OK HTTP status code/" + res.statusCode,/n ),/n )/n }/n/n res.on(\'data\', (chunk) => respBody.push(chunk))/n/n res.on(\'end\', () => {/n const resString = buffer.Buffer.concat(respBody).toString()/n resolve(resString)/n })/n })/n/n req.on(\'error\', (error) => {/n console.error(\'Error making request to Netlify Graph:\', error)/n })/n/n req.on(\'timeout\', () => {/n req.destroy()/n reject(new Error(\'Request to Netlify Graph timed out\'))/n })/n/n req.write(reqBody)/n req.end()/n })/n}/n/n/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/nexport const verifyRequestSignature = (request) => {/n const event = request.event/n const secret = process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const signature = event.headers[\'x-netlify-graph-signature\']/n const body = event.body/n/n if (!secret) {/n console.error(/n \'NETLIFY_GRAPH_WEBHOOK_SECRET is not set, cannot verify incoming webhook request\'/n )/n return false/n }/n/n return verifySignature({ secret, signature, body: body || \'\' })/n}/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery,/n /**/n * A subscription with variables and a fragment to test code generation./n *//n subscribeToTestSubscription:subscribeToTestSubscription,/n /**/n * Verify the event body is signed securely, and then parse the result./n *//n parseAndVerifyTestSubscriptionEvent: parseAndVerifyTestSubscriptionEvent/n}/n/nexport default functions/n/nexport const handler = () => {/n // return a 401 json response/n return {/n statusCode: 401,/n body: JSON.stringify({/n message: \'Unauthorized\',/n }),/n }/n }"}' + +## netlify graph function library (+runtime) codegen [Remix-browser-typescript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n /n /n /n /n/n/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n }/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: 88888,/n body: reqBody/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n return fetch(url, reqOptions).then(response => response.text());/n}/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/n/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery/n}/n/nexport default functions/n/n"}' + +## netlify graph handler codegen [Remix-queryWithFragment-typescript-esm] + +> Snapshot 1 + + '"app|routes|ListServicesQuery.tsx: import { json, Form, useActionData, useTransition } from /"remix/";/nimport type { ActionFunction } from /"remix/";/nimport NetlifyGraph from /".,netlifyGraph/";/nimport invariant from /"tiny-invariant/";/n/nexport const action: ActionFunction = async ({ request }) => {/n const formData = await request.formData();/n/n // By default, all API calls use no authentication/n let accessToken;/n/n //// If you want to use the API with your own access token:/n // accessToken = authlifyToken;/n/n const nfTokenFormValue = formData.get(/"nfToken/");/ninvariant(typeof nfTokenFormValue === /"string/");/nconst nfToken = nfTokenFormValue;/n/n const siteIdFormValue = formData.get(/"siteId/");/ninvariant(typeof siteIdFormValue === /"string/");/nconst siteId = siteIdFormValue;/n/n const logoStyleFormValue = formData.get(/"logoStyle/");/ninvariant(typeof logoStyleFormValue === /"string/");/nconst logoStyle = logoStyleFormValue;/n/n/n if (nfToken === undefined || nfToken === null || siteId === undefined || siteId === null) {/n return json(/n {/n errors: [/"You must supply parameters for: `nfToken`, `siteId`/"],/n },/n { status: 422 }/n );/n }/n/n const { errors, data } = await NetlifyGraph.fetchListServicesQuery({ nfToken: nfToken, siteId: siteId, logoStyle: logoStyle }, {accessToken: accessToken});/n/n if (errors) {/n console.error(JSON.stringify(errors, null, 2));/n }/n/n console.log(JSON.stringify(data, null, 2));/n/n return json({ data, errors });/n};/n/nexport default function handler() {/n const results = useActionData();/n const transition = useTransition();/n/n const errors = results?.errors;/n const data: NetlifyGraph.ListServicesQuery[/"data/"] = results?.data;/n/n/n return (/n
/n

/n

/n

/n

/n /n

/n/n {errors ? (
{JSON.stringify(errors, null, 2)}
) : null}/n {data ? (
{JSON.stringify(data, null, 2)}
) : null}/n
/n );/n}/n"' + +## netlify graph function library (+runtime) codegen [unknown-node-typescript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n import buffer from /"buffer/"/n import crypto from /"crypto/"/n import https from /"https/"/n import process from /"process/"/n/nexport const verifySignature = (input) => {/n const secret = input.secret/n const body = input.body/n const signature = input.signature/n/n if (!signature) {/n console.error(\'Missing signature\')/n return false/n }/n/n const sig = {}/n for (const pair of signature.split(\',\')) {/n const [key, value] = pair.split(\'=\')/n sig[key] = value/n }/n/n if (!sig.t || !sig.hmac_sha256) {/n console.error(\'Invalid signature header\')/n return false/n }/n/n const hash = crypto/n .createHmac(\'sha256\', secret)/n .update(sig.t)/n .update(\'.\')/n .update(body)/n .digest(\'hex\')/n/n if (/n !crypto.timingSafeEqual(/n Buffer.from(hash, \'hex\'),/n Buffer.from(sig.hmac_sha256, \'hex\')/n )/n ) {/n console.error(\'Invalid signature\')/n return false/n }/n/n if (parseInt(sig.t, 10) < Date.now() / 1000 - 300 /* 5 minutes */) {/n console.error(\'Request is too old\')/n return false/n }/n/n return true/n}/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n \'Content-Length\': reqBody.length,/n }/n/n const timeoutMs = 30_000/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: timeoutMs,/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n const respBody = []/n/n return new Promise((resolve, reject) => {/n const req = https.request(url, reqOptions, (res) => {/n if (res.statusCode && (res.statusCode < 200 || res.statusCode > 299)) {/n return reject(/n new Error(/n /"Netlify Graph return non-OK HTTP status code/" + res.statusCode,/n ),/n )/n }/n/n res.on(\'data\', (chunk) => respBody.push(chunk))/n/n res.on(\'end\', () => {/n const resString = buffer.Buffer.concat(respBody).toString()/n resolve(resString)/n })/n })/n/n req.on(\'error\', (error) => {/n console.error(\'Error making request to Netlify Graph:\', error)/n })/n/n req.on(\'timeout\', () => {/n req.destroy()/n reject(new Error(\'Request to Netlify Graph timed out\'))/n })/n/n req.write(reqBody)/n req.end()/n })/n}/n/n/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/nexport const verifyRequestSignature = (request) => {/n const event = request.event/n const secret = process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const signature = event.headers[\'x-netlify-graph-signature\']/n const body = event.body/n/n if (!secret) {/n console.error(/n \'NETLIFY_GRAPH_WEBHOOK_SECRET is not set, cannot verify incoming webhook request\'/n )/n return false/n }/n/n return verifySignature({ secret, signature, body: body || \'\' })/n}/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery,/n /**/n * A subscription with variables and a fragment to test code generation./n *//n subscribeToTestSubscription:subscribeToTestSubscription,/n /**/n * Verify the event body is signed securely, and then parse the result./n *//n parseAndVerifyTestSubscriptionEvent: parseAndVerifyTestSubscriptionEvent/n}/n/nexport default functions/n/nexport const handler = () => {/n // return a 401 json response/n return {/n statusCode: 401,/n body: JSON.stringify({/n message: \'Unauthorized\',/n }),/n }/n }"}' + +## netlify graph function library (+runtime) codegen [unknown-browser-typescript-esm] + +> Snapshot 1 + + '{"functionDefinitions":[{"id":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","operationString":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","description":"Update a service\'s (i.e. GitHub) enabled scope permissions","fnName":"executeAddAuthsMutation ","safeBody":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddAuthsMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAuthsMutation","loc":{"start":9,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":27,"end":33}},"loc":{"start":26,"end":33}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":35,"end":41}},"loc":{"start":35,"end":41}},"loc":{"start":35,"end":42}},"directives":[],"loc":{"start":26,"end":42}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":45,"end":60}},"loc":{"start":44,"end":60}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"directives":[],"loc":{"start":44,"end":68}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":71,"end":77}},"loc":{"start":70,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":70,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":89,"end":96}},"loc":{"start":88,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":98,"end":104}},"loc":{"start":98,"end":104}},"loc":{"start":98,"end":105}},"directives":[],"loc":{"start":88,"end":105}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":108,"end":115}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":116,"end":118}},"value":{"kind":"StringValue","value":"47c6abec-7e34-4ec1-ae7d-b8888828b0ce","block":true,"loc":{"start":120,"end":162}},"loc":{"start":116,"end":162}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":164,"end":167}},"value":{"kind":"StringValue","value":"Update a service\'s (i.e. GitHub) enabled scope permissions","block":true,"loc":{"start":169,"end":233}},"loc":{"start":164,"end":233}}],"loc":{"start":107,"end":234}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":239,"end":247}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAuthsToPersonalToken","loc":{"start":254,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":285,"end":290}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":293,"end":303}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":306,"end":317}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":320,"end":330}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":333,"end":340}},"loc":{"start":332,"end":340}},"loc":{"start":320,"end":340}}],"loc":{"start":319,"end":341}},"loc":{"start":306,"end":341}}],"loc":{"start":305,"end":342}},"loc":{"start":293,"end":342}},{"kind":"ObjectField","name":{"kind":"Name","value":"sacrificialToken","loc":{"start":344,"end":360}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sToken","loc":{"start":363,"end":369}},"loc":{"start":362,"end":369}},"loc":{"start":344,"end":369}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":371,"end":386}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":389,"end":404}},"loc":{"start":388,"end":404}},"loc":{"start":371,"end":404}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":406,"end":411}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":414,"end":420}},"loc":{"start":413,"end":420}},"loc":{"start":406,"end":420}}],"loc":{"start":292,"end":421}},"loc":{"start":285,"end":421}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":436,"end":447}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":458,"end":467}},"arguments":[],"directives":[],"loc":{"start":458,"end":467}},{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":476,"end":481}},"arguments":[],"directives":[],"loc":{"start":476,"end":481}}],"loc":{"start":448,"end":489}},"loc":{"start":436,"end":489}}],"loc":{"start":428,"end":495}},"loc":{"start":254,"end":495}}],"loc":{"start":248,"end":499}},"loc":{"start":239,"end":499}}],"loc":{"start":235,"end":501}},"loc":{"start":0,"end":501}},"operationStringWithoutNetlifyDirective":"mutation AddAuthsMutation($siteId: String!, $authlifyTokenId: String, $sToken: String!, $nfToken: String!) {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Add additional allowed CORS origins for calls to a site\'s Graph.","fnName":"executeAddCORSOriginMutation ","safeBody":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AddCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddCORSOriginMutation","loc":{"start":9,"end":30}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":32,"end":39}},"loc":{"start":31,"end":39}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":41,"end":47}},"loc":{"start":41,"end":47}},"loc":{"start":41,"end":48}},"directives":[],"loc":{"start":31,"end":48}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":51,"end":56}},"loc":{"start":50,"end":56}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAddCORSOriginToAppInput","loc":{"start":58,"end":89}},"loc":{"start":58,"end":89}},"loc":{"start":58,"end":90}},"directives":[],"loc":{"start":50,"end":90}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":93,"end":100}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":101,"end":103}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":105,"end":147}},"loc":{"start":101,"end":147}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":149,"end":152}},"value":{"kind":"StringValue","value":"Add additional allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":154,"end":224}},"loc":{"start":149,"end":224}}],"loc":{"start":92,"end":225}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":230,"end":238}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":239,"end":244}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":247,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":261,"end":271}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":274,"end":281}},"loc":{"start":273,"end":281}},"loc":{"start":261,"end":281}}],"loc":{"start":260,"end":282}},"loc":{"start":247,"end":282}}],"loc":{"start":246,"end":283}},"loc":{"start":239,"end":283}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addCORSOriginToApp","loc":{"start":291,"end":309}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":310,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":318,"end":323}},"loc":{"start":317,"end":323}},"loc":{"start":310,"end":323}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":333,"end":336}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":350,"end":371}},"directives":[],"loc":{"start":347,"end":371}}],"loc":{"start":337,"end":379}},"loc":{"start":333,"end":379}}],"loc":{"start":325,"end":385}},"loc":{"start":291,"end":385}}],"loc":{"start":285,"end":389}},"loc":{"start":230,"end":389}}],"loc":{"start":226,"end":391}},"loc":{"start":0,"end":391}},"operationStringWithoutNetlifyDirective":"mutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","operationString":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","description":"Create a new session for the Netlify CLI to communicate with the React UI via events.","fnName":"executeCreateCLISessionEventMutation ","safeBody":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"payload/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateCLISessionEventMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCLISessionEventMutation","loc":{"start":9,"end":38}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":40,"end":47}},"loc":{"start":39,"end":47}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":49,"end":55}},"loc":{"start":49,"end":55}},"loc":{"start":49,"end":56}},"directives":[],"loc":{"start":39,"end":56}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":59,"end":68}},"loc":{"start":58,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":58,"end":77}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":80,"end":87}},"loc":{"start":79,"end":87}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":89,"end":93}},"loc":{"start":89,"end":93}},"loc":{"start":89,"end":94}},"directives":[],"loc":{"start":79,"end":94}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":97,"end":104}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":105,"end":107}},"value":{"kind":"StringValue","value":"6f42e462-7cbf-4d95-880b-16eb55ed7a1a","block":true,"loc":{"start":109,"end":151}},"loc":{"start":105,"end":151}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":153,"end":156}},"value":{"kind":"StringValue","value":"Create a new session for the Netlify CLI to communicate with the React UI via events.","block":true,"loc":{"start":158,"end":249}},"loc":{"start":153,"end":249}}],"loc":{"start":96,"end":250}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":255,"end":263}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":264,"end":269}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":272,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":286,"end":296}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":299,"end":306}},"loc":{"start":298,"end":306}},"loc":{"start":286,"end":306}}],"loc":{"start":285,"end":307}},"loc":{"start":272,"end":307}}],"loc":{"start":271,"end":308}},"loc":{"start":264,"end":308}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNetlifyCliTestEvent","loc":{"start":316,"end":341}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":349,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"data","loc":{"start":357,"end":361}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"payload","loc":{"start":364,"end":371}},"value":{"kind":"Variable","name":{"kind":"Name","value":"payload","loc":{"start":374,"end":381}},"loc":{"start":373,"end":381}},"loc":{"start":364,"end":381}}],"loc":{"start":363,"end":382}},"loc":{"start":357,"end":382}},{"kind":"ObjectField","name":{"kind":"Name","value":"sessionId","loc":{"start":384,"end":393}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":396,"end":405}},"loc":{"start":395,"end":405}},"loc":{"start":384,"end":405}}],"loc":{"start":356,"end":406}},"loc":{"start":349,"end":406}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event","loc":{"start":421,"end":426}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":437,"end":439}},"arguments":[],"directives":[],"loc":{"start":437,"end":439}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":448,"end":457}},"arguments":[],"directives":[],"loc":{"start":448,"end":457}},{"kind":"Field","name":{"kind":"Name","value":"sessionId","loc":{"start":466,"end":475}},"arguments":[],"directives":[],"loc":{"start":466,"end":475}}],"loc":{"start":427,"end":483}},"loc":{"start":421,"end":483}}],"loc":{"start":413,"end":489}},"loc":{"start":316,"end":489}}],"loc":{"start":310,"end":493}},"loc":{"start":255,"end":493}}],"loc":{"start":251,"end":495}},"loc":{"start":0,"end":495}},"operationStringWithoutNetlifyDirective":"mutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}"},{"id":"a88888f1-014c-4413-8a7d-b188c4dd5f55","operationString":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","description":"Create a new OneGraph personal token for a user\'s site","fnName":"executeCreateEmptyPersonalTokenMutation ","safeBody":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateEmptyPersonalTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyPersonalTokenMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":62,"end":68}},"loc":{"start":61,"end":68}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":70,"end":76}},"loc":{"start":70,"end":76}},"loc":{"start":70,"end":77}},"directives":[],"loc":{"start":61,"end":77}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":80,"end":87}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":88,"end":90}},"value":{"kind":"StringValue","value":"a88888f1-014c-4413-8a7d-b188c4dd5f55","block":true,"loc":{"start":92,"end":134}},"loc":{"start":88,"end":134}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":136,"end":139}},"value":{"kind":"StringValue","value":"Create a new OneGraph personal token for a user\'s site","block":true,"loc":{"start":141,"end":201}},"loc":{"start":136,"end":201}}],"loc":{"start":79,"end":202}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":207,"end":215}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":216,"end":221}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":224,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":238,"end":248}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":251,"end":258}},"loc":{"start":250,"end":258}},"loc":{"start":238,"end":258}}],"loc":{"start":237,"end":259}},"loc":{"start":224,"end":259}}],"loc":{"start":223,"end":260}},"loc":{"start":216,"end":260}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersonalTokenWithNetlifySiteAnchor","loc":{"start":268,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":316,"end":321}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"name","loc":{"start":324,"end":328}},"value":{"kind":"StringValue","value":"Netlify AuthManager Token","block":false,"loc":{"start":330,"end":357}},"loc":{"start":324,"end":357}},{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":359,"end":372}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":375,"end":381}},"loc":{"start":374,"end":381}},"loc":{"start":359,"end":381}}],"loc":{"start":323,"end":382}},"loc":{"start":316,"end":382}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken","loc":{"start":397,"end":408}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token","loc":{"start":419,"end":424}},"arguments":[],"directives":[],"loc":{"start":419,"end":424}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":433,"end":437}},"arguments":[],"directives":[],"loc":{"start":433,"end":437}},{"kind":"Field","name":{"kind":"Name","value":"anchor","loc":{"start":446,"end":452}},"arguments":[],"directives":[],"loc":{"start":446,"end":452}},{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":461,"end":470}},"arguments":[],"directives":[],"loc":{"start":461,"end":470}}],"loc":{"start":409,"end":478}},"loc":{"start":397,"end":478}}],"loc":{"start":389,"end":484}},"loc":{"start":268,"end":484}}],"loc":{"start":262,"end":488}},"loc":{"start":207,"end":488}}],"loc":{"start":203,"end":490}},"loc":{"start":0,"end":490}},"operationStringWithoutNetlifyDirective":"mutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}"},{"id":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","operationString":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","description":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","fnName":"executeCreateNewSchemaMutation ","safeBody":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreateNewSchemaMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateNewSchemaMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":34,"end":41}},"loc":{"start":33,"end":41}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":43,"end":49}},"loc":{"start":43,"end":49}},"loc":{"start":43,"end":50}},"directives":[],"loc":{"start":33,"end":50}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":53,"end":58}},"loc":{"start":52,"end":58}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreateGraphQLSchemaInput","loc":{"start":60,"end":92}},"loc":{"start":60,"end":92}},"loc":{"start":60,"end":93}},"directives":[],"loc":{"start":52,"end":93}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":96,"end":103}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":104,"end":106}},"value":{"kind":"StringValue","value":"4fc2298a-225b-4329-b3f3-a8f8bc0513a8","block":true,"loc":{"start":108,"end":150}},"loc":{"start":104,"end":150}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":152,"end":155}},"value":{"kind":"StringValue","value":"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use.","block":true,"loc":{"start":157,"end":359}},"loc":{"start":152,"end":359}}],"loc":{"start":95,"end":360}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":365,"end":373}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":374,"end":379}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":382,"end":393}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":396,"end":406}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":409,"end":416}},"loc":{"start":408,"end":416}},"loc":{"start":396,"end":416}}],"loc":{"start":395,"end":417}},"loc":{"start":382,"end":417}}],"loc":{"start":381,"end":418}},"loc":{"start":374,"end":418}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createGraphQLSchema","loc":{"start":426,"end":445}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":446,"end":451}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":454,"end":459}},"loc":{"start":453,"end":459}},"loc":{"start":446,"end":459}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":469,"end":472}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":483,"end":496}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":509,"end":511}},"arguments":[],"directives":[],"loc":{"start":509,"end":511}}],"loc":{"start":497,"end":521}},"loc":{"start":483,"end":521}}],"loc":{"start":473,"end":529}},"loc":{"start":469,"end":529}},{"kind":"Field","name":{"kind":"Name","value":"graphqlSchema","loc":{"start":536,"end":549}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":560,"end":562}},"arguments":[],"directives":[],"loc":{"start":560,"end":562}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":571,"end":579}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":592,"end":611}},"arguments":[],"directives":[],"loc":{"start":592,"end":611}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":622,"end":629}},"arguments":[],"directives":[],"loc":{"start":622,"end":629}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":640,"end":647}},"arguments":[],"directives":[],"loc":{"start":640,"end":647}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":658,"end":662}},"arguments":[],"directives":[],"loc":{"start":658,"end":662}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":673,"end":698}},"arguments":[],"directives":[],"loc":{"start":673,"end":698}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":709,"end":734}},"arguments":[],"directives":[],"loc":{"start":709,"end":734}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":745,"end":763}},"arguments":[],"directives":[],"loc":{"start":745,"end":763}}],"loc":{"start":580,"end":773}},"loc":{"start":571,"end":773}}],"loc":{"start":550,"end":781}},"loc":{"start":536,"end":781}}],"loc":{"start":461,"end":787}},"loc":{"start":426,"end":787}}],"loc":{"start":420,"end":791}},"loc":{"start":365,"end":791}}],"loc":{"start":361,"end":793}},"loc":{"start":0,"end":793}},"operationStringWithoutNetlifyDirective":"mutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}"},{"id":"5e888884-a316-4060-955c-85b1f8898c29","operationString":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","description":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","fnName":"executeCreatePersistedQueryMutation ","safeBody":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CreatePersistedQueryMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePersistedQueryMutation","loc":{"start":9,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":39,"end":46}},"loc":{"start":38,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":38,"end":55}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":58,"end":63}},"loc":{"start":57,"end":63}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":65,"end":71}},"loc":{"start":65,"end":71}},"loc":{"start":65,"end":72}},"directives":[],"loc":{"start":57,"end":72}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":75,"end":80}},"loc":{"start":74,"end":80}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":82,"end":88}},"loc":{"start":82,"end":88}},"loc":{"start":82,"end":89}},"directives":[],"loc":{"start":74,"end":89}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":92,"end":96}},"loc":{"start":91,"end":96}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":99,"end":105}},"loc":{"start":99,"end":105}},"loc":{"start":99,"end":106}},"loc":{"start":98,"end":107}},"loc":{"start":98,"end":108}},"directives":[],"loc":{"start":91,"end":108}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":111,"end":122}},"loc":{"start":110,"end":122}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":124,"end":130}},"loc":{"start":124,"end":130}},"loc":{"start":124,"end":131}},"directives":[],"loc":{"start":110,"end":131}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":134,"end":140}},"loc":{"start":133,"end":140}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCreatePersistedQueryParentInput","loc":{"start":142,"end":181}},"loc":{"start":142,"end":181}},"directives":[],"loc":{"start":133,"end":181}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":184,"end":191}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":192,"end":194}},"value":{"kind":"StringValue","value":"5e888884-a316-4060-955c-85b1f8898c29","block":true,"loc":{"start":196,"end":238}},"loc":{"start":192,"end":238}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":240,"end":243}},"value":{"kind":"StringValue","value":"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution.","block":true,"loc":{"start":245,"end":406}},"loc":{"start":240,"end":406}}],"loc":{"start":183,"end":407}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":412,"end":420}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":421,"end":426}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":429,"end":440}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":443,"end":453}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":456,"end":463}},"loc":{"start":455,"end":463}},"loc":{"start":443,"end":463}}],"loc":{"start":442,"end":464}},"loc":{"start":429,"end":464}}],"loc":{"start":428,"end":465}},"loc":{"start":421,"end":465}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPersistedQuery","loc":{"start":473,"end":493}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":501,"end":506}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"query","loc":{"start":509,"end":514}},"value":{"kind":"Variable","name":{"kind":"Name","value":"query","loc":{"start":517,"end":522}},"loc":{"start":516,"end":522}},"loc":{"start":509,"end":522}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":524,"end":529}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":532,"end":537}},"loc":{"start":531,"end":537}},"loc":{"start":524,"end":537}},{"kind":"ObjectField","name":{"kind":"Name","value":"tags","loc":{"start":539,"end":543}},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags","loc":{"start":546,"end":550}},"loc":{"start":545,"end":550}},"loc":{"start":539,"end":550}},{"kind":"ObjectField","name":{"kind":"Name","value":"description","loc":{"start":552,"end":563}},"value":{"kind":"Variable","name":{"kind":"Name","value":"description","loc":{"start":566,"end":577}},"loc":{"start":565,"end":577}},"loc":{"start":552,"end":577}},{"kind":"ObjectField","name":{"kind":"Name","value":"parent","loc":{"start":579,"end":585}},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent","loc":{"start":588,"end":594}},"loc":{"start":587,"end":594}},"loc":{"start":579,"end":594}}],"loc":{"start":508,"end":595}},"loc":{"start":501,"end":595}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":610,"end":624}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":635,"end":637}},"arguments":[],"directives":[],"loc":{"start":635,"end":637}}],"loc":{"start":625,"end":645}},"loc":{"start":610,"end":645}}],"loc":{"start":602,"end":651}},"loc":{"start":473,"end":651}}],"loc":{"start":467,"end":655}},"loc":{"start":412,"end":655}}],"loc":{"start":408,"end":657}},"loc":{"start":0,"end":657}},"operationStringWithoutNetlifyDirective":"mutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}"},{"id":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","operationString":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Delete a custom service auth","fnName":"executeDeleteServiceAuthMutation ","safeBody":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DeleteServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteServiceAuthMutation","loc":{"start":9,"end":34}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":36,"end":42}},"loc":{"start":35,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":35,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":54,"end":67}},"loc":{"start":53,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":53,"end":76}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":79,"end":86}},"loc":{"start":78,"end":86}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":88,"end":94}},"loc":{"start":88,"end":94}},"loc":{"start":88,"end":95}},"directives":[],"loc":{"start":78,"end":95}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":98,"end":105}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":106,"end":108}},"value":{"kind":"StringValue","value":"5c7bb879-a810-4a7e-8aec-55d05fd9c172","block":true,"loc":{"start":110,"end":152}},"loc":{"start":106,"end":152}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":154,"end":157}},"value":{"kind":"StringValue","value":"Delete a custom service auth","block":true,"loc":{"start":159,"end":193}},"loc":{"start":154,"end":193}}],"loc":{"start":97,"end":194}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":199,"end":207}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":208,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":216,"end":227}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":230,"end":240}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":243,"end":250}},"loc":{"start":242,"end":250}},"loc":{"start":230,"end":250}}],"loc":{"start":229,"end":251}},"loc":{"start":216,"end":251}}],"loc":{"start":215,"end":252}},"loc":{"start":208,"end":252}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyServiceAuth","loc":{"start":260,"end":278}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":279,"end":283}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":286,"end":291}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":294,"end":300}},"loc":{"start":293,"end":300}},"loc":{"start":286,"end":300}},{"kind":"ObjectField","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":302,"end":315}},"value":{"kind":"Variable","name":{"kind":"Name","value":"serviceAuthId","loc":{"start":318,"end":331}},"loc":{"start":317,"end":331}},"loc":{"start":302,"end":331}}],"loc":{"start":285,"end":332}},"loc":{"start":279,"end":332}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":342,"end":345}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":356,"end":368}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":384,"end":403}},"directives":[],"loc":{"start":381,"end":403}}],"loc":{"start":369,"end":413}},"loc":{"start":356,"end":413}}],"loc":{"start":346,"end":421}},"loc":{"start":342,"end":421}}],"loc":{"start":334,"end":427}},"loc":{"start":260,"end":427}}],"loc":{"start":254,"end":431}},"loc":{"start":199,"end":431}}],"loc":{"start":195,"end":433}},"loc":{"start":0,"end":433}},"operationStringWithoutNetlifyDirective":"mutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c34","operationString":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","description":"Delete a OneGraph personal token for a user\'s site","fnName":"executeDestroyTokenMutation ","safeBody":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"DestroyTokenMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyTokenMutation","loc":{"start":9,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"directives":[],"loc":{"start":49,"end":63}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":66,"end":81}},"loc":{"start":65,"end":81}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":83,"end":89}},"loc":{"start":83,"end":89}},"directives":[],"loc":{"start":65,"end":89}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":92,"end":99}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":100,"end":102}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c34","block":true,"loc":{"start":104,"end":146}},"loc":{"start":100,"end":146}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":148,"end":151}},"value":{"kind":"StringValue","value":"Delete a OneGraph personal token for a user\'s site","block":true,"loc":{"start":153,"end":209}},"loc":{"start":148,"end":209}}],"loc":{"start":91,"end":210}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":215,"end":223}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":224,"end":229}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":232,"end":243}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":246,"end":256}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":259,"end":266}},"loc":{"start":258,"end":266}},"loc":{"start":246,"end":266}}],"loc":{"start":245,"end":267}},"loc":{"start":232,"end":267}}],"loc":{"start":231,"end":268}},"loc":{"start":224,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyToken","loc":{"start":276,"end":288}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token","loc":{"start":289,"end":294}},"value":{"kind":"Variable","name":{"kind":"Name","value":"token","loc":{"start":297,"end":302}},"loc":{"start":296,"end":302}},"loc":{"start":289,"end":302}},{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":304,"end":319}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":322,"end":337}},"loc":{"start":321,"end":337}},"loc":{"start":304,"end":337}}],"directives":[],"loc":{"start":276,"end":338}}],"loc":{"start":270,"end":342}},"loc":{"start":215,"end":342}}],"loc":{"start":211,"end":344}},"loc":{"start":0,"end":344}},"operationStringWithoutNetlifyDirective":"mutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","description":"Remove the given CORS origins for calls to a site\'s Graph.","fnName":"executeRemoveCORSOriginMutation ","safeBody":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"RemoveCORSOriginMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCORSOriginMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":54,"end":59}},"loc":{"start":53,"end":59}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphRemoveCORSOriginFromAppInput","loc":{"start":61,"end":97}},"loc":{"start":61,"end":97}},"loc":{"start":61,"end":98}},"directives":[],"loc":{"start":53,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Remove the given CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":162,"end":226}},"loc":{"start":157,"end":226}}],"loc":{"start":100,"end":227}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":232,"end":240}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":241,"end":246}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":249,"end":260}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":263,"end":273}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":276,"end":283}},"loc":{"start":275,"end":283}},"loc":{"start":263,"end":283}}],"loc":{"start":262,"end":284}},"loc":{"start":249,"end":284}}],"loc":{"start":248,"end":285}},"loc":{"start":241,"end":285}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCORSOriginFromApp","loc":{"start":293,"end":316}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":317,"end":322}},"value":{"kind":"Variable","name":{"kind":"Name","value":"input","loc":{"start":325,"end":330}},"loc":{"start":324,"end":330}},"loc":{"start":317,"end":330}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":340,"end":343}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":357,"end":378}},"directives":[],"loc":{"start":354,"end":378}}],"loc":{"start":344,"end":386}},"loc":{"start":340,"end":386}}],"loc":{"start":332,"end":392}},"loc":{"start":293,"end":392}}],"loc":{"start":287,"end":396}},"loc":{"start":232,"end":396}}],"loc":{"start":228,"end":398}},"loc":{"start":0,"end":398}},"operationStringWithoutNetlifyDirective":"mutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}"},{"id":"694dfc01-3844-431d-9e56-7089c101fe08","operationString":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","description":"Create a custom service auth","fnName":"executeSetServiceAuthMutation ","safeBody":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SetServiceAuthMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetServiceAuthMutation","loc":{"start":9,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphCustomServiceAuthServiceEnum","loc":{"start":42,"end":78}},"loc":{"start":42,"end":78}},"loc":{"start":42,"end":79}},"directives":[],"loc":{"start":32,"end":79}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":82,"end":90}},"loc":{"start":81,"end":90}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":92,"end":98}},"loc":{"start":92,"end":98}},"loc":{"start":92,"end":99}},"directives":[],"loc":{"start":81,"end":99}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":102,"end":114}},"loc":{"start":101,"end":114}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":116,"end":122}},"loc":{"start":116,"end":122}},"loc":{"start":116,"end":123}},"directives":[],"loc":{"start":101,"end":123}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":126,"end":132}},"loc":{"start":125,"end":132}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":134,"end":140}},"loc":{"start":134,"end":140}},"loc":{"start":134,"end":141}},"directives":[],"loc":{"start":125,"end":141}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":144,"end":151}},"loc":{"start":143,"end":151}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":153,"end":159}},"loc":{"start":153,"end":159}},"loc":{"start":153,"end":160}},"directives":[],"loc":{"start":143,"end":160}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":163,"end":170}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":171,"end":173}},"value":{"kind":"StringValue","value":"694dfc01-3844-431d-9e56-7089c101fe08","block":true,"loc":{"start":175,"end":217}},"loc":{"start":171,"end":217}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":219,"end":222}},"value":{"kind":"StringValue","value":"Create a custom service auth","block":true,"loc":{"start":224,"end":258}},"loc":{"start":219,"end":258}}],"loc":{"start":162,"end":259}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":264,"end":272}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":273,"end":278}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":281,"end":292}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":295,"end":305}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":308,"end":315}},"loc":{"start":307,"end":315}},"loc":{"start":295,"end":315}}],"loc":{"start":294,"end":316}},"loc":{"start":281,"end":316}}],"loc":{"start":280,"end":317}},"loc":{"start":273,"end":317}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createServiceAuth","loc":{"start":325,"end":342}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":350,"end":354}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"service","loc":{"start":357,"end":364}},"value":{"kind":"Variable","name":{"kind":"Name","value":"service","loc":{"start":367,"end":374}},"loc":{"start":366,"end":374}},"loc":{"start":357,"end":374}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientId","loc":{"start":376,"end":384}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId","loc":{"start":387,"end":395}},"loc":{"start":386,"end":395}},"loc":{"start":376,"end":395}},{"kind":"ObjectField","name":{"kind":"Name","value":"clientSecret","loc":{"start":397,"end":409}},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientSecret","loc":{"start":412,"end":424}},"loc":{"start":411,"end":424}},"loc":{"start":397,"end":424}},{"kind":"ObjectField","name":{"kind":"Name","value":"appId","loc":{"start":426,"end":431}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":434,"end":440}},"loc":{"start":433,"end":440}},"loc":{"start":426,"end":440}},{"kind":"ObjectField","name":{"kind":"Name","value":"revealTokens","loc":{"start":442,"end":454}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":456,"end":460}},"loc":{"start":442,"end":460}}],"loc":{"start":356,"end":461}},"loc":{"start":350,"end":461}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":476,"end":479}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":490,"end":502}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":518,"end":537}},"directives":[],"loc":{"start":515,"end":537}}],"loc":{"start":503,"end":547}},"loc":{"start":490,"end":547}}],"loc":{"start":480,"end":555}},"loc":{"start":476,"end":555}}],"loc":{"start":468,"end":561}},"loc":{"start":325,"end":561}}],"loc":{"start":319,"end":565}},"loc":{"start":264,"end":565}}],"loc":{"start":260,"end":567}},"loc":{"start":0,"end":567}},"operationStringWithoutNetlifyDirective":"mutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}"},{"id":"3d069fc8-3a03-40c8-8637-ddcf88888c99","operationString":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Sign out of a service associated with a Authlify token","fnName":"executeSignOutServicesMutation ","safeBody":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"SignOutServicesMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutServicesMutation","loc":{"start":9,"end":32}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":34,"end":42}},"loc":{"start":33,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphServiceEnum","loc":{"start":45,"end":64}},"loc":{"start":45,"end":64}},"loc":{"start":45,"end":65}},"loc":{"start":44,"end":66}},"loc":{"start":44,"end":67}},"directives":[],"loc":{"start":33,"end":67}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":70,"end":77}},"loc":{"start":69,"end":77}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":79,"end":85}},"loc":{"start":79,"end":85}},"loc":{"start":79,"end":86}},"directives":[],"loc":{"start":69,"end":86}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":89,"end":104}},"loc":{"start":88,"end":104}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":106,"end":112}},"loc":{"start":106,"end":112}},"loc":{"start":106,"end":113}},"directives":[],"loc":{"start":88,"end":113}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":116,"end":123}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":124,"end":126}},"value":{"kind":"StringValue","value":"3d069fc8-3a03-40c8-8637-ddcf88888c99","block":true,"loc":{"start":128,"end":170}},"loc":{"start":124,"end":170}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":172,"end":175}},"value":{"kind":"StringValue","value":"Sign out of a service associated with a Authlify token","block":true,"loc":{"start":177,"end":237}},"loc":{"start":172,"end":237}}],"loc":{"start":115,"end":238}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signoutServices","loc":{"start":243,"end":258}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data","loc":{"start":264,"end":268}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"services","loc":{"start":271,"end":279}},"value":{"kind":"Variable","name":{"kind":"Name","value":"services","loc":{"start":282,"end":290}},"loc":{"start":281,"end":290}},"loc":{"start":271,"end":290}},{"kind":"ObjectField","name":{"kind":"Name","value":"anchorAuth","loc":{"start":292,"end":302}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":305,"end":316}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":319,"end":329}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":332,"end":339}},"loc":{"start":331,"end":339}},"loc":{"start":319,"end":339}}],"loc":{"start":318,"end":340}},"loc":{"start":305,"end":340}}],"loc":{"start":304,"end":341}},"loc":{"start":292,"end":341}},{"kind":"ObjectField","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":343,"end":358}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":361,"end":376}},"loc":{"start":360,"end":376}},"loc":{"start":343,"end":376}}],"loc":{"start":270,"end":377}},"loc":{"start":264,"end":377}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":388,"end":390}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":399,"end":414}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":425,"end":441}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":457,"end":481}},"directives":[],"loc":{"start":454,"end":481}}],"loc":{"start":442,"end":491}},"loc":{"start":425,"end":491}}],"loc":{"start":415,"end":499}},"loc":{"start":399,"end":499}}],"loc":{"start":391,"end":505}},"loc":{"start":388,"end":505}}],"loc":{"start":382,"end":509}},"loc":{"start":243,"end":509}}],"loc":{"start":239,"end":511}},"loc":{"start":0,"end":511}},"operationStringWithoutNetlifyDirective":"mutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","operationString":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","description":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","fnName":"executeUpdateCLISessionMetadataMutation ","safeBody":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpdateCLISessionMetadataMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCLISessionMetadataMutation","loc":{"start":9,"end":41}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":43,"end":50}},"loc":{"start":42,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":42,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":73,"end":79}},"loc":{"start":73,"end":79}},"loc":{"start":73,"end":80}},"directives":[],"loc":{"start":61,"end":80}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":83,"end":91}},"loc":{"start":82,"end":91}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON","loc":{"start":93,"end":97}},"loc":{"start":93,"end":97}},"loc":{"start":93,"end":98}},"directives":[],"loc":{"start":82,"end":98}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":101,"end":108}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":109,"end":111}},"value":{"kind":"StringValue","value":"16a58acb-8188-4a47-bc93-1f4a5ef805c0","block":true,"loc":{"start":113,"end":155}},"loc":{"start":109,"end":155}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":157,"end":160}},"value":{"kind":"StringValue","value":"Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`).","block":true,"loc":{"start":162,"end":255}},"loc":{"start":157,"end":255}}],"loc":{"start":100,"end":256}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":261,"end":269}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":270,"end":275}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":278,"end":289}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":292,"end":302}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":305,"end":312}},"loc":{"start":304,"end":312}},"loc":{"start":292,"end":312}}],"loc":{"start":291,"end":313}},"loc":{"start":278,"end":313}}],"loc":{"start":277,"end":314}},"loc":{"start":270,"end":314}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNetlifyCliSession","loc":{"start":322,"end":345}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":346,"end":351}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id","loc":{"start":354,"end":356}},"value":{"kind":"Variable","name":{"kind":"Name","value":"sessionId","loc":{"start":359,"end":368}},"loc":{"start":358,"end":368}},"loc":{"start":354,"end":368}},{"kind":"ObjectField","name":{"kind":"Name","value":"metadata","loc":{"start":370,"end":378}},"value":{"kind":"Variable","name":{"kind":"Name","value":"metadata","loc":{"start":381,"end":389}},"loc":{"start":380,"end":389}},"loc":{"start":370,"end":389}}],"loc":{"start":353,"end":390}},"loc":{"start":346,"end":390}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session","loc":{"start":400,"end":407}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":418,"end":420}},"arguments":[],"directives":[],"loc":{"start":418,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":429,"end":433}},"arguments":[],"directives":[],"loc":{"start":429,"end":433}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":442,"end":450}},"arguments":[],"directives":[],"loc":{"start":442,"end":450}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":459,"end":468}},"arguments":[],"directives":[],"loc":{"start":459,"end":468}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":477,"end":488}},"arguments":[],"directives":[],"loc":{"start":477,"end":488}}],"loc":{"start":408,"end":496}},"loc":{"start":400,"end":496}}],"loc":{"start":392,"end":502}},"loc":{"start":322,"end":502}}],"loc":{"start":316,"end":506}},"loc":{"start":261,"end":506}}],"loc":{"start":257,"end":508}},"loc":{"start":0,"end":508}},"operationStringWithoutNetlifyDirective":"mutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}"},{"id":"e3d3bb8b-2fb5-48d8-b051-db888882419f","operationString":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","description":"Ensure that an app resource exists on the OneGraph servers for a given site.","fnName":"executeUpsertAppForSiteMutation ","safeBody":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}","kind":"mutation","variableSignature":"{/"nfToken/": string; /"siteId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"UpsertAppForSiteMutation","parsedOperation":{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertAppForSiteMutation","loc":{"start":9,"end":33}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":35,"end":42}},"loc":{"start":34,"end":42}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":44,"end":50}},"loc":{"start":44,"end":50}},"loc":{"start":44,"end":51}},"directives":[],"loc":{"start":34,"end":51}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":54,"end":60}},"loc":{"start":53,"end":60}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":62,"end":68}},"loc":{"start":62,"end":68}},"loc":{"start":62,"end":69}},"directives":[],"loc":{"start":53,"end":69}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":72,"end":79}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":80,"end":82}},"value":{"kind":"StringValue","value":"e3d3bb8b-2fb5-48d8-b051-db888882419f","block":true,"loc":{"start":84,"end":126}},"loc":{"start":80,"end":126}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":128,"end":131}},"value":{"kind":"StringValue","value":"Ensure that an app resource exists on the OneGraph servers for a given site.","block":true,"loc":{"start":133,"end":215}},"loc":{"start":128,"end":215}}],"loc":{"start":71,"end":216}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":221,"end":229}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":230,"end":235}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":238,"end":249}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":252,"end":262}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":265,"end":272}},"loc":{"start":264,"end":272}},"loc":{"start":252,"end":272}}],"loc":{"start":251,"end":273}},"loc":{"start":238,"end":273}}],"loc":{"start":237,"end":274}},"loc":{"start":230,"end":274}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertAppForNetlifySite","loc":{"start":282,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input","loc":{"start":306,"end":311}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifySiteId","loc":{"start":314,"end":327}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":330,"end":336}},"loc":{"start":329,"end":336}},"loc":{"start":314,"end":336}}],"loc":{"start":313,"end":337}},"loc":{"start":306,"end":337}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"org","loc":{"start":347,"end":350}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":361,"end":363}},"arguments":[],"directives":[],"loc":{"start":361,"end":363}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":372,"end":376}},"arguments":[],"directives":[],"loc":{"start":372,"end":376}}],"loc":{"start":351,"end":384}},"loc":{"start":347,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":391,"end":394}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":405,"end":407}},"arguments":[],"directives":[],"loc":{"start":405,"end":407}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":416,"end":420}},"arguments":[],"directives":[],"loc":{"start":416,"end":420}},{"kind":"Field","name":{"kind":"Name","value":"corsOrigins","loc":{"start":429,"end":440}},"arguments":[],"directives":[],"loc":{"start":429,"end":440}},{"kind":"Field","name":{"kind":"Name","value":"customCorsOrigins","loc":{"start":449,"end":466}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":479,"end":498}},"arguments":[],"directives":[],"loc":{"start":479,"end":498}},{"kind":"Field","name":{"kind":"Name","value":"displayName","loc":{"start":509,"end":520}},"arguments":[],"directives":[],"loc":{"start":509,"end":520}},{"kind":"Field","name":{"kind":"Name","value":"encodedValue","loc":{"start":531,"end":543}},"arguments":[],"directives":[],"loc":{"start":531,"end":543}}],"loc":{"start":467,"end":553}},"loc":{"start":449,"end":553}}],"loc":{"start":395,"end":561}},"loc":{"start":391,"end":561}}],"loc":{"start":339,"end":567}},"loc":{"start":282,"end":567}}],"loc":{"start":276,"end":571}},"loc":{"start":221,"end":571}}],"loc":{"start":217,"end":573}},"loc":{"start":0,"end":573}},"operationStringWithoutNetlifyDirective":"mutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}"},{"id":"30aeff10-e743-473e-bae0-438a88888edc","operationString":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","description":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","fnName":"fetchAppSchemaQuery","safeBody":"query AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AppSchemaQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSchemaQuery","loc":{"start":6,"end":20}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":22,"end":29}},"loc":{"start":21,"end":29}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":31,"end":37}},"loc":{"start":31,"end":37}},"loc":{"start":31,"end":38}},"directives":[],"loc":{"start":21,"end":38}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":41,"end":46}},"loc":{"start":40,"end":46}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":48,"end":54}},"loc":{"start":48,"end":54}},"loc":{"start":48,"end":55}},"directives":[],"loc":{"start":40,"end":55}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":58,"end":65}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":66,"end":68}},"value":{"kind":"StringValue","value":"30aeff10-e743-473e-bae0-438a88888edc","block":true,"loc":{"start":70,"end":112}},"loc":{"start":66,"end":112}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":114,"end":117}},"value":{"kind":"StringValue","value":"Get the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc.","block":true,"loc":{"start":119,"end":238}},"loc":{"start":114,"end":238}}],"loc":{"start":57,"end":239}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":244,"end":252}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":253,"end":258}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":261,"end":272}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":275,"end":285}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":288,"end":295}},"loc":{"start":287,"end":295}},"loc":{"start":275,"end":295}}],"loc":{"start":274,"end":296}},"loc":{"start":261,"end":296}}],"loc":{"start":260,"end":297}},"loc":{"start":253,"end":297}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":305,"end":308}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":309,"end":311}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":314,"end":319}},"loc":{"start":313,"end":319}},"loc":{"start":309,"end":319}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphQLSchema","loc":{"start":329,"end":342}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appId","loc":{"start":353,"end":358}},"arguments":[],"directives":[],"loc":{"start":353,"end":358}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":367,"end":376}},"arguments":[],"directives":[],"loc":{"start":367,"end":376}},{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":385,"end":387}},"arguments":[],"directives":[],"loc":{"start":385,"end":387}},{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":396,"end":404}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":417,"end":436}},"arguments":[],"directives":[],"loc":{"start":417,"end":436}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":447,"end":454}},"arguments":[],"directives":[],"loc":{"start":447,"end":454}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":483,"end":487}},"arguments":[],"directives":[],"loc":{"start":483,"end":487}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":498,"end":523}},"arguments":[],"directives":[],"loc":{"start":498,"end":523}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":534,"end":559}},"arguments":[],"directives":[],"loc":{"start":534,"end":559}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":570,"end":588}},"arguments":[],"directives":[],"loc":{"start":570,"end":588}}],"loc":{"start":405,"end":598}},"loc":{"start":396,"end":598}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt","loc":{"start":607,"end":616}},"arguments":[],"directives":[],"loc":{"start":607,"end":616}}],"loc":{"start":343,"end":624}},"loc":{"start":329,"end":624}}],"loc":{"start":321,"end":630}},"loc":{"start":305,"end":630}}],"loc":{"start":299,"end":634}},"loc":{"start":244,"end":634}}],"loc":{"start":240,"end":636}},"loc":{"start":0,"end":636}},"operationStringWithoutNetlifyDirective":"query AppSchemaQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}"},{"id":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","operationString":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","description":"","fnName":"fetchAuthlifyTokenIdForPersonalToken","safeBody":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}","kind":"query","variableSignature":"{/"personalToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"AuthlifyTokenIdForPersonalToken","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AuthlifyTokenIdForPersonalToken","loc":{"start":6,"end":37}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":39,"end":52}},"loc":{"start":38,"end":52}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":54,"end":60}},"loc":{"start":54,"end":60}},"loc":{"start":54,"end":61}},"directives":[],"loc":{"start":38,"end":61}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":64,"end":71}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":72,"end":74}},"value":{"kind":"StringValue","value":"da5acd46-f2f1-4f24-aff9-1fe36d9c999b","block":true,"loc":{"start":76,"end":118}},"loc":{"start":72,"end":118}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":120,"end":123}},"value":{"kind":"NullValue","loc":{"start":125,"end":129}},"loc":{"start":120,"end":129}}],"loc":{"start":63,"end":130}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":135,"end":143}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"personalToken","loc":{"start":150,"end":163}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accessToken","loc":{"start":164,"end":175}},"value":{"kind":"Variable","name":{"kind":"Name","value":"personalToken","loc":{"start":178,"end":191}},"loc":{"start":177,"end":191}},"loc":{"start":164,"end":191}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyId","loc":{"start":201,"end":210}},"arguments":[],"directives":[],"loc":{"start":201,"end":210}}],"loc":{"start":193,"end":216}},"loc":{"start":150,"end":216}}],"loc":{"start":144,"end":220}},"loc":{"start":135,"end":220}}],"loc":{"start":131,"end":222}},"loc":{"start":0,"end":222}},"operationStringWithoutNetlifyDirective":"query AuthlifyTokenIdForPersonalToken($personalToken: String!) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}"},{"id":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","operationString":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"Get a Netlify CLI session by its id","fnName":"fetchCliSessionByIdQuery","safeBody":"query CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionByIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionByIdQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":46,"end":48}},"loc":{"start":45,"end":48}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":50,"end":56}},"loc":{"start":50,"end":56}},"loc":{"start":50,"end":57}},"directives":[],"loc":{"start":45,"end":57}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":60,"end":67}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":68,"end":70}},"value":{"kind":"StringValue","value":"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb","block":true,"loc":{"start":72,"end":114}},"loc":{"start":68,"end":114}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":116,"end":119}},"value":{"kind":"StringValue","value":"Get a Netlify CLI session by its id","block":true,"loc":{"start":121,"end":162}},"loc":{"start":116,"end":162}}],"loc":{"start":59,"end":163}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":168,"end":176}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":177,"end":182}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":185,"end":196}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":199,"end":209}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":212,"end":219}},"loc":{"start":211,"end":219}},"loc":{"start":199,"end":219}}],"loc":{"start":198,"end":220}},"loc":{"start":185,"end":220}}],"loc":{"start":184,"end":221}},"loc":{"start":177,"end":221}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSession","loc":{"start":229,"end":246}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":247,"end":249}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":252,"end":254}},"loc":{"start":251,"end":254}},"loc":{"start":247,"end":254}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":264,"end":266}},"arguments":[],"directives":[],"loc":{"start":264,"end":266}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":273,"end":277}},"arguments":[],"directives":[],"loc":{"start":273,"end":277}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":284,"end":297}},"arguments":[],"directives":[],"loc":{"start":284,"end":297}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":304,"end":310}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":321,"end":330}},"arguments":[],"directives":[],"loc":{"start":321,"end":330}}],"loc":{"start":311,"end":338}},"loc":{"start":304,"end":338}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":345,"end":354}},"arguments":[],"directives":[],"loc":{"start":345,"end":354}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":361,"end":372}},"arguments":[],"directives":[],"loc":{"start":361,"end":372}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":379,"end":387}},"arguments":[],"directives":[],"loc":{"start":379,"end":387}}],"loc":{"start":256,"end":393}},"loc":{"start":229,"end":393}}],"loc":{"start":223,"end":397}},"loc":{"start":168,"end":397}}],"loc":{"start":164,"end":399}},"loc":{"start":0,"end":399}},"operationStringWithoutNetlifyDirective":"query CliSessionByIdQuery($nfToken: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e09d703b-468c-4c94-b098-f1ba09fdf692","operationString":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","description":"List all the CLI sessions belonging to a site","fnName":"fetchCliSessionsByAppIdQuery","safeBody":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CliSessionsByAppIdQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CliSessionsByAppIdQuery","loc":{"start":6,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":40,"end":46}},"loc":{"start":40,"end":46}},"loc":{"start":40,"end":47}},"directives":[],"loc":{"start":30,"end":47}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":50,"end":55}},"loc":{"start":49,"end":55}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":57,"end":63}},"loc":{"start":57,"end":63}},"loc":{"start":57,"end":64}},"directives":[],"loc":{"start":49,"end":64}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":67,"end":74}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":75,"end":77}},"value":{"kind":"StringValue","value":"e09d703b-468c-4c94-b098-f1ba09fdf692","block":true,"loc":{"start":79,"end":121}},"loc":{"start":75,"end":121}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":123,"end":126}},"value":{"kind":"StringValue","value":"List all the CLI sessions belonging to a site","block":true,"loc":{"start":128,"end":179}},"loc":{"start":123,"end":179}}],"loc":{"start":66,"end":180}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":185,"end":193}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":194,"end":199}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":202,"end":213}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":216,"end":226}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":229,"end":236}},"loc":{"start":228,"end":236}},"loc":{"start":216,"end":236}}],"loc":{"start":215,"end":237}},"loc":{"start":202,"end":237}}],"loc":{"start":201,"end":238}},"loc":{"start":194,"end":238}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"netlifyCliSessionsByAppId","loc":{"start":246,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"first","loc":{"start":287,"end":292}},"value":{"kind":"IntValue","value":"10","loc":{"start":294,"end":296}},"loc":{"start":287,"end":296}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":306,"end":308}},"arguments":[],"directives":[],"loc":{"start":306,"end":308}},{"kind":"Field","name":{"kind":"Name","value":"name","loc":{"start":315,"end":319}},"arguments":[],"directives":[],"loc":{"start":315,"end":319}},{"kind":"Field","name":{"kind":"Name","value":"netlifyUserId","loc":{"start":326,"end":339}},"arguments":[],"directives":[],"loc":{"start":326,"end":339}},{"kind":"Field","name":{"kind":"Name","value":"events","loc":{"start":346,"end":352}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":363,"end":372}},"arguments":[],"directives":[],"loc":{"start":363,"end":372}}],"loc":{"start":353,"end":380}},"loc":{"start":346,"end":380}},{"kind":"Field","name":{"kind":"Name","value":"createdAt","loc":{"start":387,"end":396}},"arguments":[],"directives":[],"loc":{"start":387,"end":396}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt","loc":{"start":403,"end":414}},"arguments":[],"directives":[],"loc":{"start":403,"end":414}},{"kind":"Field","name":{"kind":"Name","value":"metadata","loc":{"start":421,"end":429}},"arguments":[],"directives":[],"loc":{"start":421,"end":429}}],"loc":{"start":298,"end":435}},"loc":{"start":246,"end":435}}],"loc":{"start":240,"end":439}},"loc":{"start":185,"end":439}}],"loc":{"start":181,"end":441}},"loc":{"start":0,"end":441}},"operationStringWithoutNetlifyDirective":"query CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-48d8-b051-db8888888888","operationString":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","description":"List the allowed CORS origins for calls to a site\'s Graph.","fnName":"fetchCORSOriginsQuery","safeBody":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}","kind":"query","variableSignature":"{/"siteId/": string; /"nfToken/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"CORSOriginsQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CORSOriginsQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":24,"end":30}},"loc":{"start":23,"end":30}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":32,"end":38}},"loc":{"start":32,"end":38}},"loc":{"start":32,"end":39}},"directives":[],"loc":{"start":23,"end":39}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":42,"end":49}},"loc":{"start":41,"end":49}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":51,"end":57}},"loc":{"start":51,"end":57}},"loc":{"start":51,"end":58}},"directives":[],"loc":{"start":41,"end":58}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":61,"end":68}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":69,"end":71}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-48d8-b051-db8888888888","block":true,"loc":{"start":73,"end":115}},"loc":{"start":69,"end":115}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":117,"end":120}},"value":{"kind":"StringValue","value":"List the allowed CORS origins for calls to a site\'s Graph.","block":true,"loc":{"start":122,"end":186}},"loc":{"start":117,"end":186}}],"loc":{"start":60,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":192,"end":200}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":201,"end":206}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":209,"end":220}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":223,"end":233}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":236,"end":243}},"loc":{"start":235,"end":243}},"loc":{"start":223,"end":243}}],"loc":{"start":222,"end":244}},"loc":{"start":209,"end":244}}],"loc":{"start":208,"end":245}},"loc":{"start":201,"end":245}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":253,"end":256}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":257,"end":259}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":262,"end":268}},"loc":{"start":261,"end":268}},"loc":{"start":257,"end":268}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AppCORSOriginFragment","loc":{"start":281,"end":302}},"directives":[],"loc":{"start":278,"end":302}}],"loc":{"start":270,"end":308}},"loc":{"start":253,"end":308}}],"loc":{"start":247,"end":312}},"loc":{"start":192,"end":312}}],"loc":{"start":188,"end":314}},"loc":{"start":0,"end":314}},"operationStringWithoutNetlifyDirective":"query CORSOriginsQuery($siteId: String!, $nfToken: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}"},{"id":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","operationString":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","description":"(Deprecated) Find logged in services","fnName":"fetchDeprecated_FindLoggedInServicesQuery","safeBody":"query Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"Deprecated_FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Deprecated_FindLoggedInServicesQuery","loc":{"start":6,"end":42}},"variableDefinitions":[],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":44,"end":51}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":52,"end":54}},"value":{"kind":"StringValue","value":"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd","block":true,"loc":{"start":56,"end":98}},"loc":{"start":52,"end":98}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":100,"end":103}},"value":{"kind":"StringValue","value":"(Deprecated) Find logged in services","block":true,"loc":{"start":105,"end":147}},"loc":{"start":100,"end":147}}],"loc":{"start":43,"end":148}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":153,"end":155}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":162,"end":177}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":186,"end":202}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":216,"end":240}},"directives":[],"loc":{"start":213,"end":240}}],"loc":{"start":203,"end":248}},"loc":{"start":186,"end":248}}],"loc":{"start":178,"end":254}},"loc":{"start":162,"end":254}}],"loc":{"start":156,"end":258}},"loc":{"start":153,"end":258}}],"loc":{"start":149,"end":260}},"loc":{"start":0,"end":260}},"operationStringWithoutNetlifyDirective":"query Deprecated_FindLoggedInServicesQuery {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}"},{"id":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","operationString":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","description":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","fnName":"fetchFindLoggedInServicesQuery","safeBody":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"authlifyTokenId/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"FindLoggedInServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindLoggedInServicesQuery","loc":{"start":6,"end":31}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":33,"end":40}},"loc":{"start":32,"end":40}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":42,"end":48}},"loc":{"start":42,"end":48}},"loc":{"start":42,"end":49}},"directives":[],"loc":{"start":32,"end":49}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":52,"end":67}},"loc":{"start":51,"end":67}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":69,"end":75}},"loc":{"start":69,"end":75}},"loc":{"start":69,"end":76}},"directives":[],"loc":{"start":51,"end":76}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":79,"end":86}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":87,"end":89}},"value":{"kind":"StringValue","value":"68c383e7-2e2f-4e6c-9a72-a5d888888ba3","block":true,"loc":{"start":91,"end":133}},"loc":{"start":87,"end":133}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":135,"end":138}},"value":{"kind":"StringValue","value":"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site","block":true,"loc":{"start":140,"end":225}},"loc":{"start":135,"end":225}}],"loc":{"start":78,"end":226}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":231,"end":239}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":240,"end":245}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":248,"end":259}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":262,"end":272}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":275,"end":282}},"loc":{"start":274,"end":282}},"loc":{"start":262,"end":282}}],"loc":{"start":261,"end":283}},"loc":{"start":248,"end":283}}],"loc":{"start":247,"end":284}},"loc":{"start":240,"end":284}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authlifyToken","loc":{"start":292,"end":305}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":306,"end":321}},"value":{"kind":"Variable","name":{"kind":"Name","value":"authlifyTokenId","loc":{"start":324,"end":339}},"loc":{"start":323,"end":339}},"loc":{"start":306,"end":339}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":349,"end":364}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":375,"end":391}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"usedTestFlow","loc":{"start":404,"end":416}},"arguments":[],"directives":[],"loc":{"start":404,"end":416}},{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":427,"end":446}},"arguments":[],"directives":[],"loc":{"start":427,"end":446}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":460,"end":484}},"directives":[],"loc":{"start":457,"end":484}}],"loc":{"start":392,"end":494}},"loc":{"start":375,"end":494}}],"loc":{"start":365,"end":502}},"loc":{"start":349,"end":502}}],"loc":{"start":341,"end":508}},"loc":{"start":292,"end":508}}],"loc":{"start":286,"end":512}},"loc":{"start":231,"end":512}}],"loc":{"start":227,"end":514}},"loc":{"start":0,"end":514}},"operationStringWithoutNetlifyDirective":"query FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}"},{"id":"e2394c86-260c-4646-88df-7bc7370de666","operationString":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","description":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","fnName":"fetchListServicesQuery","safeBody":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ListServicesQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListServicesQuery","loc":{"start":6,"end":23}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":25,"end":32}},"loc":{"start":24,"end":32}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":34,"end":40}},"loc":{"start":34,"end":40}},"loc":{"start":34,"end":41}},"directives":[],"loc":{"start":24,"end":41}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":44,"end":50}},"loc":{"start":43,"end":50}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":52,"end":58}},"loc":{"start":52,"end":58}},"loc":{"start":52,"end":59}},"directives":[],"loc":{"start":43,"end":59}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":62,"end":71}},"loc":{"start":61,"end":71}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":73,"end":97}},"loc":{"start":73,"end":97}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":100,"end":117}},"directives":[],"loc":{"start":61,"end":117}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":120,"end":127}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":128,"end":130}},"value":{"kind":"StringValue","value":"e2394c86-260c-4646-88df-7bc7370de666","block":true,"loc":{"start":132,"end":174}},"loc":{"start":128,"end":174}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":176,"end":179}},"value":{"kind":"StringValue","value":"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site.","block":true,"loc":{"start":181,"end":319}},"loc":{"start":176,"end":319}}],"loc":{"start":119,"end":320}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":325,"end":333}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":334,"end":339}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":342,"end":353}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":356,"end":366}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":369,"end":376}},"loc":{"start":368,"end":376}},"loc":{"start":356,"end":376}}],"loc":{"start":355,"end":377}},"loc":{"start":342,"end":377}}],"loc":{"start":341,"end":378}},"loc":{"start":334,"end":378}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":386,"end":394}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter","loc":{"start":395,"end":401}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":404,"end":422}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":424,"end":428}},"loc":{"start":404,"end":428}}],"loc":{"start":403,"end":429}},"loc":{"start":395,"end":429}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":439,"end":458}},"arguments":[],"directives":[],"loc":{"start":439,"end":458}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":465,"end":472}},"arguments":[],"directives":[],"loc":{"start":465,"end":472}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":479,"end":483}},"arguments":[],"directives":[],"loc":{"start":479,"end":483}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":490,"end":497}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":498,"end":503}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":506,"end":515}},"loc":{"start":505,"end":515}},"loc":{"start":498,"end":515}}],"directives":[],"loc":{"start":490,"end":516}},{"kind":"Field","name":{"kind":"Name","value":"availableScopes","loc":{"start":523,"end":538}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category","loc":{"start":549,"end":557}},"arguments":[],"directives":[],"loc":{"start":549,"end":557}},{"kind":"Field","name":{"kind":"Name","value":"scope","loc":{"start":566,"end":571}},"arguments":[],"directives":[],"loc":{"start":566,"end":571}},{"kind":"Field","name":{"kind":"Name","value":"display","loc":{"start":580,"end":587}},"arguments":[],"directives":[],"loc":{"start":580,"end":587}},{"kind":"Field","name":{"kind":"Name","value":"isDefault","loc":{"start":596,"end":605}},"arguments":[],"directives":[],"loc":{"start":596,"end":605}},{"kind":"Field","name":{"kind":"Name","value":"isRequired","loc":{"start":614,"end":624}},"arguments":[],"directives":[],"loc":{"start":614,"end":624}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":633,"end":644}},"arguments":[],"directives":[],"loc":{"start":633,"end":644}},{"kind":"Field","name":{"kind":"Name","value":"title","loc":{"start":653,"end":658}},"arguments":[],"directives":[],"loc":{"start":653,"end":658}}],"loc":{"start":539,"end":666}},"loc":{"start":523,"end":666}}],"loc":{"start":431,"end":672}},"loc":{"start":386,"end":672}},{"kind":"Field","name":{"kind":"Name","value":"app","loc":{"start":677,"end":680}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":681,"end":683}},"value":{"kind":"Variable","name":{"kind":"Name","value":"siteId","loc":{"start":686,"end":692}},"loc":{"start":685,"end":692}},"loc":{"start":681,"end":692}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceAuths","loc":{"start":702,"end":714}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServiceAuthFragment","loc":{"start":728,"end":747}},"directives":[],"loc":{"start":725,"end":747}}],"loc":{"start":715,"end":755}},"loc":{"start":702,"end":755}}],"loc":{"start":694,"end":761}},"loc":{"start":677,"end":761}}],"loc":{"start":380,"end":765}},"loc":{"start":325,"end":765}}],"loc":{"start":321,"end":767}},"loc":{"start":0,"end":767}},"operationStringWithoutNetlifyDirective":"query ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}"},{"id":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","operationString":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","description":"Retrieve a previously persisted operations doc","fnName":"fetchPersistedQueryQuery","safeBody":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}","kind":"query","variableSignature":"{/"nfToken/": string; /"appId/": string; /"id/": string}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"PersistedQueryQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PersistedQueryQuery","loc":{"start":6,"end":25}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":27,"end":34}},"loc":{"start":26,"end":34}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":36,"end":42}},"loc":{"start":36,"end":42}},"loc":{"start":36,"end":43}},"directives":[],"loc":{"start":26,"end":43}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":46,"end":51}},"loc":{"start":45,"end":51}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":53,"end":59}},"loc":{"start":53,"end":59}},"loc":{"start":53,"end":60}},"directives":[],"loc":{"start":45,"end":60}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":63,"end":65}},"loc":{"start":62,"end":65}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String","loc":{"start":67,"end":73}},"loc":{"start":67,"end":73}},"loc":{"start":67,"end":74}},"directives":[],"loc":{"start":62,"end":74}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":77,"end":84}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":85,"end":87}},"value":{"kind":"StringValue","value":"dfbf037c-a603-46a9-8ca2-ac0069c05db2","block":true,"loc":{"start":89,"end":131}},"loc":{"start":85,"end":131}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":133,"end":136}},"value":{"kind":"StringValue","value":"Retrieve a previously persisted operations doc","block":true,"loc":{"start":138,"end":190}},"loc":{"start":133,"end":190}}],"loc":{"start":76,"end":191}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":196,"end":204}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"auths","loc":{"start":205,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"netlifyAuth","loc":{"start":213,"end":224}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"oauthToken","loc":{"start":227,"end":237}},"value":{"kind":"Variable","name":{"kind":"Name","value":"nfToken","loc":{"start":240,"end":247}},"loc":{"start":239,"end":247}},"loc":{"start":227,"end":247}}],"loc":{"start":226,"end":248}},"loc":{"start":213,"end":248}}],"loc":{"start":212,"end":249}},"loc":{"start":205,"end":249}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persistedQuery","loc":{"start":257,"end":271}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId","loc":{"start":272,"end":277}},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId","loc":{"start":280,"end":285}},"loc":{"start":279,"end":285}},"loc":{"start":272,"end":285}},{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":287,"end":289}},"value":{"kind":"Variable","name":{"kind":"Name","value":"id","loc":{"start":292,"end":294}},"loc":{"start":291,"end":294}},"loc":{"start":287,"end":294}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id","loc":{"start":304,"end":306}},"arguments":[],"directives":[],"loc":{"start":304,"end":306}},{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":313,"end":318}},"arguments":[],"directives":[],"loc":{"start":313,"end":318}},{"kind":"Field","name":{"kind":"Name","value":"allowedOperationNames","loc":{"start":325,"end":346}},"arguments":[],"directives":[],"loc":{"start":325,"end":346}},{"kind":"Field","name":{"kind":"Name","value":"description","loc":{"start":353,"end":364}},"arguments":[],"directives":[],"loc":{"start":353,"end":364}},{"kind":"Field","name":{"kind":"Name","value":"freeVariables","loc":{"start":371,"end":384}},"arguments":[],"directives":[],"loc":{"start":371,"end":384}},{"kind":"Field","name":{"kind":"Name","value":"fixedVariables","loc":{"start":391,"end":405}},"arguments":[],"directives":[],"loc":{"start":391,"end":405}},{"kind":"Field","name":{"kind":"Name","value":"tags","loc":{"start":412,"end":416}},"arguments":[],"directives":[],"loc":{"start":412,"end":416}}],"loc":{"start":296,"end":422}},"loc":{"start":257,"end":422}}],"loc":{"start":251,"end":426}},"loc":{"start":196,"end":426}}],"loc":{"start":192,"end":428}},"loc":{"start":0,"end":428}},"operationStringWithoutNetlifyDirective":"query PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}"},{"id":"a6969eb4-5e17-43fb-a325-88888f7d1db3","operationString":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","description":"Retrieve a list of _all_ supported services from OneGraph","fnName":"fetchServiceListQuery","safeBody":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}","kind":"query","variableSignature":"{/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"ServiceListQuery","parsedOperation":{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServiceListQuery","loc":{"start":6,"end":22}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":24,"end":33}},"loc":{"start":23,"end":33}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OneGraphAppLogoStyleEnum","loc":{"start":35,"end":59}},"loc":{"start":35,"end":59}},"defaultValue":{"kind":"EnumValue","value":"ROUNDED_RECTANGLE","loc":{"start":62,"end":79}},"directives":[],"loc":{"start":23,"end":79}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":82,"end":89}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":90,"end":92}},"value":{"kind":"StringValue","value":"a6969eb4-5e17-43fb-a325-88888f7d1db3","block":true,"loc":{"start":94,"end":136}},"loc":{"start":90,"end":136}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":138,"end":141}},"value":{"kind":"StringValue","value":"Retrieve a list of _all_ supported services from OneGraph","block":true,"loc":{"start":143,"end":206}},"loc":{"start":138,"end":206}}],"loc":{"start":81,"end":207}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"oneGraph","loc":{"start":212,"end":220}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"services","loc":{"start":227,"end":235}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"friendlyServiceName","loc":{"start":244,"end":263}},"arguments":[],"directives":[],"loc":{"start":244,"end":263}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl","loc":{"start":270,"end":277}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"style","loc":{"start":278,"end":283}},"value":{"kind":"Variable","name":{"kind":"Name","value":"logoStyle","loc":{"start":286,"end":295}},"loc":{"start":285,"end":295}},"loc":{"start":278,"end":295}}],"directives":[],"loc":{"start":270,"end":296}},{"kind":"Field","name":{"kind":"Name","value":"service","loc":{"start":303,"end":310}},"arguments":[],"directives":[],"loc":{"start":303,"end":310}},{"kind":"Field","name":{"kind":"Name","value":"slug","loc":{"start":317,"end":321}},"arguments":[],"directives":[],"loc":{"start":317,"end":321}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomRedirectUri","loc":{"start":328,"end":353}},"arguments":[],"directives":[],"loc":{"start":328,"end":353}},{"kind":"Field","name":{"kind":"Name","value":"supportsCustomServiceAuth","loc":{"start":360,"end":385}},"arguments":[],"directives":[],"loc":{"start":360,"end":385}},{"kind":"Field","name":{"kind":"Name","value":"supportsOauthLogin","loc":{"start":392,"end":410}},"arguments":[],"directives":[],"loc":{"start":392,"end":410}}],"loc":{"start":236,"end":416}},"loc":{"start":227,"end":416}}],"loc":{"start":221,"end":420}},"loc":{"start":212,"end":420}}],"loc":{"start":208,"end":422}},"loc":{"start":0,"end":422}},"operationStringWithoutNetlifyDirective":"query ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}"},{"id":"e3d4bb8b-2fb5-9898-b051-db8888888888","operationString":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","description":"A subscription with variables and a fragment to test code generation.","fnName":"TestSubscription","safeBody":"subscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}","kind":"subscription","variableSignature":"{/"minutes/": number}","returnSignature":"{/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}","operationName":"TestSubscription","parsedOperation":{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"TestSubscription","loc":{"start":13,"end":29}},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":31,"end":38}},"loc":{"start":30,"end":38}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int","loc":{"start":40,"end":43}},"loc":{"start":40,"end":43}},"defaultValue":{"kind":"IntValue","value":"1","loc":{"start":46,"end":47}},"directives":[],"loc":{"start":30,"end":47}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"netlify","loc":{"start":50,"end":57}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id","loc":{"start":58,"end":60}},"value":{"kind":"StringValue","value":"e3d4bb8b-2fb5-9898-b051-db8888888888","block":true,"loc":{"start":62,"end":104}},"loc":{"start":58,"end":104}},{"kind":"Argument","name":{"kind":"Name","value":"doc","loc":{"start":106,"end":109}},"value":{"kind":"StringValue","value":"A subscription with variables and a fragment to test code generation.","block":true,"loc":{"start":111,"end":186}},"loc":{"start":106,"end":186}}],"loc":{"start":49,"end":187}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll","loc":{"start":192,"end":196}},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"schedule","loc":{"start":202,"end":210}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"every","loc":{"start":213,"end":218}},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"minutes","loc":{"start":221,"end":228}},"value":{"kind":"Variable","name":{"kind":"Name","value":"minutes","loc":{"start":231,"end":238}},"loc":{"start":230,"end":238}},"loc":{"start":221,"end":238}}],"loc":{"start":220,"end":239}},"loc":{"start":213,"end":239}}],"loc":{"start":212,"end":240}},"loc":{"start":202,"end":240}},{"kind":"Argument","name":{"kind":"Name","value":"onlyTriggerWhenPayloadChanged","loc":{"start":245,"end":274}},"value":{"kind":"BooleanValue","value":true,"loc":{"start":276,"end":280}},"loc":{"start":245,"end":280}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query","loc":{"start":291,"end":296}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me","loc":{"start":305,"end":307}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serviceMetadata","loc":{"start":318,"end":333}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loggedInServices","loc":{"start":346,"end":362}},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInServicesFragment","loc":{"start":380,"end":404}},"directives":[],"loc":{"start":377,"end":404}}],"loc":{"start":363,"end":416}},"loc":{"start":346,"end":416}}],"loc":{"start":334,"end":426}},"loc":{"start":318,"end":426}}],"loc":{"start":308,"end":434}},"loc":{"start":305,"end":434}}],"loc":{"start":297,"end":440}},"loc":{"start":291,"end":440}}],"loc":{"start":285,"end":444}},"loc":{"start":192,"end":444}}],"loc":{"start":188,"end":446}},"loc":{"start":0,"end":446}},"operationStringWithoutNetlifyDirective":"subscription TestSubscription($minutes: Int = 1) {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}"}],"typeDefinitionsSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n/nexport type NetlifyGraphFunctionOptions = {/n accessToken?: string;/n siteId?: string;/n}/n/nexport type WebhookEvent = {/n body: string;/n headers: Record;/n};/n/nexport type GraphQLError = {/n /"path/": Array,/n /"message/": string,/n /"extensions/": Record/n};/n/n/**/n* Subset of LoggedInServices/n*//nexport type LoggedInServicesFragment = {/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n isLoggedIn: boolean;/n usedTestFlow: boolean;/n serviceInfo: {/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n};/n /**/n * The scopes that the user granted for this service. This is a best estimate of the scopes that were granted. Most services do not have a way to query the scopes on an auth, and some services do not return information about the scopes that were granted in the auth flow./n *//ngrantedScopes: Array<{/n /**/n * The name of the scope that the underlying service uses./n *//nscope: string;/n}>;/n foreignUserId: string;/n};/n/n/n/**/n* Basic info on a Service Auth/n*//nexport type ServiceAuthFragment = {/n /**/n * id for the service auth/n *//nid: string;/n /**/n * The service that the clientId and clientSecret belong to, e.g. /"gmail/"/n *//nservice: string;/n /**/n * clientId for the serviceAuth./n *//nclientId: string;/n /**/n * If true, the bearer token that is created fetchable by the user whose account the token grants access to./n *//nrevealTokens: boolean;/n /**/n * Optional scopes to use for the OAuth flow./n *//nscopes: Array;/n};/n/n/n/**/n* Allowed CORS origins for calls to a site\'s Graph./n*//nexport type AppCORSOriginFragment = {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n /**/n * Sites on Netlify associated with this app. OneGraph will allow CORS and authentication redirects to all previews, branch, and production deploys of these sites./n *//nnetlifySiteNames: Array;/n};/n/n/nexport type AddAuthsMutationInput = {/"siteId/": string; /"authlifyTokenId/": string; /"sToken/": string; /"nfToken/": string};/n/nexport type AddAuthsMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addAuthsToPersonalToken: {/n /**/n * Personal access token that was updated by this mutation/n *//naccessToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n /**/n * Bearer token/n *//ntoken: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//nexport function executeAddAuthsMutation (/n variables: AddAuthsMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AddCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type AddCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n addCORSOriginToApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//nexport function executeAddCORSOriginMutation (/n variables: AddCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateCLISessionEventMutationInput = {/"nfToken/": string; /"sessionId/": string; /"payload/": unknown};/n/nexport type CreateCLISessionEventMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createNetlifyCliTestEvent: {/n event: {/n id: string;/n createdAt: string;/n sessionId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//nexport function executeCreateCLISessionEventMutation (/n variables: CreateCLISessionEventMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateEmptyPersonalTokenMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type CreateEmptyPersonalTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Creates an empty personal token with a Netlify site anchor/n *//ncreatePersonalTokenWithNetlifySiteAnchor: {/n /**/n * Personal access token that was created by this mutation/n *//naccessToken: {/n /**/n * Bearer token/n *//ntoken: string;/n /**/n * Token name, if it is a personal access token/n *//nname: string;/n /**/n * The anchor is like two-factor auth for the token. It ensures that the person who adds auth to the token is the same as the person who created the token./n *//nanchor: /"ONEGRAPH_USER/" | /"NETLIFY_USER/" | /"NETLIFY_SITE/";/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new OneGraph personal token for a user\'s site/n *//nexport function executeCreateEmptyPersonalTokenMutation (/n variables: CreateEmptyPersonalTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreateNewSchemaMutationInput = {/"nfToken/": string; /"input/": {/**/n * Whether to set this schema as the default for the app. Defaults to false./n *//n /"setAsDefaultForApp/"?: boolean; /**/n * External GraphQL schemas to add/n *//n /"externalGraphQLSchemas/"?: Array<{/**/n * The id of the external GraphQL schema./n *//n /"externalGraphQLSchemaId/": string}>; /**/n * Optional id of a Salesforce schema to attach to the app./n *//n /"salesforceSchemaId/"?: string; /**/n * The optional id of the GraphQL schema that this was derived from./n *//n /"parentId/"?: string; /**/n * The list of services that this schema should use. Leave blank if you want to add support for all supported services./n *//n /"enabledServices/"?: Array; /**/n * The id of the app that the schema should belong to./n *//n /"appId/": string}};/n/nexport type CreateNewSchemaMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createGraphQLSchema: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n id: string;/n};/n};/n graphqlSchema: {/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//nexport function executeCreateNewSchemaMutation (/n variables: CreateNewSchemaMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CreatePersistedQueryMutationInput = {/"nfToken/": string; /"appId/": string; /"query/": string; /"tags/": Array; /"description/": string; /"parent/": {/**/n * An optional list of tags to remove from the parent query. If any of the provided tags aren\'t present on the parent, the mutation will fail. No persisted queries will be created and no tags will be removed from the parent./n *//n /"removeTags/"?: Array; /**/n * The id of the parent/n *//n /"id/": string}};/n/nexport type CreatePersistedQueryMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createPersistedQuery: {/n persistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//nexport function executeCreatePersistedQueryMutation (/n variables: CreatePersistedQueryMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DeleteServiceAuthMutationInput = {/"siteId/": string; /"serviceAuthId/": string; /"nfToken/": string};/n/nexport type DeleteServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n destroyServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a custom service auth/n *//nexport function executeDeleteServiceAuthMutation (/n variables: DeleteServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type DestroyTokenMutationInput = {/"nfToken/": string; /"token/": string; /"authlifyTokenId/": string};/n/nexport type DestroyTokenMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Revokes a OneGraph access token, refresh token, or JWT. After a token is destroyed, it can no longer be used to authenticate with OneGraph./n/nIf you destroy a JWT, external services that rely on the claims embedded in the JWT may still accept the JWT and you will also have to revoke the JWT though the external service\'s revocation process./n *//ndestroyToken: boolean;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Delete a OneGraph personal token for a user\'s site/n *//nexport function executeDestroyTokenMutation (/n variables: DestroyTokenMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type RemoveCORSOriginMutationInput = {/"nfToken/": string; /"input/": {/"corsOrigin/": string; /"appId/": string}};/n/nexport type RemoveCORSOriginMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n removeCORSOriginFromApp: {/n app: AppCORSOriginFragment;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//nexport function executeRemoveCORSOriginMutation (/n variables: RemoveCORSOriginMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SetServiceAuthMutationInput = {/"service/": /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/"; /"clientId/": string; /"clientSecret/": string; /"siteId/": string; /"nfToken/": string};/n/nexport type SetServiceAuthMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n createServiceAuth: {/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Create a custom service auth/n *//nexport function executeSetServiceAuthMutation (/n variables: SetServiceAuthMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type SignOutServicesMutationInput = {/"services/": Array; /"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type SignOutServicesMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n signoutServices: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Sign out of a service associated with a Authlify token/n *//nexport function executeSignOutServicesMutation (/n variables: SignOutServicesMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpdateCLISessionMetadataMutationInput = {/"nfToken/": string; /"sessionId/": string; /"metadata/": unknown};/n/nexport type UpdateCLISessionMetadataMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Update a CLI session./n *//nupdateNetlifyCliSession: {/n /**/n * The session that was updated./n *//nsession: {/n id: string;/n name: string;/n metadata: unknown;/n createdAt: string;/n lastEventAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//nexport function executeUpdateCLISessionMetadataMutation (/n variables: UpdateCLISessionMetadataMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type UpsertAppForSiteMutationInput = {/"nfToken/": string; /"siteId/": string};/n/nexport type UpsertAppForSiteMutation = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n upsertAppForNetlifySite: {/n /**/n * The app that is associated with the Netlify account./n *//norg: {/n /**/n * The id of the OneGraph Org/n *//nid: string;/n /**/n * The name of the OneGraph Org/n *//nname: string;/n};/n /**/n * The app that is associated with the Netlify site./n *//napp: {/n /**/n * The id of the OneGraph App/n *//nid: string;/n /**/n * The name of the OneGraph App/n *//nname: string;/n /**/n * The origins allowed for this OneGraph App from CORS requests/n *//ncorsOrigins: Array;/n /**/n * Custom cors origins/n *//ncustomCorsOrigins: Array<{/n /**/n * The friendly service name for the cors origin/n *//nfriendlyServiceName: string;/n /**/n * The name of the origin that should be displayed, e.g. oneblog for oneblog.netlify.app./n *//ndisplayName: string;/n /**/n * The encoded value as a string, used to remove the custom cors origin./n *//nencodedValue: string;/n}>;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//nexport function executeUpsertAppForSiteMutation (/n variables: UpsertAppForSiteMutationInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AppSchemaQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type AppSchemaQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: {/n /**/n * Customizations to the default GraphQL schema/n *//ngraphQLSchema: {/n appId: string;/n createdAt: string;/n id: string;/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n updatedAt: string;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//nexport function fetchAppSchemaQuery(/n variables: AppSchemaQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type AuthlifyTokenIdForPersonalTokenInput = {/"personalToken/": string};/n/nexport type AuthlifyTokenIdForPersonalToken = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Personal access token lookup/n *//npersonalToken: {/n /**/n * Netlify-specific ID for the token/n *//nnetlifyId: string;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * /n *//nexport function fetchAuthlifyTokenIdForPersonalToken(/n variables: AuthlifyTokenIdForPersonalTokenInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionByIdQueryInput = {/"nfToken/": string; /"id/": string};/n/nexport type CliSessionByIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Get a Netlify CLI session by its id./n *//nnetlifyCliSession: {/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Get a Netlify CLI session by its id/n *//nexport function fetchCliSessionByIdQuery(/n variables: CliSessionByIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CliSessionsByAppIdQueryInput = {/"nfToken/": string; /"appId/": string};/n/nexport type CliSessionsByAppIdQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Netlify CLI sessions, orderd by createdAt descending./n *//nnetlifyCliSessionsByAppId: Array<{/n id: string;/n name: string;/n netlifyUserId: string;/n events: Array<{/n createdAt: string;/n}>;/n createdAt: string;/n lastEventAt: string;/n metadata: unknown;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List all the CLI sessions belonging to a site/n *//nexport function fetchCliSessionsByAppIdQuery(/n variables: CliSessionsByAppIdQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type CORSOriginsQueryInput = {/"siteId/": string; /"nfToken/": string};/n/nexport type CORSOriginsQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n app: AppCORSOriginFragment;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//nexport function fetchCORSOriginsQuery(/n variables: CORSOriginsQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/nexport type Deprecated_FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * (Deprecated) Find logged in services/n *//nexport function fetchDeprecated_FindLoggedInServicesQuery(/n variables: Record,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type FindLoggedInServicesQueryInput = {/"nfToken/": string; /"authlifyTokenId/": string};/n/nexport type FindLoggedInServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n authlifyToken: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array;/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//nexport function fetchFindLoggedInServicesQuery(/n variables: FindLoggedInServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ListServicesQueryInput = {/"nfToken/": string; /"siteId/": string; /"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ListServicesQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n availableScopes: Array<{/n category: string;/n scope: string;/n display: string;/n isDefault: boolean;/n isRequired: boolean;/n description: string;/n title: string;/n}>;/n}>;/n app: {/n /**/n * The custom clientId/clientSecret that have been set for services (e.g. Gmail and Slack) that belong to this OneGraph app/n *//nserviceAuths: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//nexport function fetchListServicesQuery(/n variables: ListServicesQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type PersistedQueryQueryInput = {/"nfToken/": string; /"appId/": string; /"id/": string};/n/nexport type PersistedQueryQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n /**/n * Fetch a single persisted query by its id./n *//npersistedQuery: {/n /**/n * The persisted query\'s id./n *//nid: string;/n /**/n * The persisted query\'s query string./n *//nquery: string;/n /**/n * The list of operation names that the caller of the query is allowed to execute. If the field is null, then all operationNames are allowed./n *//nallowedOperationNames: Array;/n /**/n * The user-defined description that was added to the query/n *//ndescription: string;/n /**/n * The list of variables that the caller of the query is allowed to provide./n *//nfreeVariables: Array;/n /**/n * The default variables provided to the query./n *//nfixedVariables: unknown;/n /**/n * The list of user-defined tags that were added to the query/n *//ntags: Array;/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a previously persisted operations doc/n *//nexport function fetchPersistedQueryQuery(/n variables: PersistedQueryQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/nexport type ServiceListQueryInput = {/"logoStyle/": /"DEFAULT/" | /"ROUNDED_RECTANGLE/"};/n/nexport type ServiceListQuery = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n oneGraph: {/n services: Array<{/n friendlyServiceName: string;/n /**/n * A short-lived svg image url of the logo for the service. May be null./n *//nlogoUrl: string;/n service: /"ADROLL/" | /"ASANA/" | /"BOX/" | /"CONTENTFUL/" | /"DEV_TO/" | /"DOCUSIGN/" | /"DRIBBBLE/" | /"DROPBOX/" | /"EGGHEADIO/" | /"EVENTIL/" | /"FACEBOOK/" | /"FIREBASE/" | /"GITHUB/" | /"GMAIL/" | /"GONG/" | /"GOOGLE/" | /"GOOGLE_ADS/" | /"GOOGLE_ANALYTICS/" | /"GOOGLE_CALENDAR/" | /"GOOGLE_COMPUTE/" | /"GOOGLE_DOCS/" | /"GOOGLE_SEARCH_CONSOLE/" | /"GOOGLE_TRANSLATE/" | /"HUBSPOT/" | /"INTERCOM/" | /"MAILCHIMP/" | /"MEETUP/" | /"NETLIFY/" | /"NOTION/" | /"OUTREACH/" | /"PRODUCT_HUNT/" | /"QUICKBOOKS/" | /"SALESFORCE/" | /"SANITY/" | /"SLACK/" | /"SPOTIFY/" | /"STRIPE/" | /"TRELLO/" | /"TWILIO/" | /"TWITTER/" | /"TWITCH_TV/" | /"YNAB/" | /"YOUTUBE/" | /"ZEIT/" | /"ZENDESK/" | /"AIRTABLE/" | /"APOLLO/" | /"BREX/" | /"BUNDLEPHOBIA/" | /"CHARGEBEE/" | /"CLEARBIT/" | /"CLOUDFLARE/" | /"CRUNCHBASE/" | /"DESCURI/" | /"FEDEX/" | /"GOOGLE_MAPS/" | /"GRAPHCMS/" | /"IMMIGRATION_GRAPH/" | /"LOGDNA/" | /"MIXPANEL/" | /"MUX/" | /"NPM/" | /"ONEGRAPH/" | /"ORBIT/" | /"OPEN_COLLECTIVE/" | /"RSS/" | /"UPS/" | /"USPS/" | /"WORDPRESS/";/n /**/n * Service string that can be provided in the URL when going through the oauth flow./n *//nslug: string;/n supportsCustomRedirectUri: boolean;/n supportsCustomServiceAuth: boolean;/n supportsOauthLogin: boolean;/n}>;/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n};/n/n/**/n * Retrieve a list of _all_ supported services from OneGraph/n *//nexport function fetchServiceListQuery(/n variables: ServiceListQueryInput,/n options?: NetlifyGraphFunctionOptions/n): Promise;/n/n/**/n* A subscription with variables and a fragment to test code generation./n*//nexport function subscribeToTestSubscription(/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId: string,/n variables: {/"minutes/": number},/n accessToken?: string | null | undefined/n ) : void/n/nexport type TestSubscriptionEvent = {/n /**/n * Any data from the function will be returned here/n *//ndata: {/n poll: {/n query: {/n me: {/n /**/n * Metadata and logged-in state for all OneGraph services/n *//nserviceMetadata: {/n loggedInServices: Array>;/n};/n};/n};/n};/n};/n /**/n * Any errors from the function will be returned here/n *//nerrors: Array;/n}/n/n/**/n * Verify the TestSubscription event body is signed securely, and then parse the result./n *//nexport function parseAndVerifyTestSubscriptionEvent (/** A Netlify Handler Event */ event : WebhookEvent) : null | TestSubscriptionEvent/n/n","clientSource":"// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!/n /n /n /n /n/n/n/nconst operationsDoc = `fragment LoggedInServicesFragment on OneGraphServiceMetadata @netlify(id: /"/"/"12b5bdea-9bab-4124-a731-5e697b1553be/"/"/", doc: /"/"/"Subset of LoggedInServices/"/"/") {/n friendlyServiceName/n service/n isLoggedIn/n usedTestFlow/n serviceInfo {/n logoUrl/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n grantedScopes {/n scope/n }/n foreignUserId/n}/n/nfragment ServiceAuthFragment on OneGraphServiceAuth @netlify(id: /"/"/"12b5bdea-9bab-4164-a731-5e697b1553be/"/"/", doc: /"/"/"Basic info on a Service Auth/"/"/") {/n id/n service/n clientId/n revealTokens/n scopes/n}/n/nfragment AppCORSOriginFragment on OneGraphApp @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Allowed CORS origins for calls to a site\'s Graph./"/"/") {/n id/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n netlifySiteNames/n}/n/nmutation UpdateCLISessionMetadataMutation($nfToken: String!, $sessionId: String!, $metadata: JSON!) @netlify(id: /"/"/"16a58acb-8188-4a47-bc93-1f4a5ef805c0/"/"/", doc: /"/"/"Modify the metadata of an existing CLI session (an intentionally untype bag of //`JSON//`)./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n updateNetlifyCliSession(input: {id: $sessionId, metadata: $metadata}) {/n session {/n id/n name/n metadata/n createdAt/n lastEventAt/n }/n }/n }/n}/n/nquery AppSchemaQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"30aeff10-e743-473e-bae0-438a88888edc/"/"/", doc: /"/"/"/nGet the _metadata_ about a site\'s current GraphQL schema:/n/n- enabled services/n- schema id/n- creation date/n/netc./n/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $appId) {/n graphQLSchema {/n appId/n createdAt/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n updatedAt/n }/n }/n }/n}/n/nmutation DestroyTokenMutation($nfToken: String!, $token: String, $authlifyTokenId: String) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c34/"/"/", doc: /"/"/"Delete a OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyToken(token: $token, authlifyTokenId: $authlifyTokenId)/n }/n}/n/nmutation SignOutServicesMutation($services: [OneGraphServiceEnum!]!, $nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"3d069fc8-3a03-40c8-8637-ddcf88888c99/"/"/", doc: /"/"/"Sign out of a service associated with a Authlify token/"/"/") {/n signoutServices(/n data: {services: $services, anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, authlifyTokenId: $authlifyTokenId}/n ) {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation AddAuthsMutation($siteId: String! $authlifyTokenId: String, $sToken: String!, $nfToken: String!) @netlify(id: /"/"/"47c6abec-7e34-4ec1-ae7d-b8888828b0ce/"/"/", doc: /"/"/"Update a service\'s (i.e. GitHub) enabled scope permissions/"/"/") {/n oneGraph {/n addAuthsToPersonalToken(/n input: {anchorAuth: {netlifyAuth: {oauthToken: $nfToken}}, sacrificialToken: $sToken, authlifyTokenId: $authlifyTokenId, appId: $siteId}/n ) {/n accessToken {/n netlifyId/n token/n }/n }/n }/n}/n/nmutation CreateNewSchemaMutation($nfToken: String!, $input: OneGraphCreateGraphQLSchemaInput!) @netlify(id: /"/"/"4fc2298a-225b-4329-b3f3-a8f8bc0513a8/"/"/", doc: /"/"/"Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createGraphQLSchema(input: $input) {/n app {/n graphQLSchema {/n id/n }/n }/n graphqlSchema {/n id/n services {/n friendlyServiceName/n logoUrl/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n }/n }/n}/n/nmutation DeleteServiceAuthMutation($siteId: String!, $serviceAuthId: String!, $nfToken: String!) @netlify(id: /"/"/"5c7bb879-a810-4a7e-8aec-55d05fd9c172/"/"/", doc: /"/"/"Delete a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n destroyServiceAuth(data: {appId: $siteId, serviceAuthId: $serviceAuthId}) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreatePersistedQueryMutation($nfToken: String!, $appId: String!, $query: String!, $tags: [String!]!, $description: String!, $parent: OneGraphCreatePersistedQueryParentInput) @netlify(id: /"/"/"5e888884-a316-4060-955c-85b1f8898c29/"/"/", doc: /"/"/"Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersistedQuery(/n input: {query: $query, appId: $appId, tags: $tags, description: $description, parent: $parent}/n ) {/n persistedQuery {/n id/n }/n }/n }/n}/n/nquery FindLoggedInServicesQuery($nfToken: String!, $authlifyTokenId: String!) @netlify(id: /"/"/"68c383e7-2e2f-4e6c-9a72-a5d888888ba3/"/"/", doc: /"/"/"Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n authlifyToken(authlifyTokenId: $authlifyTokenId) {/n serviceMetadata {/n loggedInServices {/n usedTestFlow/n friendlyServiceName/n ...LoggedInServicesFragment/n }/n }/n }/n }/n}/n/nmutation SetServiceAuthMutation($service: OneGraphCustomServiceAuthServiceEnum!, $clientId: String!, $clientSecret: String!, $siteId: String!, $nfToken: String!) @netlify(id: /"/"/"694dfc01-3844-431d-9e56-7089c101fe08/"/"/", doc: /"/"/"Create a custom service auth/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createServiceAuth(/n data: {service: $service, clientId: $clientId, clientSecret: $clientSecret, appId: $siteId, revealTokens: true}/n ) {/n app {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n }/n}/n/nmutation CreateCLISessionEventMutation($nfToken: String!, $sessionId: String!, $payload: JSON!) @netlify(id: /"/"/"6f42e462-7cbf-4d95-880b-16eb55ed7a1a/"/"/", doc: /"/"/"Create a new session for the Netlify CLI to communicate with the React UI via events./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createNetlifyCliTestEvent(/n input: {data: {payload: $payload}, sessionId: $sessionId}/n ) {/n event {/n id/n createdAt/n sessionId/n }/n }/n }/n}/n/nquery CliSessionByIdQuery($nfToken: String!, $id: String!) @netlify(id: /"/"/"6f9a0536-25f7-4b8f-ad1f-5a39edd923bb/"/"/", doc: /"/"/"Get a Netlify CLI session by its id/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSession(id: $id) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery Deprecated_FindLoggedInServicesQuery @netlify(id: /"/"/"9ffe3872-4ae8-4f86-b5b7-ffcdfe7843fd/"/"/", doc: /"/"/"(Deprecated) Find logged in services/"/"/") {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n}/n/nmutation CreateEmptyPersonalTokenMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"a88888f1-014c-4413-8a7d-b188c4dd5f55/"/"/", doc: /"/"/"Create a new OneGraph personal token for a user\'s site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n createPersonalTokenWithNetlifySiteAnchor(/n input: {name: /"Netlify AuthManager Token/", netlifySiteId: $siteId}/n ) {/n accessToken {/n token/n name/n anchor/n netlifyId/n }/n }/n }/n}/n/nquery ServiceListQuery($logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"a6969eb4-5e17-43fb-a325-88888f7d1db3/"/"/", doc: /"/"/"Retrieve a list of _all_ supported services from OneGraph/"/"/") {/n oneGraph {/n services {/n friendlyServiceName/n logoUrl(style: $logoStyle)/n service/n slug/n supportsCustomRedirectUri/n supportsCustomServiceAuth/n supportsOauthLogin/n }/n }/n}/n/nquery AuthlifyTokenIdForPersonalToken($personalToken: String!) @netlify(id: /"/"/"da5acd46-f2f1-4f24-aff9-1fe36d9c999b/"/"/", doc: null) {/n oneGraph {/n personalToken(accessToken: $personalToken) {/n netlifyId/n }/n }/n}/n/nquery PersistedQueryQuery($nfToken: String!, $appId: String!, $id: String!) @netlify(id: /"/"/"dfbf037c-a603-46a9-8ca2-ac0069c05db2/"/"/", doc: /"/"/"Retrieve a previously persisted operations doc/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n persistedQuery(appId: $appId, id: $id) {/n id/n query/n allowedOperationNames/n description/n freeVariables/n fixedVariables/n tags/n }/n }/n}/n/nquery CliSessionsByAppIdQuery($nfToken: String!, $appId: String!) @netlify(id: /"/"/"e09d703b-468c-4c94-b098-f1ba09fdf692/"/"/", doc: /"/"/"List all the CLI sessions belonging to a site/"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n netlifyCliSessionsByAppId(appId: $appId, first: 10) {/n id/n name/n netlifyUserId/n events {/n createdAt/n }/n createdAt/n lastEventAt/n metadata/n }/n }/n}/n/nquery ListServicesQuery($nfToken: String!, $siteId: String!, $logoStyle: OneGraphAppLogoStyleEnum = ROUNDED_RECTANGLE) @netlify(id: /"/"/"e2394c86-260c-4646-88df-7bc7370de666/"/"/", doc: /"/"/"Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n services(filter: {supportsOauthLogin: true}) {/n friendlyServiceName/n service/n slug/n logoUrl(style: $logoStyle)/n availableScopes {/n category/n scope/n display/n isDefault/n isRequired/n description/n title/n }/n }/n app(id: $siteId) {/n serviceAuths {/n ...ServiceAuthFragment/n }/n }/n }/n}/n/nmutation UpsertAppForSiteMutation($nfToken: String!, $siteId: String!) @netlify(id: /"/"/"e3d3bb8b-2fb5-48d8-b051-db888882419f/"/"/", doc: /"/"/"Ensure that an app resource exists on the OneGraph servers for a given site./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n upsertAppForNetlifySite(input: {netlifySiteId: $siteId}) {/n org {/n id/n name/n }/n app {/n id/n name/n corsOrigins/n customCorsOrigins {/n friendlyServiceName/n displayName/n encodedValue/n }/n }/n }/n }/n}/n/nmutation AddCORSOriginMutation($nfToken: String!, $input: OneGraphAddCORSOriginToAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Add additional allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n addCORSOriginToApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nmutation RemoveCORSOriginMutation($nfToken: String!, $input: OneGraphRemoveCORSOriginFromAppInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"Remove the given CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n removeCORSOriginFromApp(input: $input) {/n app {/n ...AppCORSOriginFragment/n }/n }/n }/n}/n/nquery CORSOriginsQuery($siteId: String!, $nfToken: String!) @netlify(id: /"/"/"e3d4bb8b-2fb5-48d8-b051-db8888888888/"/"/", doc: /"/"/"List the allowed CORS origins for calls to a site\'s Graph./"/"/") {/n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {/n app(id: $siteId) {/n ...AppCORSOriginFragment/n }/n }/n}/n/nsubscription TestSubscription($minutes: Int = 1) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`/n/n/nconst httpFetch = (siteId, options) => {/n const reqBody = options.body || null/n const userHeaders = options.headers || {}/n const headers = {/n ...userHeaders,/n \'Content-Type\': \'application/json\',/n }/n/n const reqOptions = {/n method: \'POST\',/n headers: headers,/n timeout: 88888,/n body: reqBody/n }/n/n const url = \'https://serve.onegraph.com/graphql?app_id=\' + siteId/n/n return fetch(url, reqOptions).then(response => response.text());/n}/n/nconst fetchNetlifyGraph = async function fetchNetlifyGraph(input) {/n const accessToken = input.options.accessToken/n const query = input.query/n const operationName = input.operationName/n const variables = input.variables/n const options = input.options || {}/n/n const siteId = options.siteId || process.env.SITE_ID/n/n const payload = {/n query: query,/n variables: variables,/n operationName: operationName,/n }/n/n const result = await httpFetch(/n siteId,/n {/n method: \'POST\',/n headers: {/n Authorization: accessToken ? /"Bearer /" + accessToken : \'\',/n },/n body: JSON.stringify(payload),/n },/n )/n/n return JSON.parse(result)/n}/n/n/n/n/nexport const executeUpdateCLISessionMetadataMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpdateCLISessionMetadataMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAppSchemaQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AppSchemaQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDestroyTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DestroyTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSignOutServicesMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SignOutServicesMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddAuthsMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddAuthsMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateNewSchemaMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateNewSchemaMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeDeleteServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"DeleteServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreatePersistedQueryMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreatePersistedQueryMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchFindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeSetServiceAuthMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"SetServiceAuthMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateCLISessionEventMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateCLISessionEventMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionByIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionByIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchDeprecated_FindLoggedInServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"Deprecated_FindLoggedInServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeCreateEmptyPersonalTokenMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CreateEmptyPersonalTokenMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchServiceListQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ServiceListQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchAuthlifyTokenIdForPersonalToken = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AuthlifyTokenIdForPersonalToken/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchPersistedQueryQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"PersistedQueryQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCliSessionsByAppIdQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CliSessionsByAppIdQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchListServicesQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"ListServicesQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeUpsertAppForSiteMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"UpsertAppForSiteMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeAddCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"AddCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const executeRemoveCORSOriginMutation = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"RemoveCORSOriginMutation/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nexport const fetchCORSOriginsQuery = (/n variables,/n options/n ) => {/n return fetchNetlifyGraph({/n query: operationsDoc,/n operationName: /"CORSOriginsQuery/",/n variables: variables,/n options: options || {},/n });/n }/n/n/nconst subscribeToTestSubscription = async (/n /**/n * This will be available in your webhook handler as a query parameter./n * Use this to keep track of which subscription you\'re receiving/n * events for./n *//n netlifyGraphWebhookId,/n variables,/n rawOptions/n ) => {/n const options = rawOptions || {}/n const netlifyGraphWebhookUrl = `${process.env.DEPLOY_URL}/webhooks/TestSubscription?netlifyGraphWebhookId=${netlifyGraphWebhookId}`/n const secret = options.secret || process.env.NETLIFY_GRAPH_WEBHOOK_SECRET/n const fullVariables = {...variables, netlifyGraphWebhookUrl: netlifyGraphWebhookUrl, netlifyGraphWebhookSecret: { hmacSha256Key: secret }}/n/n const subscriptionOperationDoc = `subscription TestSubscription($minutes: Int = 1, $netlifyGraphWebhookUrl: String!, $netlifyGraphWebhookSecret: OneGraphSubscriptionSecretInput!) @netlify(id: /"/"/"e3d4bb8b-2fb5-9898-b051-db8888888888/"/"/", doc: /"/"/"A subscription with variables and a fragment to test code generation./"/"/") {/n poll(/n schedule: {every: {minutes: $minutes}}/n onlyTriggerWhenPayloadChanged: true/n webhookUrl: $netlifyGraphWebhookUrl/n secret: $netlifyGraphWebhookSecret/n ) {/n query {/n me {/n serviceMetadata {/n loggedInServices {/n ...LoggedInServicesFragment/n }/n }/n }/n }/n }/n}`;/n/n const result = await fetchNetlifyGraph({/n query: subscriptionOperationDoc,/n operationName: /"TestSubscription/",/n variables: fullVariables,/n options: Object.assign({accessToken: accessToken}, options || {}),/n })/n}/n/nconst parseAndVerifyTestSubscriptionEvent = (event) => {/n if (!verifyRequestSignature({ event: event })) {/n console.warn(/"Unable to verify signature for TestSubscription/")/n return null/n }/n/n return JSON.parse(event.body || \'{}\')/n}/n/n/**/n * The generated NetlifyGraph library with your operations/n *//nconst functions = {/n /**/n * Update a service\'s (i.e. GitHub) enabled scope permissions/n *//n executeAddAuthsMutation : executeAddAuthsMutation ,/n /**/n * Add additional allowed CORS origins for calls to a site\'s Graph./n *//n executeAddCORSOriginMutation : executeAddCORSOriginMutation ,/n /**/n * Create a new session for the Netlify CLI to communicate with the React UI via events./n *//n executeCreateCLISessionEventMutation : executeCreateCLISessionEventMutation ,/n /**/n * Create a new OneGraph personal token for a user\'s site/n *//n executeCreateEmptyPersonalTokenMutation : executeCreateEmptyPersonalTokenMutation ,/n /**/n * Create a new GraphQL schema for an app with a set of services enabled. Note that this just makes the schema _available_ for the app to use, it doesn\'t set it as the default for all queries to use./n *//n executeCreateNewSchemaMutation : executeCreateNewSchemaMutation ,/n /**/n * Given a document with GraphQL operations, persist them to OneGraph (with not specific metadata, e.g. cache TTL or auth) for later retrieval _or_ execution./n *//n executeCreatePersistedQueryMutation : executeCreatePersistedQueryMutation ,/n /**/n * Delete a custom service auth/n *//n executeDeleteServiceAuthMutation : executeDeleteServiceAuthMutation ,/n /**/n * Delete a OneGraph personal token for a user\'s site/n *//n executeDestroyTokenMutation : executeDestroyTokenMutation ,/n /**/n * Remove the given CORS origins for calls to a site\'s Graph./n *//n executeRemoveCORSOriginMutation : executeRemoveCORSOriginMutation ,/n /**/n * Create a custom service auth/n *//n executeSetServiceAuthMutation : executeSetServiceAuthMutation ,/n /**/n * Sign out of a service associated with a Authlify token/n *//n executeSignOutServicesMutation : executeSignOutServicesMutation ,/n /**/n * Modify the metadata of an existing CLI session (an intentionally untype bag of `JSON`)./n *//n executeUpdateCLISessionMetadataMutation : executeUpdateCLISessionMetadataMutation ,/n /**/n * Ensure that an app resource exists on the OneGraph servers for a given site./n *//n executeUpsertAppForSiteMutation : executeUpsertAppForSiteMutation ,/n /**/n * Get the _metadata_ about a site\'s current GraphQL schema:/n* /n* - enabled services/n* - schema id/n* - creation date/n* /n* etc./n *//n fetchAppSchemaQuery: fetchAppSchemaQuery,/n /**/n * /n *//n fetchAuthlifyTokenIdForPersonalToken: fetchAuthlifyTokenIdForPersonalToken,/n /**/n * Get a Netlify CLI session by its id/n *//n fetchCliSessionByIdQuery: fetchCliSessionByIdQuery,/n /**/n * List all the CLI sessions belonging to a site/n *//n fetchCliSessionsByAppIdQuery: fetchCliSessionsByAppIdQuery,/n /**/n * List the allowed CORS origins for calls to a site\'s Graph./n *//n fetchCORSOriginsQuery: fetchCORSOriginsQuery,/n /**/n * (Deprecated) Find logged in services/n *//n fetchDeprecated_FindLoggedInServicesQuery: fetchDeprecated_FindLoggedInServicesQuery,/n /**/n * Fetch all logged-in OneGraph services (GitHub, Spotify, etc.) for a user\'s site/n *//n fetchFindLoggedInServicesQuery: fetchFindLoggedInServicesQuery,/n /**/n * Fetch all available OneGraph services (GitHub, Spotify, etc.), as well as any custom service auths that may be installed for a site./n *//n fetchListServicesQuery: fetchListServicesQuery,/n /**/n * Retrieve a previously persisted operations doc/n *//n fetchPersistedQueryQuery: fetchPersistedQueryQuery,/n /**/n * Retrieve a list of _all_ supported services from OneGraph/n *//n fetchServiceListQuery: fetchServiceListQuery/n}/n/nexport default functions/n/n"}' + +## netlify graph handler codegen [unknown-queryWithFragment-typescript-esm] + +> Snapshot 1 + + '"ListServicesQuery.ts: import NetlifyGraph from /"./netlifyGraph/"/n/nexport const handler = async (event) => {/n // By default, all API calls use no authentication/n let accessToken;/n/n //// If you want to use the client\'s accessToken when making API calls on the user\'s behalf:/n // accessToken = event.headers[/"authorization/"]?.split(/" /")[1]/n/n //// If you want to use the API with your own access token:/n // accessToken = event.authlifyToken/n /n const eventBodyJson = JSON.parse(event.body || /"{}/");/n/n const nfToken = event.queryStringParameters?.nfToken;/n const siteId = event.queryStringParameters?.siteId;/n const logoStyle = event.queryStringParameters?.logoStyle;/n/n if (nfToken === undefined || nfToken === null || siteId === undefined || siteId === null) {/n return {/n statusCode: 422,/n body: JSON.stringify({/n error: \'You must supply parameters for: `nfToken`, `siteId`\'/n }),/n };/n }/n/n const { errors: ListServicesQueryErrors, data: ListServicesQueryData } =/n await NetlifyGraph.fetchListServicesQuery({ nfToken: nfToken, siteId: siteId, logoStyle: logoStyle }, {accessToken: accessToken});/n/n if (ListServicesQueryErrors) {/n console.error(JSON.stringify(ListServicesQueryErrors, null, 2));/n }/n/n console.log(JSON.stringify(ListServicesQueryData, null, 2));/n/n return {/n statusCode: 200,/n body: JSON.stringify({/n success: true,/n ListServicesQueryErrors: ListServicesQueryErrors,/n ListServicesQueryData: ListServicesQueryData/n }),/n headers: {/n \'content-type\': \'application/json\',/n },/n };/n};/n/n/** /n * Client-side invocations:/n * Call your Netlify function from the browser (after saving/n * the code to `ListServicesQuery.js`) with these helpers:/n *//n/n/**/nasync function fetchListServicesQuery(params) {/n const {nfToken, siteId, logoStyle} = params || {};/n const resp = await fetch(`/.netlify/functions/ListServicesQuery?nfToken=${nfToken}&siteId=${siteId}&logoStyle=${logoStyle}`,/n {/n method: /"GET/"/n });/n/n const text = await resp.text();/n/n return JSON.parse(text);/n}/n*//n"' + +## netlify graph handler codegen [#custom-subscriptionWithFragment-javascript-esm] + +> Snapshot 1 + + '"TestSubscription.js: import NetlifyGraph from /".,netlifyGraph/"/n/nexport const handler = async (event, context) => {/n const payload = NetlifyGraph.parseAndVerifyTestSubscriptionEvent(event);/n/n if (!payload) {/n return {/n statusCode: 412,/n data: JSON.stringify({/n success: false,/n error: \'Unable to verify payload signature\',/n }),/n };/n }/n const { errors: TestSubscriptionErrors, data: TestSubscriptionData } = payload;/n/n if (TestSubscriptionErrors) {/n console.error(TestSubscriptionErrors);/n }/n/n console.log(TestSubscriptionData);/n/n /**/n * If you want to unsubscribe from this webhook/n * in order to stop receiving new events,/n * simply return status 410, e.g.:/n */n * return {/n * statusCode: 410,/n * body: JSON.stringify(null),/n * headers: {/n * \'content-type\': \'application/json\',/n * },/n * }/n *//n/n return {/n statusCode: 200,/n body: JSON.stringify({/n successfullyProcessedIncomingWebhook: true,/n }),/n headers: {/n \'content-type\': \'application/json\',/n },/n };/n};/n"' + +## netlify graph handler codegen [Next.js-subscriptionWithFragment-javascript-esm] + +> Snapshot 1 + + '"TestSubscription.js: import NetlifyGraph from /"./netlifyGraph/";/n/nexport const handler = async (req, res) => {/n const reqBody = await extractBody(req);/n/n const payload = NetlifyGraph.parseAndVerifyTestSubscriptionEvent({/n headers: {/n /"x-netlify-graph-signature/": req.headers[/n /"x-netlify-graph-signature/"/n ]/n },/n body: reqBody,/n });/n/n if (!payload) {/n return res.status(422).json({/n success: false,/n error: \'Unable to verify payload signature\',/n });/n }/n/n const { errors, data } = payload;/n/n if (errors) {/n console.error(errors);/n }/n/n console.log(data);/n/n res.setHeader(/"Content-Type/", /"application/json/");/n/n /**/n * If you want to unsubscribe from this webhook/n * in order to stop receiving new events,/n * simply return status 410, e.g.:/n * /n * return res.status(410).json({});/n *//n/n return res.status(200).json({/n successfullyProcessedIncomingWebhook: true,/n });/n};/n/nexport default handler;/n/nexport const config = {/n api: {/n // We manually parse the body of the request in order to verify/n // that it\'s signed by Netlify before processing the event./n bodyParser: false,/n },/n};/n/nconst extractBody = (req) => {/n let body = [];/n const promise = new Promise((resolve, reject) => {/n req/n .on(/"data/", (chunk) => {/n body.push(chunk);/n })/n .on(/"end/", () => {/n const fullBody = Buffer.concat(body).toString();/n resolve(fullBody);/n });/n });/n/n return promise;/n};/n"' + +## netlify graph handler codegen [Remix-subscriptionWithFragment-javascript-esm] + +> Snapshot 1 + + '"app|routes|webhooks|TestSubscription.js: import { json } from /"remix/";/nimport NetlifyGraph from /"../.,netlifyGraph/";/n/nexport const action = async ({ request }) => {/n const reqBody = await request.text();/n/n const payload = NetlifyGraph.parseAndVerifyTestSubscriptionEvent({/n body: reqBody,/n headers: {/n \'x-netlify-graph-signature\': request.headers.get(\'x-netlify-graph-signature\')/n },/n });/n/n if (!payload) {/n return json({/n success: false,/n error: \'Unable to verify payload signature\',/n }, { status: 422 });/n }/n/n const { errors, data } = payload;/n/n if (errors) {/n console.error(errors);/n }/n/n console.log(data);/n/n /**/n * If you want to unsubscribe from this webhook/n * in order to stop receiving new events,/n * simply return status 410, e.g.:/n */n * return json({}, { status: 410 });/n *//n/n return json({/n successfullyProcessedIncomingWebhook: true,/n });/n};/n"' + +## netlify graph handler codegen [unknown-subscriptionWithFragment-javascript-esm] + +> Snapshot 1 + + '"TestSubscription.js: import NetlifyGraph from /".,netlifyGraph/"/n/nexport const handler = async (event, context) => {/n const payload = NetlifyGraph.parseAndVerifyTestSubscriptionEvent(event);/n/n if (!payload) {/n return {/n statusCode: 412,/n data: JSON.stringify({/n success: false,/n error: \'Unable to verify payload signature\',/n }),/n };/n }/n const { errors: TestSubscriptionErrors, data: TestSubscriptionData } = payload;/n/n if (TestSubscriptionErrors) {/n console.error(TestSubscriptionErrors);/n }/n/n console.log(TestSubscriptionData);/n/n /**/n * If you want to unsubscribe from this webhook/n * in order to stop receiving new events,/n * simply return status 410, e.g.:/n */n * return {/n * statusCode: 410,/n * body: JSON.stringify(null),/n * headers: {/n * \'content-type\': \'application/json\',/n * },/n * }/n *//n/n return {/n statusCode: 200,/n body: JSON.stringify({/n successfullyProcessedIncomingWebhook: true,/n }),/n headers: {/n \'content-type\': \'application/json\',/n },/n };/n};/n"' + +## netlify graph handler codegen [#custom-subscriptionWithFragment-typescript-esm] + +> Snapshot 1 + + '"TestSubscription.ts: import NetlifyGraph from /".,netlifyGraph/"/n/nexport const handler = async (event, context) => {/n const payload = NetlifyGraph.parseAndVerifyTestSubscriptionEvent(event);/n/n if (!payload) {/n return {/n statusCode: 412,/n data: JSON.stringify({/n success: false,/n error: \'Unable to verify payload signature\',/n }),/n };/n }/n const { errors: TestSubscriptionErrors, data: TestSubscriptionData } = payload;/n/n if (TestSubscriptionErrors) {/n console.error(TestSubscriptionErrors);/n }/n/n console.log(TestSubscriptionData);/n/n /**/n * If you want to unsubscribe from this webhook/n * in order to stop receiving new events,/n * simply return status 410, e.g.:/n */n * return {/n * statusCode: 410,/n * body: JSON.stringify(null),/n * headers: {/n * \'content-type\': \'application/json\',/n * },/n * }/n *//n/n return {/n statusCode: 200,/n body: JSON.stringify({/n successfullyProcessedIncomingWebhook: true,/n }),/n headers: {/n \'content-type\': \'application/json\',/n },/n };/n};/n"' + +## netlify graph handler codegen [Next.js-subscriptionWithFragment-typescript-esm] + +> Snapshot 1 + + '"TestSubscription.ts: import type { NextApiRequest, NextApiResponse } from /"next/";/nimport NetlifyGraph from /"./netlifyGraph/";/n/nexport const handler = async (req: NextApiRequest, res: NextApiResponse) => {/n const reqBody = await extractBody(req);/n/n const payload = NetlifyGraph.parseAndVerifyTestSubscriptionEvent({/n headers: {/n /"x-netlify-graph-signature/": req.headers[/n /"x-netlify-graph-signature/"/n ] as string/n },/n body: reqBody,/n });/n/n if (!payload) {/n return res.status(422).json({/n success: false,/n error: \'Unable to verify payload signature\',/n });/n }/n/n const { errors, data } = payload;/n/n if (errors) {/n console.error(errors);/n }/n/n console.log(data);/n/n res.setHeader(/"Content-Type/", /"application/json/");/n/n /**/n * If you want to unsubscribe from this webhook/n * in order to stop receiving new events,/n * simply return status 410, e.g.:/n * /n * return res.status(410).json({});/n *//n/n return res.status(200).json({/n successfullyProcessedIncomingWebhook: true,/n });/n};/n/nexport default handler;/n/nexport const config = {/n api: {/n // We manually parse the body of the request in order to verify/n // that it\'s signed by Netlify before processing the event./n bodyParser: false,/n },/n};/n/nconst extractBody = (req: NextApiRequest): Promise => {/n let body = [];/n const promise: Promise = new Promise((resolve, reject) => {/n req/n .on(/"data/", (chunk) => {/n body.push(chunk);/n })/n .on(/"end/", () => {/n const fullBody = Buffer.concat(body).toString();/n resolve(fullBody);/n });/n });/n/n return promise;/n};/n"' + +## netlify graph handler codegen [Remix-subscriptionWithFragment-typescript-esm] + +> Snapshot 1 + + '"app|routes|webhooks|TestSubscription.tsx: import { ActionFunction, json } from /"remix/";/nimport NetlifyGraph from /"../.,netlifyGraph/";/n/nexport const action: ActionFunction = async ({ request }) => {/n const reqBody = await request.text();/n/n const payload = NetlifyGraph.parseAndVerifyTestSubscriptionEvent({/n body: reqBody,/n headers: {/n \'x-netlify-graph-signature\': request.headers.get(\'x-netlify-graph-signature\')/n },/n });/n/n if (!payload) {/n return json({/n success: false,/n error: \'Unable to verify payload signature\',/n }, { status: 422 });/n }/n/n const { errors, data } = payload;/n/n if (errors) {/n console.error(errors);/n }/n/n console.log(data);/n/n /**/n * If you want to unsubscribe from this webhook/n * in order to stop receiving new events,/n * simply return status 410, e.g.:/n */n * return json({}, { status: 410 });/n *//n/n return json({/n successfullyProcessedIncomingWebhook: true,/n });/n};/n"' + +## netlify graph handler codegen [unknown-subscriptionWithFragment-typescript-esm] + +> Snapshot 1 + + '"TestSubscription.ts: import NetlifyGraph from /".,netlifyGraph/"/n/nexport const handler = async (event, context) => {/n const payload = NetlifyGraph.parseAndVerifyTestSubscriptionEvent(event);/n/n if (!payload) {/n return {/n statusCode: 412,/n data: JSON.stringify({/n success: false,/n error: \'Unable to verify payload signature\',/n }),/n };/n }/n const { errors: TestSubscriptionErrors, data: TestSubscriptionData } = payload;/n/n if (TestSubscriptionErrors) {/n console.error(TestSubscriptionErrors);/n }/n/n console.log(TestSubscriptionData);/n/n /**/n * If you want to unsubscribe from this webhook/n * in order to stop receiving new events,/n * simply return status 410, e.g.:/n */n * return {/n * statusCode: 410,/n * body: JSON.stringify(null),/n * headers: {/n * \'content-type\': \'application/json\',/n * },/n * }/n *//n/n return {/n statusCode: 200,/n body: JSON.stringify({/n successfullyProcessedIncomingWebhook: true,/n }),/n headers: {/n \'content-type\': \'application/json\',/n },/n };/n};/n"' diff --git a/tests/integration/snapshots/530.graph-codegen.test.js.snap b/tests/integration/snapshots/530.graph-codegen.test.js.snap index 1ff556c5edf..59ccab82c1e 100644 Binary files a/tests/integration/snapshots/530.graph-codegen.test.js.snap and b/tests/integration/snapshots/530.graph-codegen.test.js.snap differ