@sortlist/cli 0.36.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/sl.mjs +20 -7
- package/dist/index.js +1579 -0
- package/dist/index.js.map +1 -0
- package/package.json +8 -7
- package/src/codegen.ts +0 -34
- package/src/commands/config.ts +0 -95
- package/src/commands/dynamic.test.ts +0 -87
- package/src/commands/dynamic.ts +0 -569
- package/src/commands/login.ts +0 -155
- package/src/commands/logout.ts +0 -45
- package/src/commands/token.ts +0 -23
- package/src/commands/whoami.ts +0 -55
- package/src/graphql/client.ts +0 -259
- package/src/graphql/generated/gql.ts +0 -70
- package/src/graphql/generated/graphql.ts +0 -4757
- package/src/graphql/generated/index.ts +0 -1
- package/src/graphql/introspection.ts +0 -240
- package/src/graphql/operations/common.ts +0 -16
- package/src/graphql/operations/hermes.ts +0 -54
- package/src/graphql/query-builder.test.ts +0 -114
- package/src/graphql/query-builder.ts +0 -239
- package/src/index.ts +0 -186
- package/src/lib/auth.test.ts +0 -30
- package/src/lib/auth.ts +0 -58
- package/src/lib/browser.ts +0 -11
- package/src/lib/company.ts +0 -15
- package/src/lib/config.ts +0 -80
- package/src/lib/env.ts +0 -10
- package/src/lib/output.ts +0 -58
- package/src/lib/sentry.ts +0 -70
- package/src/lib/version-check.ts +0 -88
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/commands/config.ts","../src/lib/auth.ts","../src/lib/output.ts","../src/lib/config.ts","../src/lib/env.ts","../src/lib/package-root.ts","../src/commands/dynamic.ts","../src/graphql/client.ts","../src/lib/sentry.ts","../src/graphql/generated/graphql.ts","../src/graphql/generated/gql.ts","../src/graphql/operations/hermes.ts","../src/graphql/query-builder.ts","../src/lib/company.ts","../src/commands/login.ts","../src/graphql/operations/common.ts","../src/lib/browser.ts","../src/commands/logout.ts","../src/commands/token.ts","../src/commands/whoami.ts","../src/graphql/introspection.ts","../src/lib/version-check.ts"],"sourcesContent":["import { Command } from 'commander';\n\nimport { configCommand } from './commands/config.ts';\nimport { buildServiceCommands, formatTypeInspection } from './commands/dynamic.ts';\nimport { loginCommand } from './commands/login.ts';\nimport { logoutCommand } from './commands/logout.ts';\nimport { tokenCommand } from './commands/token.ts';\nimport { whoamiCommand } from './commands/whoami.ts';\nimport { getIntrospectedSchema, refreshSchema } from './graphql/introspection.ts';\nimport { error, hint, info } from './lib/output.ts';\nimport { pkg } from './lib/package-root.ts';\nimport { captureException, flushSentry, initSentry } from './lib/sentry.ts';\nimport { checkForUpdates } from './lib/version-check.ts';\n\ninitSentry();\n\n// ── Colored help output ──\n\nconst useColor = process.stdout.isTTY && !process.env.NO_COLOR;\nconst ansi = {\n reset: '\\x1b[0m',\n bold: '\\x1b[1m',\n dim: '\\x1b[2m',\n cyan: '\\x1b[36m',\n yellow: '\\x1b[33m',\n green: '\\x1b[32m',\n};\n\nfunction colorizeHelp(text: string): string {\n if (!useColor) return text;\n return text.replace(\n /^(Usage|Options|Commands|Arguments|Quick start|Services|Examples|Queries|Mutations):(.*)$/gm,\n `${ansi.cyan}${ansi.bold}$1:$2${ansi.reset}`,\n );\n}\n\nconst colorOutput = {\n writeOut: (str: string) => process.stdout.write(colorizeHelp(str)),\n writeErr: (str: string) => process.stderr.write(colorizeHelp(str)),\n};\n\nfunction applyColorToAllCommands(cmd: Command): void {\n cmd.configureOutput(colorOutput);\n for (const sub of cmd.commands) {\n applyColorToAllCommands(sub as Command);\n }\n}\n\nconst BASE_DESCRIPTION =\n 'Sortlist CLI — query and manage the Sortlist platform from your terminal\\n\\n' +\n 'Quick start:\\n' +\n ' sl login Authenticate with your Sortlist account\\n' +\n \" sl whoami Check who you're logged in as\";\n\nfunction buildRootDescription(services: Map<string, { exampleQuery: string | null; description: string }>): string {\n const parts = [BASE_DESCRIPTION];\n\n if (services.size > 0) {\n const entries = [...services.entries()];\n const labels = entries.map(([name]) => `sl ${name} <operation>`);\n const pad = Math.max(...labels.map((l) => l.length));\n\n parts.push(\n 'Services:\\n' + entries.map(([name, info], i) => ` ${labels[i].padEnd(pad)} ${info.description}`).join('\\n'),\n );\n\n const examples: string[] = [];\n for (const [name, info] of entries) {\n if (info.exampleQuery) examples.push(` sl ${name} ${info.exampleQuery}`);\n if (examples.length >= 2) break;\n }\n examples.push(' sl config show View current endpoint and agency context');\n parts.push('Examples:\\n' + examples.join('\\n'));\n }\n\n return parts.join('\\n\\n');\n}\n\nconst program = new Command()\n .name('sl')\n .configureOutput({\n writeOut: (str) => process.stdout.write(colorizeHelp(str)),\n writeErr: (str) => process.stderr.write(colorizeHelp(str)),\n })\n .description(BASE_DESCRIPTION)\n .version(pkg.version)\n .option('--endpoint <url>', 'Override the federation endpoint URL')\n .option('--json', 'Output as JSON (auto-enabled when stdout is not a TTY)')\n .option('--no-color', 'Disable colored output');\n\n// Auth commands (hand-written — interactive flows)\nprogram.addCommand(loginCommand);\nprogram.addCommand(logoutCommand);\nprogram.addCommand(whoamiCommand);\nprogram.addCommand(tokenCommand);\nprogram.addCommand(configCommand);\n\n// Schema refresh command\nconst schemaCommand = new Command('schema').description('Manage the cached GraphQL schema');\n\nschemaCommand\n .command('refresh')\n .description('Force-refresh the cached schema from the federation endpoint')\n .action(async function (this: Command) {\n const opts = this.optsWithGlobals();\n try {\n await refreshSchema(opts.endpoint);\n info('Schema refreshed successfully.');\n } catch (err) {\n error(`Failed to refresh schema: ${(err as Error).message}`);\n hint('Check your network connection and endpoint: sl config show');\n process.exit(1);\n }\n });\n\nschemaCommand\n .command('inspect <type>')\n .description('Show the fields/values of a schema type (e.g. an input filter or enum)')\n .action(async function (this: Command, typeName: string) {\n const opts = this.optsWithGlobals();\n try {\n const { schema } = await getIntrospectedSchema(opts.endpoint);\n const formatted = formatTypeInspection(schema, typeName);\n if (!formatted) {\n error(`No type named \"${typeName}\" in the schema.`);\n hint('Type names are case-sensitive, e.g. `sl schema inspect OrganizationFilterInput`.');\n hint('Find argument types in any command’s --help output.');\n process.exit(1);\n }\n info(formatted);\n } catch (err) {\n error(`Could not read the schema: ${(err as Error).message}`);\n hint('Check your network connection and endpoint: sl config show');\n process.exit(1);\n }\n });\n\nprogram.addCommand(schemaCommand);\n\n// Parse --endpoint early so introspection uses the right URL\nconst endpointIdx = process.argv.indexOf('--endpoint');\nconst endpointOverride = endpointIdx !== -1 ? process.argv[endpointIdx + 1] : undefined;\n\n// Dynamically register subgraph commands from introspected schema\ntry {\n const { schema, fieldServices } = await getIntrospectedSchema(endpointOverride);\n const serviceCommands = buildServiceCommands(schema, fieldServices);\n\n const servicesForHelp = new Map<string, { exampleQuery: string | null; description: string }>();\n\n for (const [name, entry] of serviceCommands) {\n const cmd = entry.command;\n program.addCommand(cmd);\n servicesForHelp.set(name, {\n exampleQuery: entry.exampleQuery,\n description: cmd.description(),\n });\n }\n\n program.description(buildRootDescription(servicesForHelp));\n} catch (err) {\n // Schema fetch failed — still allow non-subgraph commands (login, config, etc.)\n const message = (err as Error).message;\n if (!process.argv.some((a) => ['login', 'logout', 'config', 'token', 'whoami', 'schema'].includes(a))) {\n error(`Could not fetch schema: ${message}`);\n hint('Check your network connection and endpoint: sl config show');\n hint('You can still use: sl login, sl config, sl schema refresh');\n process.exit(1);\n }\n}\n\napplyColorToAllCommands(program);\n\nawait checkForUpdates();\n\ntry {\n await program.parseAsync(process.argv);\n} catch (err) {\n captureException(err);\n await flushSentry();\n throw err;\n}\n\nawait flushSentry();\n","import { Command } from 'commander';\n\nimport { clearCredentials } from '../lib/auth.ts';\nimport { loadConfig, resetConfig, saveConfig } from '../lib/config.ts';\nimport { isLocalDev } from '../lib/env.ts';\nimport { error, hint, info, isJsonMode, printJson, success } from '../lib/output.ts';\n\nconst PRODUCTION_ENDPOINT = 'https://federation.sortlist.com/graphql';\nconst STAGING_ENDPOINT = 'https://federation.sortlist-test.com/graphql';\nconst LOCAL_ENDPOINT = 'http://localhost:4020/graphql';\n\nexport const configCommand = new Command('config')\n .summary('View or update CLI configuration')\n .description(\n 'View or update CLI configuration\\n\\n' +\n 'Manage your company context and credentials.\\n\\n' +\n 'Examples:\\n' +\n ' sl config show See current endpoint and company\\n' +\n (isLocalDev ? ' sl config set endpoint <url> Point to a custom endpoint\\n' : '') +\n ' sl config reset Clear all config and credentials',\n );\n\nconfigCommand\n .command('show')\n .description('Show current configuration')\n .action(function (this: Command) {\n const opts = this.optsWithGlobals();\n const config = loadConfig();\n if (isJsonMode(opts)) {\n printJson(config);\n } else {\n info(`Endpoint: ${config.endpoint}`);\n if (config.oauthId) info(`User: ${config.oauthId}`);\n if (config.companyId) info(`Company ID: ${config.companyId}`);\n }\n });\n\nconfigCommand\n .command('set <key> <value>')\n .description(`Set a config value (${isLocalDev ? 'endpoint, ' : ''}companyId)`)\n .action((key: string, value: string) => {\n // `endpoint` is dev-only — published builds always target production, so the\n // endpoint must not be overridable there (mirrors the gated use-* commands).\n const allowed = [...(isLocalDev ? ['endpoint'] : []), 'companyId', 'oauthId'];\n if (!allowed.includes(key)) {\n error(`Unknown config key: \"${key}\".`);\n info('');\n info(' Allowed keys:');\n for (const k of allowed) {\n info(` ${k}`);\n }\n hint('Usage: sl config set <key> <value>');\n process.exit(1);\n }\n saveConfig({ [key]: value });\n success(`Set ${key} = ${value}`);\n });\n\nif (isLocalDev) {\n configCommand\n .command('use-production')\n .description('Point CLI to production (federation.sortlist.com)')\n .action(() => {\n saveConfig({ endpoint: PRODUCTION_ENDPOINT });\n success(`Endpoint set to ${PRODUCTION_ENDPOINT}`);\n hint('Run `sl login` to authenticate against production.');\n });\n\n configCommand\n .command('use-staging')\n .description('Point CLI to staging (federation.sortlist-test.com)')\n .action(() => {\n saveConfig({ endpoint: STAGING_ENDPOINT });\n success(`Endpoint set to ${STAGING_ENDPOINT}`);\n hint('Run `sl login` to authenticate against staging.');\n });\n\n configCommand\n .command('use-local')\n .description('Point CLI to local development (localhost:4020)')\n .action(() => {\n saveConfig({ endpoint: LOCAL_ENDPOINT });\n success(`Endpoint set to ${LOCAL_ENDPOINT}`);\n });\n}\n\nconfigCommand\n .command('reset')\n .description('Reset all config and credentials')\n .action(() => {\n resetConfig();\n clearCredentials();\n success('Config and credentials cleared.');\n hint('Run `sl login` to re-authenticate.');\n });\n","import fs from 'fs';\nimport os from 'os';\nimport path from 'path';\n\nimport { error, hint } from './output.ts';\n\nconst CREDENTIALS_PATH = path.join(os.homedir(), '.sortlist', 'credentials.json');\n\nexport interface Credentials {\n accessToken: string;\n refreshToken: string;\n idToken: string;\n expiresAt: number;\n}\n\nfunction ensureDir(): void {\n const dir = path.dirname(CREDENTIALS_PATH);\n if (!fs.existsSync(dir)) {\n fs.mkdirSync(dir, { recursive: true });\n }\n}\n\nexport function saveCredentials(creds: Credentials): void {\n ensureDir();\n fs.writeFileSync(CREDENTIALS_PATH, JSON.stringify(creds, null, 2) + '\\n', { mode: 0o600 });\n}\n\nexport function loadCredentials(): Credentials | null {\n try {\n const raw = fs.readFileSync(CREDENTIALS_PATH, 'utf-8');\n return JSON.parse(raw) as Credentials;\n } catch {\n return null;\n }\n}\n\nexport function clearCredentials(): void {\n try {\n fs.unlinkSync(CREDENTIALS_PATH);\n } catch {\n // already gone\n }\n}\n\nexport function isExpired(creds: Credentials): boolean {\n // 60s buffer before actual expiry\n return Date.now() >= (creds.expiresAt - 60) * 1000;\n}\n\nexport function ensureAuthenticated(): Credentials {\n const creds = loadCredentials();\n if (!creds) {\n error('You are not logged in.');\n hint('Run `sl login` to authenticate with your Sortlist account.');\n process.exit(2);\n }\n return creds;\n}\n","// ── Color helpers (respect --no-color / NO_COLOR) ──\n\nfunction colorEnabled(): boolean {\n return process.stderr.isTTY === true && !process.env.NO_COLOR;\n}\n\nconst ansi = {\n reset: '\\x1b[0m',\n dim: '\\x1b[2m',\n red: '\\x1b[31m',\n green: '\\x1b[32m',\n yellow: '\\x1b[33m',\n};\n\nfunction c(code: keyof typeof ansi, text: string): string {\n if (!colorEnabled()) return text;\n return `${ansi[code]}${text}${ansi.reset}`;\n}\n\n// ── JSON mode detection ──\n\nexport function isJsonMode(options: { json?: boolean }): boolean {\n if (options.json) return true;\n return !process.stdout.isTTY;\n}\n\nexport function printJson(data: unknown): void {\n process.stdout.write(JSON.stringify(data, null, 2) + '\\n');\n}\n\n// ── Message helpers ──\n// Every function uses a text prefix so status is conveyed independent of color.\n// Color is enhancement only — never the sole status indicator.\n\n/** General informational message (no prefix). */\nexport function info(msg: string): void {\n process.stderr.write(`${msg}\\n`);\n}\n\n/** Success: confirms an outcome. Use after a completed action. */\nexport function success(msg: string): void {\n process.stderr.write(`${c('green', '\\u2713')} ${msg}\\n`);\n}\n\n/** Warning: something is off but not fatal. */\nexport function warn(msg: string): void {\n process.stderr.write(`${c('yellow', '\\u26A0')} ${msg}\\n`);\n}\n\n/** Error: state what failed, why, and what to do next. */\nexport function error(msg: string): void {\n process.stderr.write(`${c('red', '\\u2717')} Error: ${msg}\\n`);\n}\n\n/** Hint: suggest a next step or recovery action. Indented for readability. */\nexport function hint(msg: string): void {\n process.stderr.write(`${c('dim', ' ' + msg)}\\n`);\n}\n","import fs from 'fs';\nimport os from 'os';\nimport path from 'path';\n\nconst SORTLIST_DIR = path.join(os.homedir(), '.sortlist');\nconst CONFIG_PATH = path.join(SORTLIST_DIR, 'config.json');\n\nexport interface CliConfig {\n endpoint: string;\n oauthId?: string;\n companyId?: string;\n}\n\nconst DEFAULT_CONFIG: CliConfig = {\n endpoint: 'https://federation.sortlist.com/graphql',\n};\n\nfunction ensureDir(): void {\n if (!fs.existsSync(SORTLIST_DIR)) {\n fs.mkdirSync(SORTLIST_DIR, { recursive: true });\n }\n}\n\nexport function loadConfig(): CliConfig {\n try {\n const raw = fs.readFileSync(CONFIG_PATH, 'utf-8');\n return { ...DEFAULT_CONFIG, ...JSON.parse(raw) };\n } catch {\n return { ...DEFAULT_CONFIG };\n }\n}\n\nexport function saveConfig(config: Partial<CliConfig>): void {\n ensureDir();\n const current = loadConfig();\n const merged = { ...current, ...config };\n fs.writeFileSync(CONFIG_PATH, JSON.stringify(merged, null, 2) + '\\n');\n}\n\nexport function resetConfig(): void {\n try {\n fs.unlinkSync(CONFIG_PATH);\n } catch {\n // already gone\n }\n}\n\n/**\n * Drops the cached identity (user + company/agency context) while preserving\n * non-identity settings like the endpoint. Used by `logout` so the next login\n * can't surface the previous account's user and company.\n */\nexport function clearIdentity(): void {\n const { endpoint } = loadConfig();\n ensureDir();\n fs.writeFileSync(CONFIG_PATH, JSON.stringify({ endpoint }, null, 2) + '\\n');\n}\n\nexport function getEndpoint(override?: string): string {\n if (override) return override;\n if (process.env.SL_ENDPOINT) return process.env.SL_ENDPOINT;\n return loadConfig().endpoint;\n}\n\n/**\n * Context variables that are auto-injected into generated commands.\n * These are read from config and can be overridden via CLI flags.\n */\nexport interface UserContext {\n oauthId?: string;\n companyId?: string;\n}\n\nexport function getUserContext(): UserContext {\n const config = loadConfig();\n return {\n oauthId: config.oauthId,\n companyId: config.companyId,\n };\n}\n","import fs from 'node:fs';\nimport path from 'node:path';\n\nimport { packageRoot } from './package-root.ts';\n\n/**\n * Whether the CLI is running from the platform monorepo (dev checkout)\n * vs a globally-installed npm package.\n *\n * Published builds contain a `.published` sentinel file stamped by CI.\n * Its absence means we're running from source.\n */\nexport const isLocalDev = !fs.existsSync(path.join(packageRoot, '.published'));\n","import fs from 'node:fs';\nimport path from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\n/**\n * Locate the @sortlist/cli package root by walking up from this module.\n * Relative `import.meta.url` paths break once the source is bundled into\n * dist/, so root-relative files (.published, package.json) must be resolved\n * through this instead.\n */\nfunction findPackageRoot(): string {\n let dir = path.dirname(fileURLToPath(import.meta.url));\n while (true) {\n const pkgPath = path.join(dir, 'package.json');\n if (fs.existsSync(pkgPath)) {\n try {\n const parsed = JSON.parse(fs.readFileSync(pkgPath, 'utf-8')) as { name?: string };\n if (parsed.name === '@sortlist/cli') return dir;\n } catch {\n // unreadable package.json — keep walking\n }\n }\n const parent = path.dirname(dir);\n if (parent === dir) throw new Error('Could not locate the @sortlist/cli package root');\n dir = parent;\n }\n}\n\nexport const packageRoot = findPackageRoot();\n\nexport const pkg = JSON.parse(fs.readFileSync(path.join(packageRoot, 'package.json'), 'utf-8')) as {\n name: string;\n version: string;\n};\n","/**\n * Dynamic command registration.\n *\n * Derives service grouping from the `@join__field(graph: ...)` directives\n * that the router injects into introspection responses, then builds\n * Commander.js commands at runtime.\n */\nimport { Command } from 'commander';\nimport {\n isEnumType,\n isInputObjectType,\n isInterfaceType,\n isListType,\n isNonNullType,\n isObjectType,\n isScalarType,\n isUnionType,\n type GraphQLArgument,\n type GraphQLEnumType,\n type GraphQLField,\n type GraphQLInputObjectType,\n type GraphQLInputType,\n type GraphQLNamedType,\n type GraphQLObjectType,\n type GraphQLOutputType,\n type GraphQLSchema,\n} from 'graphql';\n\nimport { graphqlRaw } from '../graphql/client.ts';\nimport { type FieldServiceMap } from '../graphql/introspection.ts';\nimport { buildQuery } from '../graphql/query-builder.ts';\nimport { resolveCompanyId } from '../lib/company.ts';\nimport { getUserContext } from '../lib/config.ts';\nimport { error, hint, printJson, warn } from '../lib/output.ts';\n\n// Context fields that are auto-injected from ~/.sortlist/config.json.\n// Schema field names (key) → UserContext property (value). The CLI is\n// company-scoped; marketplace fields like `agencyId` are NOT auto-filled\n// (Agency and Company are independent entities) and must be passed\n// explicitly via `--agency-id`.\nconst CONTEXT_FIELDS: Record<string, string> = {\n companyId: 'companyId',\n oauthId: 'oauthId',\n};\n\n// Fields to skip — internal relay/federation helpers\nconst SKIP_FIELDS = new Set(['node', 'nodes', 'id', '_entities', '_service']);\n\nfunction unwrap(type: GraphQLOutputType | GraphQLInputType): GraphQLNamedType {\n if (isNonNullType(type)) return unwrap(type.ofType as GraphQLOutputType | GraphQLInputType);\n if (isListType(type)) return unwrap(type.ofType as GraphQLOutputType | GraphQLInputType);\n return type as GraphQLNamedType;\n}\n\nfunction kebab(s: string): string {\n return s.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n}\n\nfunction ucfirst(s: string): string {\n return s.charAt(0).toUpperCase() + s.slice(1);\n}\n\n/**\n * For mutations with a single `input` argument of an Input type,\n * return the fields of that input type for flattening into CLI options.\n */\ninterface CliArg {\n name: string;\n type: GraphQLArgument['type'];\n required: boolean;\n description?: string | null;\n}\n\nfunction getInputFields(field: GraphQLField<unknown, unknown>): CliArg[] | null {\n if (field.args.length !== 1) return null;\n const arg = field.args[0];\n if (arg.name !== 'input') return null;\n const argType = unwrap(arg.type);\n if (!argType || !isInputObjectType(argType)) return null;\n const fields = argType.getFields();\n return Object.entries(fields).map(([name, f]) => ({\n name,\n type: f.type,\n required: isNonNullType(f.type),\n description: f.description,\n }));\n}\n\n/**\n * Render a GraphQL type as its SDL signature, e.g. `String!`,\n * `[OrganizationSortInput!]`, `OrganizationFilterInput`. Works for both input\n * and output types (the wrapper structure is identical).\n */\nfunction renderType(type: GraphQLInputType | GraphQLOutputType): string {\n if (isNonNullType(type)) return `${renderType(type.ofType as GraphQLInputType | GraphQLOutputType)}!`;\n if (isListType(type)) return `[${renderType(type.ofType as GraphQLInputType | GraphQLOutputType)}]`;\n return (type as GraphQLNamedType).name;\n}\n\n/**\n * A \"structured\" arg is one that must be supplied as JSON on the CLI and parsed\n * (rather than passed through as a raw string): lists and input objects. Plain\n * leaf scalars and enums are passed as raw strings — including when wrapped in\n * non-null (`String!` is still a bare string on the CLI). The non-null wrapper\n * is transparent for this decision; a list at any level means JSON.\n */\nfunction isStructuredInput(type: GraphQLInputType): boolean {\n if (isNonNullType(type)) return isStructuredInput(type.ofType as GraphQLInputType);\n if (isListType(type)) return true;\n return isInputObjectType(type);\n}\n\n/**\n * Coerce a raw CLI string into the value GraphQL expects for the arg's type.\n * Leaf scalars are parsed by name; structured types (input objects, lists,\n * enums) are parsed as JSON. Throws a readable error on malformed JSON so the\n * action can surface it instead of silently sending a bad string.\n */\nexport function coerceValue(raw: string, type: GraphQLInputType, flagName: string): unknown {\n if (isStructuredInput(type)) {\n try {\n return JSON.parse(raw);\n } catch (parseError) {\n throw new Error(\n `--${flagName} expects JSON for type ${renderType(type)}, but the value could not be parsed: ` +\n `${(parseError as Error).message}`,\n );\n }\n }\n\n const typeName = unwrap(type).name;\n if (typeName === 'Int') {\n const parsed = parseInt(raw, 10);\n if (Number.isNaN(parsed)) throw new Error(`--${flagName} expects an integer, got \"${raw}\".`);\n return parsed;\n }\n if (typeName === 'Float') {\n const parsed = parseFloat(raw);\n if (Number.isNaN(parsed)) throw new Error(`--${flagName} expects a number, got \"${raw}\".`);\n return parsed;\n }\n if (typeName === 'Boolean') {\n if (raw !== 'true' && raw !== 'false') {\n throw new Error(`--${flagName} expects \"true\" or \"false\", got \"${raw}\".`);\n }\n return raw === 'true';\n }\n return raw;\n}\n\n/**\n * One-line summary of an input-object or enum type's shape, used in option\n * help so callers know what JSON to pass without a separate introspection\n * round-trip. Expands a single level: `{ industry: StringFilterInput, country:\n * String, ... }` for input objects, `one of: A | B | C` for enums.\n */\nfunction describeStructuredType(named: GraphQLNamedType): string | null {\n if (isInputObjectType(named)) {\n const fields = Object.values((named as GraphQLInputObjectType).getFields());\n const parts = fields.map((f) => `${f.name}: ${renderType(f.type)}`);\n return `{ ${parts.join(', ')} }`;\n }\n if (isEnumType(named)) {\n const values = (named as GraphQLEnumType).getValues().map((v) => v.name);\n return `one of: ${values.join(' | ')}`;\n }\n return null;\n}\n\n/** A named type worth pointing the user at via `sl schema inspect` — i.e. one with structure. */\nfunction isInspectable(named: GraphQLNamedType): boolean {\n return isInputObjectType(named) || isEnumType(named) || isObjectType(named);\n}\n\nfunction oneLineDescription(text: string | null | undefined): string {\n return (text ?? '').replace(/\\s+/g, ' ').trim();\n}\n\n/**\n * Render a full, human-readable description of a named type for\n * `sl schema inspect <Type>`: its kind, description, and one level of\n * structure (object/input fields with their types + descriptions, or enum\n * values). Nested structured types are named so the caller can `inspect` them\n * in turn. Returns null if the type does not exist in the schema.\n */\nexport function formatTypeInspection(schema: GraphQLSchema, typeName: string): string | null {\n const named = schema.getType(typeName);\n if (!named) return null;\n\n const lines: string[] = [];\n const suffix = oneLineDescription(named.description);\n const header = (kind: string): string => {\n const label = kind ? `${kind} ${named.name}` : named.name;\n return suffix ? `${label} — ${suffix}` : label;\n };\n\n const pushFields = (entries: Array<{ name: string; typeSig: string; description?: string | null }>): void => {\n const width = Math.max(...entries.map((entry) => `${entry.name}: ${entry.typeSig}`.length), 0);\n for (const entry of entries) {\n const signature = `${entry.name}: ${entry.typeSig}`;\n const note = oneLineDescription(entry.description);\n lines.push(note ? ` ${signature.padEnd(width)} ${note}` : ` ${signature}`);\n }\n };\n\n if (isInputObjectType(named) || isObjectType(named)) {\n lines.push(header(isInputObjectType(named) ? 'input' : 'type'));\n pushFields(\n Object.values(named.getFields()).map((f) => ({\n name: f.name,\n typeSig: renderType(f.type),\n description: f.description,\n })),\n );\n } else if (isEnumType(named)) {\n lines.push(header('enum'));\n for (const value of named.getValues()) {\n const note = oneLineDescription(value.description);\n lines.push(note ? ` ${value.name.padEnd(20)} ${note}` : ` ${value.name}`);\n }\n } else if (isScalarType(named)) {\n lines.push(header('scalar'));\n lines.push(' (scalar — pass a plain value)');\n } else {\n lines.push(header(''));\n }\n\n // Point the caller at the nested types they can drill into next.\n const nested = new Set<string>();\n if (isInputObjectType(named) || isObjectType(named)) {\n for (const field of Object.values(named.getFields())) {\n const fieldType = unwrap(field.type);\n if (isInspectable(fieldType) && fieldType.name !== named.name) nested.add(fieldType.name);\n }\n }\n if (nested.size > 0) {\n lines.push('');\n lines.push(\n `Inspect nested types: ${[...nested]\n .sort()\n .map((n) => `sl schema inspect ${n}`)\n .join(', ')}`,\n );\n }\n\n return lines.join('\\n');\n}\n\n/**\n * Build the help description for a single CLI option from its GraphQL arg:\n * the field description (if any), the rendered type with a `(JSON)` marker for\n * structured inputs, and a one-level shape hint (input-object fields or enum\n * values) so callers know what to pass without a separate introspection step.\n */\nfunction describeArg(arg: { name: string; type: GraphQLInputType; description?: string | null }): string {\n const parts: string[] = [];\n if (arg.description) parts.push(arg.description.replace(/\\s+/g, ' ').trim());\n\n const typeSig = renderType(arg.type);\n parts.push(isStructuredInput(arg.type) ? `${typeSig} (JSON)` : typeSig);\n\n // Shape hint applies to enums (raw string) and input objects (JSON) alike.\n const named = unwrap(arg.type);\n const shape = describeStructuredType(named);\n if (shape) parts.push(shape);\n\n // Point at `schema inspect` so nested input/enum types can be drilled into\n // without resorting to raw introspection.\n if (isInputObjectType(named) || isEnumType(named)) {\n parts.push(`details: sl schema inspect ${named.name}`);\n }\n\n return parts.join(' — ');\n}\n\nfunction buildCommand(\n schema: GraphQLSchema,\n fieldName: string,\n kind: 'query' | 'mutation',\n description: string,\n): Command {\n const rootType = kind === 'query' ? schema.getQueryType() : schema.getMutationType();\n if (!rootType) throw new Error(`No ${kind} type in schema`);\n\n const field = rootType.getFields()[fieldName];\n if (!field) throw new Error(`Unknown ${kind} field: ${fieldName}`);\n\n const inputFields = getInputFields(field);\n const useInputWrapper = inputFields != null;\n const cliArgs: CliArg[] = useInputWrapper\n ? inputFields\n : field.args.map((a) => ({\n name: a.name,\n type: a.type,\n required: isNonNullType(a.type),\n description: a.description,\n }));\n\n const cmd = new Command(kebab(fieldName)).description(description);\n\n const acceptsCompanyId = cliArgs.some((a) => a.name === 'companyId');\n\n for (const a of cliArgs) {\n const placeholder = isStructuredInput(a.type) ? 'json' : kebab(a.name);\n const flag = `--${kebab(a.name)} <${placeholder}>`;\n const isContext = a.name in CONTEXT_FIELDS;\n if (isContext) {\n cmd.option(flag, `${describeArg(a)} (from context if omitted)`);\n } else if (a.required) {\n cmd.requiredOption(flag, describeArg(a));\n } else {\n cmd.option(flag, describeArg(a));\n }\n }\n\n cmd\n .option('--depth <depth>', 'Selection depth (default: 0)', parseInt)\n .option('--fields <fields>', 'Comma-separated fields to include')\n .option('--exclude <fields>', 'Comma-separated fields to exclude');\n\n cmd.action(async function (this: Command) {\n const opts = this.optsWithGlobals();\n const needsContext = cliArgs.some((a) => a.name in CONTEXT_FIELDS);\n const ctx = needsContext ? getUserContext() : undefined;\n\n if (acceptsCompanyId) {\n const resolved = resolveCompanyId({\n companyId: typeof opts.companyId === 'string' ? opts.companyId : undefined,\n ctx,\n });\n if (!resolved) {\n error('No company selected.');\n hint('Pass --company-id <id> or set one with `sl config set companyId <id>`.');\n process.exit(2);\n }\n opts.companyId = resolved;\n }\n\n const collectArgs = (): Record<string, unknown> => {\n const out: Record<string, unknown> = {};\n for (const a of cliArgs) {\n const raw = opts[a.name];\n const ctxProp = CONTEXT_FIELDS[a.name];\n if (raw != null) {\n try {\n out[a.name] = coerceValue(raw, a.type, kebab(a.name));\n } catch (coerceError) {\n error((coerceError as Error).message);\n hint('Run the command with --help to see the expected shape of each argument.');\n process.exit(2);\n }\n } else if (ctxProp && ctx) {\n out[a.name] = (ctx as Record<string, unknown>)[ctxProp];\n }\n }\n return out;\n };\n\n const variables: Record<string, unknown> = useInputWrapper ? { input: collectArgs() } : collectArgs();\n\n const { query, fieldName: fName } = buildQuery(schema, kind, fieldName, variables, {\n depth: opts.depth,\n fields: opts.fields?.split(','),\n exclude: opts.exclude?.split(','),\n });\n const data = await graphqlRaw(query, variables, { endpoint: opts.endpoint });\n const result = data[fName];\n if (result == null) {\n warn('No results returned.');\n hint('The query succeeded but the server returned null.');\n hint('Try different arguments or check that the resource exists.');\n } else {\n printJson(result);\n }\n });\n\n return cmd;\n}\n\n// ── Help formatting ──\n\nconst useColor = process.stdout.isTTY && !process.env.NO_COLOR;\nconst ansi = {\n reset: '\\x1b[0m',\n bold: '\\x1b[1m',\n dim: '\\x1b[2m',\n cyan: '\\x1b[36m',\n yellow: '\\x1b[33m',\n};\n\nfunction formatCommandList(commands: Command[]): string {\n if (commands.length === 0) return '';\n\n const maxLen = Math.max(...commands.map((c) => c.name().length + (c.options.length > 0 ? 10 : 0)));\n const padWidth = Math.max(maxLen, 20);\n\n return commands\n .map((c) => {\n const name = c.options.length > 0 ? `${c.name()} [options]` : c.name();\n const desc = c.description();\n const padding = ' '.repeat(Math.max(2, padWidth - name.length + 2));\n if (desc) {\n return ` ${name}${padding}${desc}`;\n }\n const noDesc = useColor ? `${ansi.yellow}No description provided${ansi.reset}` : 'No description provided';\n return ` ${name}${padding}${noDesc}`;\n })\n .join('\\n');\n}\n\n// ── Service map derivation ──\n\ninterface ServiceEntry {\n queries: Array<{ fieldName: string; description: string }>;\n mutations: Array<{ fieldName: string; description: string }>;\n}\n\n/**\n * Derive the service → operations map from the `@join__field(graph: ...)`\n * directives the router exposes on each root field. Fields without a mapped\n * subgraph are skipped.\n */\nfunction deriveServiceMap(schema: GraphQLSchema, fieldServices: FieldServiceMap): Map<string, ServiceEntry> {\n const map = new Map<string, ServiceEntry>();\n\n function ensure(service: string): ServiceEntry {\n if (!map.has(service)) map.set(service, { queries: [], mutations: [] });\n return map.get(service)!;\n }\n\n const rootTypes: Array<{ kind: 'queries' | 'mutations'; type: GraphQLObjectType | null | undefined }> = [\n { kind: 'queries', type: schema.getQueryType() },\n { kind: 'mutations', type: schema.getMutationType() },\n ];\n\n for (const { kind, type } of rootTypes) {\n if (!type) continue;\n const services = fieldServices.get(type.name);\n if (!services) continue;\n\n for (const [fieldName, field] of Object.entries(type.getFields())) {\n if (SKIP_FIELDS.has(fieldName) || fieldName.startsWith('__')) continue;\n\n // Skip operations returning interfaces or unions\n const returnType = unwrap(field.type);\n if (isInterfaceType(returnType) || isUnionType(returnType)) continue;\n\n const service = services.get(fieldName);\n if (!service) continue;\n\n ensure(service)[kind].push({ fieldName, description: field.description ?? '' });\n }\n }\n\n // Sort fields alphabetically within each service\n for (const entry of map.values()) {\n entry.queries.sort((a, b) => a.fieldName.localeCompare(b.fieldName));\n entry.mutations.sort((a, b) => a.fieldName.localeCompare(b.fieldName));\n }\n\n return map;\n}\n\n/**\n * Short blurb shown after `sl <service>` in the root help. Services not listed\n * here fall back to `<Service> service operations`.\n */\nconst SERVICE_DESCRIPTIONS: Record<string, string> = {\n atlas: 'Atlas service (contacts, orgs)',\n marketplace: 'Marketplace service',\n hermes: 'Hermes service',\n};\n\nfunction serviceDescription(service: string): string {\n return SERVICE_DESCRIPTIONS[service] ?? `${ucfirst(service)} service operations`;\n}\n\nexport interface ServiceCommand {\n command: Command;\n /** First query name suitable for an example in the root help, or null. */\n exampleQuery: string | null;\n}\n\n/**\n * Build all service commands from the introspected schema.\n * Returns a map of service name → Commander Command + metadata for the root help.\n */\nexport function buildServiceCommands(\n schema: GraphQLSchema,\n fieldServices: FieldServiceMap,\n): Map<string, ServiceCommand> {\n const serviceMap = deriveServiceMap(schema, fieldServices);\n const commands = new Map<string, ServiceCommand>();\n\n // Track operation names to deduplicate (same name across query + mutation)\n const allNames = new Map<string, number>();\n for (const entry of serviceMap.values()) {\n for (const op of [...entry.queries, ...entry.mutations]) {\n allNames.set(op.fieldName, (allNames.get(op.fieldName) ?? 0) + 1);\n }\n }\n\n for (const [service, entry] of serviceMap) {\n const subCmd = new Command(service).description(serviceDescription(service));\n\n const queryCommands: Command[] = [];\n const mutationCommands: Command[] = [];\n\n for (const op of entry.queries) {\n try {\n const cmd = buildCommand(schema, op.fieldName, 'query', op.description);\n if ((allNames.get(op.fieldName) ?? 0) > 1) {\n cmd.name(`${kebab(op.fieldName)}-query`);\n }\n subCmd.addCommand(cmd, { hidden: true });\n queryCommands.push(cmd);\n } catch {\n // Field may not be resolvable — skip\n }\n }\n\n for (const op of entry.mutations) {\n try {\n const cmd = buildCommand(schema, op.fieldName, 'mutation', op.description);\n if ((allNames.get(op.fieldName) ?? 0) > 1) {\n cmd.name(`${kebab(op.fieldName)}-mutation`);\n }\n subCmd.addCommand(cmd, { hidden: true });\n mutationCommands.push(cmd);\n } catch {\n // Field may not be resolvable — skip\n }\n }\n\n // Custom help that groups queries and mutations\n subCmd.configureHelp({\n formatHelp: () => {\n const lines: string[] = [];\n lines.push(`Usage: sl ${service} [command] [options]\\n`);\n lines.push(`${serviceDescription(service)}\\n`);\n\n if (queryCommands.length > 0) {\n lines.push(`Queries:`);\n lines.push(formatCommandList(queryCommands));\n lines.push('');\n }\n\n if (mutationCommands.length > 0) {\n lines.push(`Mutations:`);\n lines.push(formatCommandList(mutationCommands));\n lines.push('');\n }\n\n lines.push(`Options:`);\n lines.push(` -h, --help display help for command\\n`);\n return lines.join('\\n');\n },\n });\n\n if (queryCommands.length > 0 || mutationCommands.length > 0) {\n commands.set(service, {\n command: subCmd,\n exampleQuery: queryCommands[0]?.name() ?? null,\n });\n }\n }\n\n return commands;\n}\n","import type { TypedDocumentNode } from '@graphql-typed-document-node/core';\nimport { print } from 'graphql';\n\nimport { ensureAuthenticated, isExpired, saveCredentials, type Credentials } from '../lib/auth.ts';\nimport { getEndpoint } from '../lib/config.ts';\nimport { error, hint, info, warn } from '../lib/output.ts';\nimport { addBreadcrumb, captureException } from '../lib/sentry.ts';\nimport { RefreshToken } from './operations/hermes.ts';\n\nfunction extractOperationName(query: string): string {\n const match = query.match(/(?:mutation|query|subscription)\\s+(\\w+)/);\n return match?.[1] ?? 'UnknownOperation';\n}\n\ninterface GraphQLResponse<T = Record<string, unknown>> {\n data?: T;\n errors?: Array<{ message: string; extensions?: Record<string, unknown> }>;\n}\n\ninterface RequestOptions {\n endpoint?: string;\n authenticated?: boolean;\n throwOnError?: boolean;\n}\n\nexport class GraphQLRequestError extends Error {\n readonly operationName: string;\n readonly httpStatus?: number;\n readonly graphqlErrors?: Array<{ message: string; extensions?: Record<string, unknown> }>;\n\n constructor(\n message: string,\n details: {\n operationName: string;\n httpStatus?: number;\n graphqlErrors?: Array<{ message: string; extensions?: Record<string, unknown> }>;\n },\n ) {\n super(message);\n this.name = 'GraphQLRequestError';\n this.operationName = details.operationName;\n this.httpStatus = details.httpStatus;\n this.graphqlErrors = details.graphqlErrors;\n }\n}\n\nasync function refreshAccessToken(creds: Credentials, endpoint: string): Promise<Credentials | null> {\n const res = await fetch(endpoint, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', 'X-API-Client': 'sl-cli' },\n body: JSON.stringify({\n query: print(RefreshToken),\n variables: { input: { refreshToken: creds.refreshToken } },\n }),\n });\n\n const json = (await res.json()) as GraphQLResponse<{\n refreshToken: {\n accessToken: string;\n refreshToken: string;\n idToken: string;\n expiresIn: number;\n error: string | null;\n };\n }>;\n\n const token = json.data?.refreshToken;\n if (!token || token.error) return null;\n\n const newCreds: Credentials = {\n accessToken: token.accessToken,\n refreshToken: token.refreshToken,\n idToken: token.idToken,\n expiresAt: Math.floor(Date.now() / 1000) + token.expiresIn,\n };\n\n saveCredentials(newCreds);\n return newCreds;\n}\n\n/**\n * Internal: execute a raw GraphQL query string.\n */\nasync function executeQuery<T = Record<string, unknown>>(\n query: string,\n variables: Record<string, unknown> | undefined,\n options: RequestOptions = {},\n): Promise<T> {\n const endpoint = getEndpoint(options.endpoint);\n const authenticated = options.authenticated ?? true;\n const throwOnError = options.throwOnError ?? false;\n const operationName = extractOperationName(query);\n const verbose = process.env.SL_DEBUG === '1';\n\n addBreadcrumb({\n category: 'graphql',\n message: operationName,\n data: { endpoint, authenticated },\n level: 'info',\n });\n\n if (verbose) {\n info(`[debug] ${operationName} → ${endpoint}`);\n info(`[debug] Query:\\n${query}`);\n if (variables) {\n info(`[debug] Variables: ${JSON.stringify(variables, null, 2)}`);\n }\n }\n\n const headers: Record<string, string> = {\n 'Content-Type': 'application/json',\n 'X-API-Client': 'sl-cli',\n };\n\n if (authenticated) {\n let creds = ensureAuthenticated();\n\n if (isExpired(creds)) {\n const refreshed = await refreshAccessToken(creds, endpoint);\n if (!refreshed) {\n if (throwOnError) {\n throw new GraphQLRequestError('Session expired and could not be refreshed.', { operationName });\n }\n error('Your session has expired and could not be refreshed.');\n hint('Run `sl login` to re-authenticate.');\n process.exit(2);\n }\n creds = refreshed;\n }\n\n headers['Authorization'] = `Bearer ${creds.accessToken}`;\n\n if (verbose) {\n // Never print the full token — debug output ends up in pasted logs.\n // `sl token` is the deliberate way to get the raw value.\n info(`[debug] JWT: ...${creds.accessToken.slice(-8)}`);\n }\n }\n\n const res = await fetch(endpoint, {\n method: 'POST',\n headers,\n body: JSON.stringify({ query, variables }),\n });\n\n if (!res.ok) {\n const body = await res.text();\n captureException(new Error(`${operationName} failed: HTTP ${res.status}`), {\n operationName,\n httpStatus: res.status,\n endpoint,\n });\n if (throwOnError) {\n throw new GraphQLRequestError(`${operationName} failed: HTTP ${res.status} ${res.statusText}`, {\n operationName,\n httpStatus: res.status,\n });\n }\n error(`${operationName} failed: HTTP ${res.status} ${res.statusText}`);\n hint('Check your network connection and endpoint: sl config show');\n if (verbose) {\n info(`[debug] Response body: ${body}`);\n }\n process.exit(3);\n }\n\n const json = (await res.json()) as GraphQLResponse<T>;\n\n if (json.errors?.length) {\n // If there's also data, return it — partial success with some field errors\n if (json.data) {\n for (const gqlError of json.errors) {\n warn(gqlError.message);\n }\n const hasFieldError = json.errors.some(\n (e) => e.message.includes('Failed to implement') || e.message.includes('undefined method'),\n );\n if (hasFieldError) {\n hint('Use --fields to select specific fields, or --exclude to skip broken ones.');\n }\n return json.data;\n }\n\n captureException(new Error(`${operationName} GraphQL errors`), {\n operationName,\n errors: json.errors.map((e) => e.message),\n });\n\n if (throwOnError) {\n throw new GraphQLRequestError(`${operationName} failed: ${json.errors.map((e) => e.message).join('; ')}`, {\n operationName,\n graphqlErrors: json.errors,\n });\n }\n\n error(`${operationName} failed:`);\n for (const gqlError of json.errors) {\n info(` ${gqlError.message}`);\n if (verbose && gqlError.extensions) {\n info(`[debug] Extensions: ${JSON.stringify(gqlError.extensions)}`);\n }\n }\n\n const hasFieldError = json.errors.some(\n (e) => e.message.includes('Failed to implement') || e.message.includes('undefined method'),\n );\n if (hasFieldError) {\n hint('Use --fields to select specific fields, or --exclude to skip broken ones.');\n hint(`Example: sl ${operationName.toLowerCase()} --fields id,title,status`);\n }\n\n process.exit(1);\n }\n\n if (!json.data) {\n if (throwOnError) {\n throw new GraphQLRequestError(`${operationName}: no data returned from API.`, { operationName });\n }\n error(`${operationName}: no data returned from API.`);\n hint('This usually means the server returned an empty response.');\n hint('Verify your endpoint: sl config show');\n process.exit(1);\n }\n\n return json.data;\n}\n\n/**\n * Execute a typed GraphQL operation (for hand-written commands).\n */\nexport async function graphql<TData, TVars>(\n document: TypedDocumentNode<TData, TVars>,\n variables?: TVars,\n options: RequestOptions = {},\n): Promise<TData> {\n return executeQuery<TData>(print(document), variables as Record<string, unknown> | undefined, options);\n}\n\n/**\n * Execute a raw GraphQL query string (for generated/dynamic commands).\n */\nexport async function graphqlRaw(\n query: string,\n variables?: Record<string, unknown>,\n options: RequestOptions = {},\n): Promise<Record<string, unknown>> {\n return executeQuery(query, variables, options);\n}\n\n/**\n * Execute an unauthenticated typed GraphQL operation.\n */\nexport async function graphqlUnauthenticated<TData, TVars>(\n document: TypedDocumentNode<TData, TVars>,\n variables?: TVars,\n endpoint?: string,\n): Promise<TData> {\n return graphql(document, variables, { endpoint, authenticated: false });\n}\n","import * as Sentry from '@sentry/node';\n\nimport { isLocalDev } from './env.ts';\nimport { pkg } from './package-root.ts';\n\nconst SENTRY_DSN = 'https://306d2e4389b8baa0bf14e587c2ceff04@o27611.ingest.us.sentry.io/4511229468409856';\nconst SENTRY_ENVIRONMENT = process.env.SL_SENTRY_ENV ?? (isLocalDev ? 'development' : 'production');\n\nconst IGNORED_ERRORS = [\n /Network Error/i,\n /Failed to fetch/i,\n /fetch failed/i,\n /ECONNREFUSED/i,\n /ENOTFOUND/i,\n /ETIMEDOUT/i,\n /Request aborted/i,\n];\n\nfunction isIgnoredError(message: string): boolean {\n return IGNORED_ERRORS.some((pattern) =>\n typeof pattern === 'string' ? message.includes(pattern) : pattern.test(message),\n );\n}\n\nexport function initSentry(): void {\n if (isLocalDev) {\n return;\n }\n\n Sentry.init({\n dsn: SENTRY_DSN,\n environment: SENTRY_ENVIRONMENT,\n release: `${pkg.name}@${pkg.version}`,\n tracesSampleRate: 0,\n maxBreadcrumbs: 50,\n attachStacktrace: true,\n beforeSend(event) {\n const message = event.exception?.values?.[0]?.value ?? '';\n if (isIgnoredError(message)) {\n return null;\n }\n return event;\n },\n });\n\n Sentry.setTag('cli_version', pkg.version);\n}\n\nexport function captureException(error: unknown, extra?: Record<string, unknown>): void {\n if (isLocalDev) {\n return;\n }\n Sentry.captureException(error, extra ? { extra } : undefined);\n}\n\nexport function addBreadcrumb(breadcrumb: Sentry.Breadcrumb): void {\n if (isLocalDev) {\n return;\n }\n Sentry.addBreadcrumb(breadcrumb);\n}\n\nexport async function flushSentry(timeout = 2000): Promise<void> {\n if (isLocalDev) {\n return;\n }\n await Sentry.flush(timeout);\n}\n","/* eslint-disable */\nimport type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\nexport type Maybe<T> = T | null;\nexport type InputMaybe<T> = T | null | undefined;\nexport type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\nexport type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };\nexport type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };\nexport type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: { input: string; output: string; }\n String: { input: string; output: string; }\n Boolean: { input: boolean; output: boolean; }\n Int: { input: number; output: number; }\n Float: { input: number; output: number; }\n /** An ISO 8601-encoded date */\n ISO8601Date: { input: any; output: any; }\n /** An ISO 8601-encoded datetime */\n ISO8601DateTime: { input: any; output: any; }\n /** An ISO 8601-encoded duration */\n ISO8601Duration: { input: any; output: any; }\n /** Represents untyped JSON */\n JSON: { input: any; output: any; }\n /** An integer range represented as a two-element array [min, max]. A one-element array [min] is open-ended. */\n Range: { input: any; output: any; }\n join__DirectiveArguments: { input: any; output: any; }\n join__FieldSet: { input: any; output: any; }\n join__FieldValue: { input: any; output: any; }\n link__Import: { input: any; output: any; }\n requiresScopes__Scope: { input: any; output: any; }\n};\n\n/** A national administrative code attached to a division, such as a French INSEE region or département code. */\nexport type AdministrativeCode = Node & {\n __typename?: 'AdministrativeCode';\n id: Scalars['ID']['output'];\n /**\n * Global id of the division that carries this code natively. Equals the queried\n * location's own id for its own codes, or an ancestor's id for an inherited one\n * — e.g. Lyon reports Rhône's département code with Rhône's id here.\n */\n locationId: Scalars['ID']['output'];\n /** Coding scheme the value belongs to. */\n scheme: AdministrativeCodeScheme;\n /** The code itself, as the scheme's authority writes it — e.g. \"11\", \"2A\", \"971\". Not zero-stripped. */\n value: Scalars['String']['output'];\n};\n\n/** National coding scheme an administrative code belongs to. */\nexport type AdministrativeCodeScheme =\n /**\n * French INSEE département code, e.g. \"69\" for Rhône, \"2A\" for Corse-du-Sud,\n * \"971\" for Guadeloupe. Carried by COUNTY divisions.\n */\n | 'INSEE_DEPARTMENT'\n /** French INSEE region code, e.g. \"11\" for Île-de-France. Carried by REGION divisions. */\n | 'INSEE_REGION';\n\n/** A grant of credits to a customer — recurring (plan / extras) or one-off (trial). */\nexport type BillingCredit = Node & {\n __typename?: 'BillingCredit';\n /** Granted credits. Always greater than 0. */\n amount: Scalars['Float']['output'];\n /** When this credit was granted. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n /** Free-form label describing the grant origin. */\n description?: Maybe<Scalars['String']['output']>;\n /** When the unconsumed portion of this grant expires. */\n expiresAt: Scalars['ISO8601DateTime']['output'];\n /** Credit UUID. */\n id: Scalars['ID']['output'];\n /** One of: granted, trial. */\n kind: Scalars['String']['output'];\n /** Credits still available on this grant: amount minus any debits drawn from it. */\n remaining: Scalars['Float']['output'];\n /** Per-credit price (EUR) when this grant was created, used for revenue recognition on debits. */\n unitPriceEur: Scalars['Float']['output'];\n};\n\n/** The connection type for BillingCredit. */\nexport type BillingCreditConnection = {\n __typename?: 'BillingCreditConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<BillingCreditEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<BillingCredit>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n /**\n * Sum of granted `amount` over every credit in the filtered set — the total\n * credits originally granted. Use as the denominator of a usage gauge when\n * filtered by `expired: false`.\n */\n totalAmount: Scalars['Float']['output'];\n /** Total number of items across all pages. */\n totalCount: Scalars['Int']['output'];\n /**\n * Sum of `remaining` (amount − debits drawn) over every credit in the filtered\n * set — credits still available to consume. `total_amount − total_remaining` is\n * the consumption so far.\n */\n totalRemaining: Scalars['Float']['output'];\n};\n\n/** An edge in a connection. */\nexport type BillingCreditEdge = {\n __typename?: 'BillingCreditEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<BillingCredit>;\n};\n\n/** Federation reference to a BillingCustomer owned by another subgraph. */\nexport type BillingCustomer = Node & {\n __typename?: 'BillingCustomer';\n /**\n * The customer's active subscription (one of trialing, active, past_due, unpaid,\n * paused, incomplete), or null. A customer holds at most one at a time; the\n * newest is returned if several exist.\n */\n activeSubscription?: Maybe<BillingSubscription>;\n /** ISO 3166-1 alpha-2 country code, captured from Stripe Checkout / Customer Portal. */\n countryCode?: Maybe<Scalars['String']['output']>;\n /** Derived credit balance: SUM(credits.amount) - SUM(debits.amount). Always 0 for a newly-created customer. */\n creditBalance: Scalars['Float']['output'];\n /** Paginated credits granted to this customer, newest first. Optionally filter by expiry status via the `expired` argument. */\n credits: BillingCreditConnection;\n /** Snapshot of the customer's default Stripe payment method (brand + last4 + expiry). Null until the customer adds a card. */\n defaultPaymentMethod?: Maybe<BillingPaymentMethod>;\n /** Customer's billing email, mirrored from Stripe. May lag the Max user's email until the next customer.updated webhook. */\n email?: Maybe<Scalars['String']['output']>;\n /** GlobalID-encoded BillingCustomer id. */\n id: Scalars['ID']['output'];\n /** Paginated invoices and credit notes for this customer, newest first. */\n invoices: BillingInvoiceConnection;\n /** The customer's outstanding sales offer (a pre-negotiated custom plan awaiting checkout), or null when none is pending. */\n pendingOffer?: Maybe<Offer>;\n /**\n * Product this customer belongs to. Decides the Stripe account and plan catalog;\n * credits and subscriptions never cross products.\n */\n product: BillingProduct;\n /** Total seats the customer is paying for: plan default + extras. */\n seats: Scalars['Int']['output'];\n /** Customer's VAT number for EU customers, captured by Stripe at Checkout. */\n vatId?: Maybe<Scalars['String']['output']>;\n /** Stripe VAT verification status. One of: pending, verified, unverified, unavailable. */\n vatIdStatus?: Maybe<Scalars['String']['output']>;\n};\n\n\n/** Federation reference to a BillingCustomer owned by another subgraph. */\nexport type BillingCustomerCreditsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n expired?: InputMaybe<Scalars['Boolean']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\n/** Federation reference to a BillingCustomer owned by another subgraph. */\nexport type BillingCustomerInvoicesArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** A positive draw against a customer's credits — consumption, expiration, or withdrawal. */\nexport type BillingDebit = Node & {\n __typename?: 'BillingDebit';\n /** Credits drawn by this debit. Always greater than 0. */\n amount: Scalars['Float']['output'];\n /** UUID of the consumed record. Set only when source is consumption. */\n consumableId?: Maybe<Scalars['ID']['output']>;\n /** AR class name of the consumed record (e.g. \"Lead\", \"Message\"). Set only when source is consumption. */\n consumableType?: Maybe<Scalars['String']['output']>;\n /** When this debit row was created. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n /** Free-form note — the consumer's label, or the refund charge id on withdrawals. */\n description?: Maybe<Scalars['String']['output']>;\n /** Debit UUID. */\n id: Scalars['ID']['output'];\n /** When this entry was recorded for revenue. */\n revenueRecognizedAt: Scalars['ISO8601DateTime']['output'];\n /** One of: consumption, expiration, withdrawal. */\n source: Scalars['String']['output'];\n};\n\n/** A mirrored Stripe invoice (or credit note). One row per Stripe object. */\nexport type BillingInvoice = Node & {\n __typename?: 'BillingInvoice';\n /** Amount paid in the transaction currency. */\n amountPaid: Scalars['Float']['output'];\n /** Outstanding balance in the transaction currency. Zero on a fully-paid invoice. */\n amountRemaining: Scalars['Float']['output'];\n /** True for credit-note rows (refund); false for regular invoices. */\n creditNote: Scalars['Boolean']['output'];\n /** Transaction currency — ISO 4217 lowercase (\"eur\", \"usd\", ...). */\n currency: Scalars['String']['output'];\n /** Stripe-hosted invoice page. May be null on credit-note rows. */\n hostedInvoiceUrl?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** When the invoice was finalized in Stripe. */\n issuedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Human-readable Stripe invoice number (\"INV-001\"). Null until finalized. */\n number?: Maybe<Scalars['String']['output']>;\n /** When payment was captured. Null on unpaid or credit-note rows. */\n paidAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** On credit-note rows, the parent invoice being refunded. Null on regular invoices. */\n parentInvoice?: Maybe<BillingInvoice>;\n /**\n * URL to the billing service's PDF passthrough endpoint. The endpoint fetches a\n * fresh signed URL from Stripe and 302s to it. Null until the invoice is finalized.\n */\n pdfUrl?: Maybe<Scalars['String']['output']>;\n /** End of the billing period this invoice covers (subscriptions). */\n periodEnd?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Start of the billing period this invoice covers (subscriptions). */\n periodStart?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Stripe's verbatim invoice status. One of: draft, open, paid, void, uncollectible — or for credit notes: issued, void. */\n status: Scalars['String']['output'];\n /** Pre-tax subtotal in the transaction currency. */\n subtotal: Scalars['Float']['output'];\n /** Tax applied in the transaction currency. */\n tax: Scalars['Float']['output'];\n /** Final total in the transaction currency. */\n total: Scalars['Float']['output'];\n};\n\n/** The connection type for BillingInvoice. */\nexport type BillingInvoiceConnection = {\n __typename?: 'BillingInvoiceConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<BillingInvoiceEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<BillingInvoice>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n /** Total number of items across all pages. */\n totalCount: Scalars['Int']['output'];\n};\n\n/** An edge in a connection. */\nexport type BillingInvoiceEdge = {\n __typename?: 'BillingInvoiceEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<BillingInvoice>;\n};\n\n/** Denormalized snapshot of a customer's default payment method, mirrored from Stripe. */\nexport type BillingPaymentMethod = {\n __typename?: 'BillingPaymentMethod';\n /** Card brand: visa, mastercard, amex, etc. */\n brand?: Maybe<Scalars['String']['output']>;\n /** Card expiration month (1-12), as reported by Stripe. */\n expMonth?: Maybe<Scalars['Int']['output']>;\n /** Card expiration year (4-digit), as reported by Stripe. */\n expYear?: Maybe<Scalars['Int']['output']>;\n /** Last 4 digits of the card number, as reported by Stripe. */\n last4?: Maybe<Scalars['String']['output']>;\n};\n\n/** Subscription billing periodicity. */\nexport type BillingPeriodicity =\n /** Billed annually (12% off vs monthly). */\n | 'ANNUAL'\n /** Billed monthly. */\n | 'MONTHLY';\n\n/** A single (plan, periodicity) row from the static plan catalog. */\nexport type BillingPlanCatalogEntry = Node & {\n __typename?: 'BillingPlanCatalogEntry';\n /**\n * Nine credit quantities the adjuster slider snaps to. Position 0 equals\n * includedCredits (zero extras); position 8 is the next tier's includedCredits\n * (the upgrade anchor); positions 1-7 are buy-up amounts.\n */\n creditStops: Array<Scalars['Int']['output']>;\n /**\n * Monthly fee per extra seat beyond the plan's included seats, in EUR. Drives\n * the seats display; the amount actually charged is always Stripe's.\n */\n extraSeatFeeEur: Scalars['Float']['output'];\n /** Exact total fee per period in EUR. */\n feeEur: Scalars['Float']['output'];\n id: Scalars['ID']['output'];\n /** Credits granted on each paid invoice for this plan. */\n includedCredits: Scalars['Int']['output'];\n /** Seats included with this plan (extras are billed separately). */\n includedSeats: Scalars['Int']['output'];\n /** Plan tier (STARTER / GROWTH / SCALE). */\n name: BillingPlanName;\n /** Whether the plan offers a self-serve trial. */\n offersTrial: Scalars['Boolean']['output'];\n /** Billing periodicity. */\n periodicity: BillingPeriodicity;\n};\n\n/** Subscription plan tier. Derived from credits-item quantity + periodicity. */\nexport type BillingPlanName =\n /** 3 seats, mid-range credit allowance. */\n | 'GROWTH'\n /** 3 seats, largest credit allowance (top tier). */\n | 'SCALE'\n /** 1 seat, smallest credit allowance. */\n | 'STARTER';\n\n/**\n * Sortlist product a billing customer belongs to. Each product runs on its own\n * Stripe account with its own plan catalog; credits, subscriptions, and invoices\n * never cross products.\n */\nexport type BillingProduct =\n /** The original shared Stripe account — the old Max app's billing and the marketplace's Recurly payment-gateway traffic. */\n | 'LEGACY'\n /** The new Max product (rebuilt app replacing the old Max, keeping the name), on its own dedicated Stripe account. */\n | 'MAX';\n\n/**\n * A mirrored Stripe subscription. Plan tier is identified by the subscription's\n * plan-item Price (`PlanCatalog.find_by_stripe_price_id`).\n */\nexport type BillingSubscription = Node & {\n __typename?: 'BillingSubscription';\n /** Whether the subscription will end at `currentPeriodEnd` (Stripe-side cancel). */\n cancelAtPeriodEnd: Scalars['Boolean']['output'];\n /** When the subscription was canceled, or null if still active. */\n canceledAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Credits the customer is entitled to per period (from `PlanCatalog#included_credits`). */\n creditsPerPeriod: Scalars['Float']['output'];\n /** End of the current billing period. */\n currentPeriodEnd?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Start of the current billing period. */\n currentPeriodStart?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /**\n * Recurring extra-credits add-on quantity, on top of the plan default. Zero when\n * no add-on is attached. Charged at the plan's per-credit rate.\n */\n extraCreditsPerPeriod: Scalars['Int']['output'];\n id: Scalars['ID']['output'];\n /** Seats included by the plan at no extra charge. */\n includedSeats: Scalars['Int']['output'];\n /** Stripe billing interval string: day / week / month / year. */\n interval: Scalars['String']['output'];\n /** Interval multiplier (1 = every interval). */\n intervalCount: Scalars['Int']['output'];\n /** Derived from the Stripe interval. Null on intervals we don't model. */\n periodicity?: Maybe<BillingPeriodicity>;\n /** Plan tier looked up from the stored stripe_price_id. Null when the Price doesn't match a known plan. */\n plan?: Maybe<BillingPlanName>;\n /** When the subscription was first created in Stripe. */\n startedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Stripe verbatim status (active, trialing, past_due, canceled, ...). */\n status: Scalars['String']['output'];\n};\n\n/** Projection of the next billing-period invoice after a subscription change. */\nexport type BillingSubscriptionChangePreview = Node & {\n __typename?: 'BillingSubscriptionChangePreview';\n id: Scalars['ID']['output'];\n /** Total of the next-period invoice in EUR, as Stripe projects it. */\n newPeriodTotal: Scalars['Float']['output'];\n /**\n * Sum of immediate-proration line items in EUR. Null for changes that take\n * effect at the next period boundary; non-null (possibly zero) for immediate\n * changes (seat updates).\n */\n proratedCharge?: Maybe<Scalars['Float']['output']>;\n /**\n * When the change becomes effective. For next-period changes (credits,\n * periodicity) this is the current period end; for immediate-prorated changes\n * (seats), it is the current time.\n */\n takesEffectAt: Scalars['ISO8601DateTime']['output'];\n};\n\n/** Autogenerated input type of CancelBillingCustomerSubscriptions */\nexport type CancelBillingCustomerSubscriptionsInput = {\n /** Billing customer UUID whose active subscriptions are canceled. Max stores this on `companies.billing_customer_id`. */\n billingCustomerId: Scalars['ID']['input'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated return type of CancelBillingCustomerSubscriptions. */\nexport type CancelBillingCustomerSubscriptionsPayload = Node & {\n __typename?: 'CancelBillingCustomerSubscriptionsPayload';\n /** Number of subscriptions canceled by this call. Zero when the customer had no active subscription. */\n canceledCount: Scalars['Int']['output'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n};\n\n/** A single entry in a contact's career history: a work-experience role, degree, certification, award, or publication. */\nexport type CareerEntry = Node & {\n __typename?: 'CareerEntry';\n /** Free-text description of the entry as provided by the source. */\n description?: Maybe<Scalars['String']['output']>;\n /** End date of the entry (upper bound of its period), or null when the entry is ongoing or the source gave no end date. */\n endedOn?: Maybe<Scalars['ISO8601Date']['output']>;\n id: Scalars['ID']['output'];\n /** Which kind of career entry this is. */\n kind: CareerEntryKind;\n /**\n * The organization this entry links to (e.g. the employer or school), or null\n * when it could not be resolved to a known record.\n */\n organization?: Maybe<Organization>;\n /** Start date of the entry (lower bound of its period), or null when the source gave no start date. */\n startedOn?: Maybe<Scalars['ISO8601Date']['output']>;\n /** The entry's headline — role title, degree, certification name, award title, or publication title depending on kind. */\n title?: Maybe<Scalars['String']['output']>;\n /** Source URL for the entry (e.g. the credential link), or null. */\n url?: Maybe<Scalars['String']['output']>;\n};\n\n/** The connection type for CareerEntry. */\nexport type CareerEntryConnection = {\n __typename?: 'CareerEntryConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<CareerEntryEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<CareerEntry>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n /** Total number of items across all pages. */\n totalCount: Scalars['Int']['output'];\n};\n\n/** An edge in a connection. */\nexport type CareerEntryEdge = Node & {\n __typename?: 'CareerEntryEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n id: Scalars['ID']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<CareerEntry>;\n};\n\n/** The kind of entry in a contact's career history. */\nexport type CareerEntryKind =\n /** An award or honor received. */\n | 'AWARD'\n /** A professional certification. */\n | 'CERTIFICATION'\n /** A degree or course of study. */\n | 'EDUCATION'\n /** A past or current work-experience role. */\n | 'EXPERIENCE'\n /** An authored publication. */\n | 'PUBLICATION';\n\n/** Filter on career-entry kind with schema-validated enum values. */\nexport type CareerEntryKindFilterInput = {\n /** Exact match. */\n eq?: InputMaybe<CareerEntryKind>;\n /** Match any of these values. */\n in?: InputMaybe<Array<CareerEntryKind>>;\n /** Exclude exact match. */\n notEq?: InputMaybe<CareerEntryKind>;\n /** Exclude any of these values. */\n notIn?: InputMaybe<Array<CareerEntryKind>>;\n};\n\n/** Autogenerated input type of ChangeBillingSubscription */\nexport type ChangeBillingSubscriptionInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Target extra-credits add-on quantity. Must be >= 0. Pass 0 to remove the add-on entirely. */\n extraCredits?: InputMaybe<Scalars['Int']['input']>;\n /** Target extra-seats add-on quantity (above the plan's included seats). Must be >= 0. Pass 0 to remove the add-on entirely. */\n extraSeats?: InputMaybe<Scalars['Int']['input']>;\n /** Target periodicity. Omit to keep the current one. */\n periodicity?: InputMaybe<BillingPeriodicity>;\n /** Target plan tier. Omit to keep the current one. */\n plan?: InputMaybe<BillingPlanName>;\n /** Target subscription UUID. */\n subscriptionId: Scalars['ID']['input'];\n};\n\n/** Autogenerated return type of ChangeBillingSubscription. */\nexport type ChangeBillingSubscriptionPayload = Node & {\n __typename?: 'ChangeBillingSubscriptionPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** Snapshot of the next invoice as Stripe currently projects it. */\n preview: BillingSubscriptionChangePreview;\n};\n\n/** Federation reference to a Company owned by another subgraph. */\nexport type Company = Node & {\n __typename?: 'Company';\n /** GlobalID-encoded Company id. */\n id: Scalars['ID']['output'];\n /** Campaigns owned by this company that the calling user can access, newest first. */\n outboundCampaigns: OutboundCampaignConnection;\n};\n\n\n/** Federation reference to a Company owned by another subgraph. */\nexport type CompanyOutboundCampaignsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n status?: InputMaybe<OutboundCampaignStatus>;\n};\n\n/** A business contact associated with an organization. */\nexport type Contact = Node & {\n __typename?: 'Contact';\n /**\n * Profile picture URL from an enrichment source such as CoreSignal. Null until a\n * source provides one or the contact has no public photo.\n */\n avatarUrl?: Maybe<Scalars['String']['output']>;\n /** Paginated career entries — experience, education, certifications, awards, and publications — most recent first. */\n careerEntries: CareerEntryConnection;\n /** City where the contact is located. */\n city?: Maybe<Scalars['String']['output']>;\n /** Confidence score (0.0-1.0) from source quality, freshness, and diversity. */\n confidenceScore?: Maybe<Scalars['Float']['output']>;\n /** ISO 3166-1 alpha-2 country code. */\n countryCode?: Maybe<Scalars['String']['output']>;\n /** When the contact record was first created. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n /** Primary email address. */\n emailAddress?: Maybe<Scalars['String']['output']>;\n /** Extracted email pattern (e.g. {first}.{last}). */\n emailPattern?: Maybe<Scalars['String']['output']>;\n /** Verification status of the primary email address. */\n emailStatus?: Maybe<EmailStatus>;\n /** First name. */\n firstName?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** Functional department (e.g. marketing, sales, engineering). */\n jobFunction?: Maybe<Scalars['String']['output']>;\n /** Seniority level (e.g. c_level, vp, director, manager). */\n jobLevel?: Maybe<Scalars['String']['output']>;\n /** Current job title. */\n jobTitle?: Maybe<Scalars['String']['output']>;\n /** Last name. */\n lastName?: Maybe<Scalars['String']['output']>;\n /** LinkedIn profile URL. */\n linkedinUrl?: Maybe<Scalars['String']['output']>;\n /** Mercator location divisions assigned to this contact's location. Empty until the background enrichment job runs. */\n locations: LocationConnection;\n /** The organization this contact belongs to. */\n organization: Organization;\n /** Phone number from an enrichment source. Null until a source provides one. */\n phone?: Maybe<Scalars['String']['output']>;\n /**\n * Profile completeness score (0.0-1.0) from the presence of identity fields,\n * experience, and the merged confidence score. Consumers gate low-quality\n * records on this instead of counting raw history entries.\n */\n profileCompleteness: Scalars['Float']['output'];\n /** When the contact record was last modified. */\n updatedAt: Scalars['ISO8601DateTime']['output'];\n};\n\n\n/** A business contact associated with an organization. */\nexport type ContactCareerEntriesArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n kind?: InputMaybe<CareerEntryKindFilterInput>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\n/** A business contact associated with an organization. */\nexport type ContactLocationsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** The connection type for Contact. */\nexport type ContactConnection = {\n __typename?: 'ContactConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<ContactEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<Contact>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n /** Total number of items across all pages. */\n totalCount: Scalars['Int']['output'];\n};\n\n/** An edge in a connection. */\nexport type ContactEdge = {\n __typename?: 'ContactEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n /** Cosine distance from the sort query embedding. Only present when sorting by JOB_TITLE_DISTANCE with a query argument. */\n neighborDistance?: Maybe<Scalars['Float']['output']>;\n /** The item at the end of the edge. */\n node?: Maybe<Contact>;\n};\n\n/** Autogenerated return type of ContactEnrichmentResult. */\nexport type ContactEnrichmentResultPayload = {\n __typename?: 'ContactEnrichmentResultPayload';\n contact?: Maybe<Contact>;\n externalId: Scalars['ID']['output'];\n};\n\n/** Filter criteria for contacts. */\nexport type ContactFilterInput = {\n /** Filter by confidence score (0.0–1.0). */\n confidenceScore?: InputMaybe<FloatFilterInput>;\n /**\n * Filter by ISO 3166-1 alpha-2 country code.\n * @deprecated Use divisionIds for geographic filtering. divisionIds supports cities, regions, and multi-country groups (DACH, BENELUX) via Mercator.\n */\n countryCode?: InputMaybe<StringFilterInput>;\n /**\n * Filter contacts that belong to any of the given Mercator location division\n * IDs. `eq`/`in` match contacts with at least one overlapping division;\n * `not_eq`/`not_in` exclude them. This is an array-overlap filter against\n * Mercator-encoded division IDs, not a scalar Atlas ID filter.\n */\n divisionIds?: InputMaybe<IdFilterInput>;\n /**\n * Filter on the contact's email address. Values are downcased and trimmed\n * before matching — the same transform the column is written through — so\n * `eq: \" Jane@Acme.com \"` matches a stored \"jane@acme.com\". Matching is exact\n * after that, not a substring or domain search. An email is unique per\n * organization, and in practice globally, so a positive `eq` matches at most\n * one contact. Prefer this for a read-only \"do we already have this person?\"\n * lookup, batching a list through `in`; `searchContact` is the enriching\n * counterpart and will call paid providers on a miss. Pair with `valid: false`\n * to check existence irrespective of the quality floor — the default `valid`\n * gate requires a verified email and would hide a contact whose address is on\n * file but unverified. Use `emailStatus` to filter on verification state.\n */\n emailAddress?: InputMaybe<StringFilterInput>;\n /** Filter by email verification status (VALID, INVALID, CATCH_ALL, UNKNOWN). */\n emailStatus?: InputMaybe<EmailStatusFilterInput>;\n /** Filter by contact global id. */\n id?: InputMaybe<IdFilterInput>;\n /**\n * Job title embedding filters. Each entry matches contacts whose combined\n * job context (function + level + title) is semantically close to the query\n * string. Combine related roles in one string (e.g. \"CMO, Marketing Director,\n * VP Marketing\") for OR-like semantics via vector averaging. Multilingual\n * queries work: include translated titles (e.g. \"Marketing Director,\n * Directeur Marketing, Marketingleiter\") to improve cross-language recall.\n * Calibrated lteq for inclusion: 0.58 (text-embedding-3-small).\n * Threshold validated by the embedding_calibration test suite.\n */\n jobTitle?: InputMaybe<Array<EmbeddingFilterInput>>;\n /**\n * Filter on the contact's LinkedIn URL. `presence: true` returns only contacts\n * that have one — independent of `valid`, so combine `valid: false` with it to\n * reach contacts reachable on LinkedIn but without a verified email. `eq`/`in`\n * match specific URLs.\n */\n linkedin?: InputMaybe<StringFilterInput>;\n /**\n * Filter on the contact's full name. `presence: true` returns only contacts with\n * both a first and a last name — it re-expresses `valid`'s name floor on its\n * own, so callers passing `valid: false` can keep it without the\n * email/confidence floors. `eq`/`in` match a full name; values are compared\n * case- and accent-insensitively.\n */\n name?: InputMaybe<StringFilterInput>;\n /**\n * Return only contacts an outreach can land on — those with a LinkedIn URL, a\n * verified email, or both. Independent of `valid`, which requires the email leg\n * specifically, so pair `valid: false, reachable: true` to reach a contact whose\n * email is still undiscovered but whose LinkedIn profile is known. `false`\n * applies no constraint.\n */\n reachable?: InputMaybe<Scalars['Boolean']['input']>;\n /** Return only complete records (name, email, confidence >= 0.5). */\n valid?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\n/** Autogenerated return type of ContactIdentifyResult. */\nexport type ContactIdentifyResultPayload = {\n __typename?: 'ContactIdentifyResultPayload';\n contact?: Maybe<Contact>;\n externalId: Scalars['ID']['output'];\n};\n\n/** OneOf input for searchContact — supply exactly one lookup mode. */\nexport type ContactLookupInput = {\n /** Global ID of an existing contact whose email should be discovered. */\n contactId?: InputMaybe<Scalars['ID']['input']>;\n /** Contact's email address — globally unique within an organization. */\n emailAddress?: InputMaybe<Scalars['String']['input']>;\n /** Contact's LinkedIn profile URL — globally unique within an organization. */\n linkedinUrl?: InputMaybe<Scalars['String']['input']>;\n /** Name-based lookup: first name + last name + organization. */\n name?: InputMaybe<ContactNameInput>;\n};\n\n/** Name-based lookup for searchContact — first name, last name, and organization. */\nexport type ContactNameInput = {\n /** Contact's first name. */\n firstName: Scalars['String']['input'];\n /** Contact's last name. */\n lastName: Scalars['String']['input'];\n /** Global ID of the organization this contact belongs to. */\n organizationId: Scalars['ID']['input'];\n};\n\n/** Autogenerated return type of ContactSearchResult. */\nexport type ContactSearchResultPayload = {\n __typename?: 'ContactSearchResultPayload';\n /**\n * Matched contacts — both pre-existing database matches and newly-discovered,\n * newly-persisted third-party matches. Paginated; fetch further pages via the\n * `contacts` query using the same filter.\n */\n contacts: ContactConnection;\n externalId: Scalars['ID']['output'];\n};\n\n\n/** Autogenerated return type of ContactSearchResult. */\nexport type ContactSearchResultPayloadContactsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** Fields available for sorting contacts. */\nexport type ContactSortField =\n /** Sort by merged confidence score, highest first by default. */\n | 'CONFIDENCE_SCORE'\n /** Sort by creation timestamp. */\n | 'CREATED_AT'\n /** Cosine distance from the linked organization's description embedding. Requires a query argument. */\n | 'DESCRIPTION_DISTANCE'\n /** Cosine distance from the linked organization's industry embedding. Requires a query argument. */\n | 'INDUSTRY_DISTANCE'\n /** Cosine distance from the job_title embedding. */\n | 'JOB_TITLE_DISTANCE';\n\n/** Sort configuration for contacts. */\nexport type ContactSortInput = {\n direction?: InputMaybe<SortDirection>;\n field: ContactSortField;\n /**\n * Required when field is JOB_TITLE_DISTANCE, DESCRIPTION_DISTANCE, or\n * INDUSTRY_DISTANCE. Text to embed for distance ordering.\n */\n query?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Contact field values to cross-check against Atlas's stored data. */\nexport type ContactValidationChecksInput = {\n /** Email address to include in contact coherence checks. */\n email?: InputMaybe<Scalars['String']['input']>;\n /** Phone number to include in contact coherence checks. */\n phone?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated return type of ContactValidationResult. */\nexport type ContactValidationResultPayload = {\n __typename?: 'ContactValidationResultPayload';\n /** Per-field coherence flags from the validation pass. */\n clues?: Maybe<Scalars['JSON']['output']>;\n contact?: Maybe<Contact>;\n externalId: Scalars['ID']['output'];\n organization?: Maybe<Organization>;\n};\n\n/** A geographic point serialized as a GeoJSON Point object (RFC 7946). */\nexport type Coordinate = Node & {\n __typename?: 'Coordinate';\n /** Position in GeoJSON order: [longitude, latitude] (WGS 84). */\n coordinates: Array<Scalars['Float']['output']>;\n id: Scalars['ID']['output'];\n /** GeoJSON geometry type. Always \"Point\". */\n type: Scalars['String']['output'];\n};\n\n/** A geographic coordinate used as a spatial query input. */\nexport type CoordinateInput = {\n /** Latitude in decimal degrees (WGS 84). */\n lat: Scalars['Float']['input'];\n /** Longitude in decimal degrees (WGS 84). */\n lng: Scalars['Float']['input'];\n};\n\n/** Autogenerated input type of CreateBillingCheckoutSession */\nexport type CreateBillingCheckoutSessionInput = {\n /** Billing customer UUID. Max stores this on `companies.billing_customer_id`. */\n billingCustomerId: Scalars['ID']['input'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /**\n * Extra seats above the plan default. Defaults to 0; customer can add more later\n * via the Customer Portal or `updateBillingSubscriptionSeats`.\n */\n extraSeats?: InputMaybe<Scalars['Int']['input']>;\n /** Billing periodicity for the new subscription. MONTHLY or ANNUAL. */\n periodicity: BillingPeriodicity;\n /** Plan tier for the new subscription. STARTER triggers the free trial; GROWTH and SCALE start billing immediately. */\n plan: BillingPlanName;\n /** Override for the frontend base URL Stripe redirects to after Checkout. Defaults to BILLING_CHECKOUT_RETURN_BASE_URL. */\n returnBaseUrl?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated return type of CreateBillingCheckoutSession. */\nexport type CreateBillingCheckoutSessionPayload = Node & {\n __typename?: 'CreateBillingCheckoutSessionPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** Stripe-hosted Checkout URL. The frontend should immediately `window.location =` this. */\n url: Scalars['String']['output'];\n};\n\n/** Autogenerated input type of CreateBillingCustomer */\nexport type CreateBillingCustomerInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /**\n * Optional Max company UUID to record in Stripe's customer metadata for\n * cross-service debugging. Not used by billing for any lookup.\n */\n companyId?: InputMaybe<Scalars['ID']['input']>;\n /** Customer's email. Sent to Stripe so Checkout pre-fills the email field and receipts go to the right inbox. */\n email?: InputMaybe<Scalars['String']['input']>;\n /** Customer's display name (typically `first last`). Stored on the Stripe Customer for Dashboard readability. */\n name?: InputMaybe<Scalars['String']['input']>;\n /**\n * Product the customer belongs to — decides which Stripe account the customer is\n * created on and which plan catalog applies. Defaults to LEGACY for the old Max\n * app's callers; the account must be registered in the environment or the\n * mutation fails.\n */\n product?: InputMaybe<BillingProduct>;\n};\n\n/** Autogenerated return type of CreateBillingCustomer. */\nexport type CreateBillingCustomerPayload = Node & {\n __typename?: 'CreateBillingCustomerPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** The newly created billing customer. */\n customer: BillingCustomer;\n id: Scalars['ID']['output'];\n};\n\n/** Autogenerated input type of CreateBillingEmbeddedCheckoutSession */\nexport type CreateBillingEmbeddedCheckoutSessionInput = {\n /** Billing customer UUID. Max stores this on `companies.billing_customer_id`. */\n billingCustomerId: Scalars['ID']['input'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /**\n * Extra seats above the plan default. Defaults to 0; customer can add more later\n * via the Customer Portal or `updateBillingSubscriptionSeats`.\n */\n extraSeats?: InputMaybe<Scalars['Int']['input']>;\n /** Billing periodicity for the new subscription. MONTHLY or ANNUAL. */\n periodicity: BillingPeriodicity;\n /** Plan tier for the new subscription. STARTER triggers the free trial; GROWTH and SCALE start billing immediately. */\n plan: BillingPlanName;\n /**\n * Override for the frontend base URL Stripe redirects the parent frame to after\n * the customer completes payment. Defaults to the\n * BILLING_CHECKOUT_RETURN_BASE_URL env var.\n */\n returnBaseUrl?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated return type of CreateBillingEmbeddedCheckoutSession. */\nexport type CreateBillingEmbeddedCheckoutSessionPayload = Node & {\n __typename?: 'CreateBillingEmbeddedCheckoutSessionPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /**\n * Stripe Checkout Session client secret. The frontend feeds this to Stripe.js'\n * `<EmbeddedCheckoutProvider>` to mount the payment form inline.\n */\n clientSecret: Scalars['String']['output'];\n id: Scalars['ID']['output'];\n};\n\n/** Autogenerated input type of CreateBillingOfferEmbeddedCheckoutSession */\nexport type CreateBillingOfferEmbeddedCheckoutSessionInput = {\n /** Billing customer UUID. The customer's pending offer is checked out. */\n billingCustomerId: Scalars['ID']['input'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /**\n * Override for the frontend base URL Stripe redirects the parent frame to after\n * the customer completes payment. Defaults to the\n * BILLING_CHECKOUT_RETURN_BASE_URL env var.\n */\n returnBaseUrl?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated return type of CreateBillingOfferEmbeddedCheckoutSession. */\nexport type CreateBillingOfferEmbeddedCheckoutSessionPayload = Node & {\n __typename?: 'CreateBillingOfferEmbeddedCheckoutSessionPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** Stripe Checkout Session client secret. The frontend feeds this to Stripe.js' `<EmbeddedCheckoutProvider>`. */\n clientSecret: Scalars['String']['output'];\n id: Scalars['ID']['output'];\n};\n\n/** Autogenerated input type of CreateBillingOffer */\nexport type CreateBillingOfferInput = {\n /** Billing customer UUID the offer is pinned to. */\n billingCustomerId: Scalars['ID']['input'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Auth0 subject of the Sales Rep creating the offer, kept for attribution and reporting. */\n createdByUserId: Scalars['ID']['input'];\n /** Absolute recurring discount in EUR. Mutually exclusive with discountPercent. */\n discountAmountEur?: InputMaybe<Scalars['Float']['input']>;\n /** Percentage discount (0-100) off the tier's recurring fee. Mutually exclusive with discountAmountEur. */\n discountPercent?: InputMaybe<Scalars['Float']['input']>;\n /** When the offer can no longer be accepted, or null if it never expires. */\n expiresAt?: InputMaybe<Scalars['ISO8601DateTime']['input']>;\n /** Credits added each period on top of the tier's allowance. Defaults to 0. */\n extraCredits?: InputMaybe<Scalars['Int']['input']>;\n /** Seats added on top of the tier's included seats. Defaults to 0. */\n extraSeats?: InputMaybe<Scalars['Int']['input']>;\n /** Human-readable label for the deal, e.g. \"Acme Annual 2026\". */\n name: Scalars['String']['input'];\n /** Billing periodicity. One of: monthly, annual. */\n periodicity: Scalars['String']['input'];\n /** Catalog tier. One of: starter, growth, scale. */\n plan: Scalars['String']['input'];\n};\n\n/** Autogenerated return type of CreateBillingOffer. */\nexport type CreateBillingOfferPayload = Node & {\n __typename?: 'CreateBillingOfferPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** The newly created pending offer. */\n offer: Offer;\n};\n\n/** Autogenerated input type of CreateBillingPortalSession */\nexport type CreateBillingPortalSessionInput = {\n /** Billing customer UUID. */\n billingCustomerId: Scalars['ID']['input'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Override for the frontend base URL Stripe redirects back to after the Portal session closes. */\n returnUrl?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated return type of CreateBillingPortalSession. */\nexport type CreateBillingPortalSessionPayload = Node & {\n __typename?: 'CreateBillingPortalSessionPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** Stripe-hosted Customer Portal URL. */\n url: Scalars['String']['output'];\n};\n\n/** Autogenerated input type of CreateOutboundCampaign */\nexport type CreateOutboundCampaignInput = {\n /** Sequence template used to seed the campaign. Mutually exclusive with `steps`. */\n channel?: InputMaybe<OutboundCampaignTemplateChannel>;\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /**\n * Federation Global ID of the Company this campaign belongs to. Must be a Max\n * company the calling user is a member of. This is the only mutation that may\n * bootstrap a new Overloop tenant.\n */\n companyId: Scalars['ID']['input'];\n /** Campaign settings (name, schedule, autopilot flags, writing style, pitch settings). All sub-fields are optional. */\n settings?: InputMaybe<OutboundCampaignSettingsInput>;\n /** Initial campaign status. Defaults to OFF. (Update via `startCampaign` / `pauseCampaign`.) */\n status?: InputMaybe<OutboundCampaignStatus>;\n /** Custom step tree for the campaign. Mutually exclusive with `channel`. Provide at least one step. */\n steps?: InputMaybe<Array<OutboundCampaignStepInput>>;\n /**\n * Max User GID of the user this M2M call acts on behalf of. Overloop fetches the\n * user via Max's serviceUser M2M lookup — its sub keys the Overloop user row\n * (bootstrapped or upserted) so the federated identity matches the real user\n * rather than the M2M service account, and its profile fills name/email on first\n * creation. Ignored for interactive callers (their JWT identity wins).\n */\n userId?: InputMaybe<Scalars['ID']['input']>;\n};\n\n/** Autogenerated return type of CreateOutboundCampaign. */\nexport type CreateOutboundCampaignPayload = {\n __typename?: 'CreateOutboundCampaignPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** The created campaign. */\n outboundCampaign?: Maybe<OutboundCampaign>;\n};\n\n/** Autogenerated input type of CreateSource */\nexport type CreateSourceInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /**\n * Maps Atlas canonical contact field names to rawData extraction expressions.\n * Keys: first_name, last_name, email_address, job_title, job_level, job_function,\n * linkedin_url, city, country_code.\n * Values: a string key (\"firstname\"), an array path for nested access\n * ([\"data\", \"email\"]), or an operation hash\n * ({\"op\": \"split\", \"key\": \"full_name\", \"index\": 0}).\n * All referenced keys must exist in contact_schema.\n */\n contactFieldMappings?: InputMaybe<Scalars['JSON']['input']>;\n /** JSON Schema (draft-07) describing the expected shape of contact rawData payloads. */\n contactSchema?: InputMaybe<Scalars['JSON']['input']>;\n /**\n * Maps Atlas canonical identification field names to rawData extraction expressions.\n * Keys: ip_address, organization_domain, confidence_score.\n * Values follow the same expression syntax as contact_field_mappings.\n * All referenced keys must exist in identification_schema.\n */\n identificationFieldMappings?: InputMaybe<Scalars['JSON']['input']>;\n /** JSON Schema (draft-07) describing the expected shape of identification rawData payloads. */\n identificationSchema?: InputMaybe<Scalars['JSON']['input']>;\n /**\n * Maps Atlas canonical organization field names to rawData extraction expressions.\n * Keys: name, website, phone, contact_email, linkedin_url, description,\n * company_size, founded_year, industry, country_code, annual_revenue.\n * Values: a string key (\"name\"), an array path ([\"company\", \"name\"]),\n * or an operation hash ({\"op\": \"parse_employee_range\", \"path\": [\"size_range\"]}).\n * All referenced keys must exist in organization_schema.\n */\n organizationFieldMappings?: InputMaybe<Scalars['JSON']['input']>;\n /** JSON Schema (draft-07) describing the expected shape of organization rawData payloads. */\n organizationSchema?: InputMaybe<Scalars['JSON']['input']>;\n /** Short machine-readable identifier for this source (e.g. snitcher, hunter). */\n slug: Scalars['String']['input'];\n /** Weight applied during multi-source merging, 0.0–1.0. Higher scores win field conflicts. */\n trustScore?: InputMaybe<Scalars['Float']['input']>;\n};\n\n/** Autogenerated input type of CreateWatcher */\nexport type CreateWatcherInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /**\n * Ignored. Accepted only so callers written against the previous schema keep\n * working; a Watcher is keyed on the calling `owner_sub`, never on a company.\n * @deprecated Never read. Removed once the last caller stops sending it.\n */\n companyId?: InputMaybe<Scalars['ID']['input']>;\n /** Slug of the Definition to subscribe to. */\n definitionSlug: Scalars['String']['input'];\n /** Version of the Definition to subscribe to. */\n definitionVersion: Scalars['Int']['input'];\n /**\n * How the upstream source treats a lead it has already delivered for this\n * watcher. Omit to leave the source's own default in place.\n */\n duplicateHandling?: InputMaybe<DuplicateHandlingInput>;\n /**\n * Optional Ideal Customer Profile, in the same shape Atlas search uses —\n * including geography: `contact.divisionIds` / `organization.divisionIds` are\n * Mercator location division IDs filtered exactly as Atlas search filters them,\n * so `notIn` excludes places as well. Forwarded to each provider's upstream\n * source so leads outside the profile are never emitted — and never billed. Part\n * of the watcher's identity: two callers watching the same topic with different\n * profiles get separate watchers.\n */\n icp?: InputMaybe<WatcherIcpInput>;\n /**\n * Optional freshness-first per-period lead caps for this watcher. Omit or pass\n * an empty list to leave the watcher uncapped. Caps are a property of the\n * watcher (not the individual webhook), so they replace any caps already set on\n * a shared watcher.\n */\n leadCaps?: InputMaybe<Array<LeadCapInput>>;\n /** User-supplied watcher input validated against the Definition's `watcherInputSchema`. */\n watcherInput: Scalars['JSON']['input'];\n /** Delivery endpoint registered on this watcher. Multiple callers with the same definition and input share one watcher. */\n webhook: WatcherWebhookInput;\n};\n\n/** Autogenerated return type of CreateWatcher. */\nexport type CreateWatcherPayload = Node & {\n __typename?: 'CreateWatcherPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** The newly created or updated Watcher. */\n watcher: Watcher;\n};\n\n/** Autogenerated input type of DebitCredits */\nexport type DebitCreditsInput = {\n /** Billing customer UUID the consumer holds for the tenant (from Company.billingCustomerId). */\n billingCustomerId: Scalars['ID']['input'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** UUID of the record being paid for (e.g. the Lead or Message id). */\n consumableId: Scalars['ID']['input'];\n /** AR class name of the consumed record (e.g. 'Lead', 'Message'). */\n consumableType: Scalars['String']['input'];\n /** Number of credits to draw. Must be greater than 0. */\n cost: Scalars['Float']['input'];\n /** Optional label stored on the debit rows. */\n description?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated return type of DebitCredits. */\nexport type DebitCreditsPayload = Node & {\n __typename?: 'DebitCreditsPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** Debit rows written by this call. Empty on failure. */\n debits: Array<BillingDebit>;\n /** Currently always `insufficient_credits`. Null on success. */\n errorCode?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** Customer's credit balance after the debit, or on failure. */\n remainingBalance: Scalars['Float']['output'];\n /** True when the full cost was drawn. */\n success: Scalars['Boolean']['output'];\n};\n\n/** A signal Definition: a code-defined strategy that produces leads from external sources via one or more internal providers. */\nexport type Definition = {\n __typename?: 'Definition';\n /**\n * JSON Schema describing the shape of `Event.payload` rows produced by this\n * Definition, regardless of which provider delivered them.\n */\n canonicalEventSchema: Scalars['JSON']['output'];\n /** Whether this Definition version is deprecated. */\n deprecated: Scalars['Boolean']['output'];\n /** Human-readable explanation of the signal this Definition captures. */\n description?: Maybe<Scalars['String']['output']>;\n /**\n * Display-only description localized to the caller's Accept-Language locale, for\n * showing in the UI. Falls back to the English `description` when no translation exists.\n */\n descriptionLocalized?: Maybe<Scalars['String']['output']>;\n /** Stable composite identifier in the form 'slug@version'. */\n id: Scalars['ID']['output'];\n /** Human-readable name of the Definition. */\n name: Scalars['String']['output'];\n /**\n * Display-only name localized to the caller's Accept-Language locale, for\n * showing in the UI. Falls back to the English `name` when no translation exists.\n */\n nameLocalized: Scalars['String']['output'];\n /** Cron expression for scheduled ingestion runs, or null if the Definition is purely webhook-driven. */\n scheduleCron?: Maybe<Scalars['String']['output']>;\n /** URL-safe identifier of the Definition (e.g. 'radar'). */\n slug: Scalars['String']['output'];\n /** Ways this Definition can be triggered (scheduled, webhook, manual). */\n triggers: Array<TriggerEnum>;\n /** Definition version. Bumped when the canonical event shape changes. */\n version: Scalars['Int']['output'];\n /**\n * JSON Schema for the user-supplied watcher input. The same input is fanned out\n * to every internal provider; providers never require additional user input.\n * Each property carries a localized `title` and, for enum-constrained\n * properties, an `x-enumLabels` map of localized option labels in the caller's locale.\n */\n watcherInputSchema: Scalars['JSON']['output'];\n};\n\n/** The connection type for Definition. */\nexport type DefinitionConnection = {\n __typename?: 'DefinitionConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<DefinitionEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<Definition>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n /** Total number of items across all pages. */\n totalCount: Scalars['Int']['output'];\n};\n\n/** An edge in a connection. */\nexport type DefinitionEdge = {\n __typename?: 'DefinitionEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<Definition>;\n};\n\n/** Filter arguments for the definitions connection. */\nexport type DefinitionFilterInput = {\n /** Include deprecated definitions. Defaults to false. */\n includeDeprecated?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\n/**\n * Input for a DELAY step's configuration. The optional `exitDelayTrigger` flag and\n * `exitDelayTriggerFilters` are intentionally omitted: their filter payload is not\n * yet typed, so they cannot be created or modified through this mutation. Existing\n * delay nodes with those fields configured are preserved as-is on update.\n */\nexport type DelayInput = {\n /** Number of days to wait before continuing. */\n daysDelay?: InputMaybe<Scalars['Int']['input']>;\n /** Whether the delay should skip weekends. */\n excludeWeekends?: InputMaybe<Scalars['Boolean']['input']>;\n /** Number of hours to wait before continuing. */\n hoursDelay?: InputMaybe<Scalars['Int']['input']>;\n /** Number of minutes to wait before continuing. */\n minutesDelay?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** Configuration for a DELAY step. */\nexport type DelayStepConfig = {\n __typename?: 'DelayStepConfig';\n /** Number of days to wait before continuing. */\n daysDelay?: Maybe<Scalars['Int']['output']>;\n /** Whether the delay should skip weekends. */\n excludeWeekends?: Maybe<Scalars['Boolean']['output']>;\n /** Whether the delay can be exited early when an event matches the trigger filters. */\n exitDelayTrigger?: Maybe<Scalars['Boolean']['output']>;\n /** Filter conditions that allow early exit. Untyped for now; will be typed when the segment-filter system is unified. */\n exitDelayTriggerFilters?: Maybe<Scalars['JSON']['output']>;\n /** Number of hours to wait before continuing. */\n hoursDelay?: Maybe<Scalars['Int']['output']>;\n /** Number of minutes to wait before continuing. */\n minutesDelay?: Maybe<Scalars['Int']['output']>;\n};\n\n/** Autogenerated input type of DeleteBillingCustomer */\nexport type DeleteBillingCustomerInput = {\n /** Billing customer UUID to delete. Max stores this on `companies.billing_customer_id`. */\n billingCustomerId: Scalars['ID']['input'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated return type of DeleteBillingCustomer. */\nexport type DeleteBillingCustomerPayload = Node & {\n __typename?: 'DeleteBillingCustomerPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** True when the customer was deleted. */\n deleted: Scalars['Boolean']['output'];\n id: Scalars['ID']['output'];\n};\n\n/** Autogenerated input type of DeleteOutboundCampaign */\nexport type DeleteOutboundCampaignInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Global ID of the campaign to delete. */\n id: Scalars['ID']['input'];\n};\n\n/** Autogenerated return type of DeleteOutboundCampaign. */\nexport type DeleteOutboundCampaignPayload = {\n __typename?: 'DeleteOutboundCampaignPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** The soft-deleted campaign. */\n outboundCampaign?: Maybe<OutboundCampaign>;\n};\n\n/** Autogenerated input type of DeleteWatcher */\nexport type DeleteWatcherInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n id: Scalars['ID']['input'];\n /** Webhook URL to remove from this watcher. Cancels the watcher automatically when the last URL is removed. */\n webhookUrl: Scalars['String']['input'];\n};\n\n/** Autogenerated return type of DeleteWatcher. */\nexport type DeleteWatcherPayload = Node & {\n __typename?: 'DeleteWatcherPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** The updated or canceled Watcher. */\n watcher: Watcher;\n};\n\n/** Autogenerated input type of DeviceAuthorize */\nexport type DeviceAuthorizeInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n scope?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type DeviceCodeResponse = Node & {\n __typename?: 'DeviceCodeResponse';\n deviceCode: Scalars['String']['output'];\n expiresIn: Scalars['Int']['output'];\n id: Scalars['ID']['output'];\n interval: Scalars['Int']['output'];\n userCode: Scalars['String']['output'];\n verificationUri: Scalars['String']['output'];\n verificationUriComplete?: Maybe<Scalars['String']['output']>;\n};\n\n/** Autogenerated input type of DeviceToken */\nexport type DeviceTokenInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n deviceCode: Scalars['String']['input'];\n};\n\n/** Autogenerated input type of DisenrollLeadFromOutboundCampaign */\nexport type DisenrollLeadFromOutboundCampaignInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Federation-encoded Max Lead GID. */\n leadId: Scalars['ID']['input'];\n /** Global ID of the campaign to disenroll the lead from. */\n outboundCampaignId: Scalars['ID']['input'];\n};\n\n/** Autogenerated return type of DisenrollLeadFromOutboundCampaign. */\nexport type DisenrollLeadFromOutboundCampaignPayload = {\n __typename?: 'DisenrollLeadFromOutboundCampaignPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** The disenrolled enrollment, with disenrolledAt and disenrollmentReason set. */\n outboundCampaignEnrollment?: Maybe<OutboundCampaignEnrollment>;\n};\n\n/** Autogenerated return type of DomainValidationResult. */\nexport type DomainValidationResultPayload = {\n __typename?: 'DomainValidationResultPayload';\n /** Per-field coherence flags from the validation pass. */\n clues?: Maybe<Scalars['JSON']['output']>;\n externalId: Scalars['ID']['output'];\n organization?: Maybe<Organization>;\n};\n\n/**\n * Policy for a lead the upstream source has already delivered for this Watcher.\n * Omit the whole input to leave the source's own default in place.\n */\nexport type DuplicateHandlingInput = {\n /** Which policy applies. */\n mode: DuplicateHandlingModeEnum;\n /**\n * How long a repeat delivery stays refused, as an ISO-8601 duration (e.g. P7D).\n * Required when `mode` is REFUSE_DURING and rejected otherwise. Sources count\n * this in whole days, so a duration that isn't a whole number of days is rejected.\n */\n period?: InputMaybe<Scalars['ISO8601Duration']['input']>;\n};\n\n/** How the upstream source treats a lead it has already delivered for a Watcher. */\nexport type DuplicateHandlingModeEnum =\n /** Always deliver, even for a lead already seen. */\n | 'ALWAYS'\n /** Never deliver the same lead twice. */\n | 'REFUSE'\n /** Refuse a repeat delivery for `period`, then allow it again. */\n | 'REFUSE_DURING';\n\n/** Input for an EMAIL step's configuration. */\nexport type EmailInput = {\n /** Email body content (Liquid template). Ignored when `generateWithAi` is true. */\n content?: InputMaybe<Scalars['String']['input']>;\n /** Whether the email subject and content are AI-generated. When false (or omitted), `subject` and `content` are used as-is. */\n generateWithAi?: InputMaybe<Scalars['Boolean']['input']>;\n /** Email subject line (Liquid template). Ignored when `generateWithAi` is true. */\n subject?: InputMaybe<Scalars['String']['input']>;\n /** Per-step writing-style override. Falls back to the campaign-level writing style when null. */\n writingStyle?: InputMaybe<OutboundCampaignWritingStyleInput>;\n};\n\n/** Email verification status. */\nexport type EmailStatus =\n /** Domain accepts all emails (catch-all). */\n | 'CATCH_ALL'\n /** Email is invalid or undeliverable. */\n | 'INVALID'\n /** Verification status is unknown. */\n | 'UNKNOWN'\n /** Email is valid and deliverable. */\n | 'VALID';\n\n/** Filter on email status with schema-validated enum values. */\nexport type EmailStatusFilterInput = {\n /** Exact match. */\n eq?: InputMaybe<EmailStatus>;\n /** Match any of these values. */\n in?: InputMaybe<Array<EmailStatus>>;\n /** Exclude exact match. */\n notEq?: InputMaybe<EmailStatus>;\n /** Exclude any of these values. */\n notIn?: InputMaybe<Array<EmailStatus>>;\n};\n\n/** Configuration for an EMAIL step. */\nexport type EmailStepConfig = {\n __typename?: 'EmailStepConfig';\n /** Email body content (Liquid template). Null when AI-generated. */\n content?: Maybe<Scalars['String']['output']>;\n /** Whether the email subject and content are AI-generated. When false, `subject` and `content` are used as-is. */\n generateWithAi: Scalars['Boolean']['output'];\n /** Email subject line (Liquid template). Null when AI-generated. */\n subject?: Maybe<Scalars['String']['output']>;\n /** Per-step writing-style override. Falls back to the campaign-level writing style when null. */\n writingStyle?: Maybe<OutboundCampaignWritingStyle>;\n};\n\n/** A semantic-similarity filter, as submitted. */\nexport type EmbeddingFilter = {\n __typename?: 'EmbeddingFilter';\n /** Cosine distance constraints (0 = identical, 2 = opposite). */\n distance?: Maybe<FloatFilter>;\n /** Text that was embedded and compared against. */\n query?: Maybe<Scalars['String']['output']>;\n};\n\n/** Filter by semantic similarity using vector embeddings. */\nexport type EmbeddingFilterInput = {\n /** Cosine distance constraints (0 = identical, 2 = opposite). */\n distance: FloatFilterInput;\n /** Text to embed and compare against. */\n query: Scalars['String']['input'];\n};\n\n/** Autogenerated input type of EnrichContact */\nexport type EnrichContactInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** The contact's primary email address. */\n emailAddress?: InputMaybe<Scalars['String']['input']>;\n /**\n * Caller-supplied correlation id; when present, the merged contact is broadcast\n * over the contactEnrichmentResult subscription.\n */\n externalId?: InputMaybe<Scalars['ID']['input']>;\n /** The contact's first name. */\n firstName?: InputMaybe<Scalars['String']['input']>;\n /** When the raw data was originally ingested. */\n ingestedAt?: InputMaybe<Scalars['ISO8601DateTime']['input']>;\n /** Visitor IP address associated with this event. */\n ip?: InputMaybe<Scalars['String']['input']>;\n /** The contact's last name. */\n lastName?: InputMaybe<Scalars['String']['input']>;\n /** The contact's LinkedIn profile URL. */\n linkedinUrl?: InputMaybe<Scalars['String']['input']>;\n /** The organization's primary web domain. When omitted, it is resolved from the linkedin and organization hints below. */\n organizationDomain?: InputMaybe<Scalars['String']['input']>;\n /**\n * The organization's LinkedIn URL. Used to resolve the organization domain via\n * CoreSignal when organization_domain is omitted.\n */\n organizationLinkedinUrl?: InputMaybe<Scalars['String']['input']>;\n /** The organization's name. Used to resolve the organization domain via web search when organization_domain is omitted. */\n organizationName?: InputMaybe<Scalars['String']['input']>;\n /** The full raw enrichment payload. */\n rawData: Scalars['JSON']['input'];\n /** The ID of the enrichment source. */\n sourceId: Scalars['ID']['input'];\n};\n\n/** Autogenerated input type of EnrichIdentification */\nexport type EnrichIdentificationInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** When the raw data was originally ingested. */\n ingestedAt?: InputMaybe<Scalars['ISO8601DateTime']['input']>;\n /** The IPv4 or IPv6 address being identified. */\n ip: Scalars['String']['input'];\n /** The company domain identified for this IP. */\n organizationDomain?: InputMaybe<Scalars['String']['input']>;\n /** The raw enrichment payload, stored as-is. */\n rawData?: InputMaybe<Scalars['JSON']['input']>;\n /** The ID of the enrichment source. */\n sourceId: Scalars['ID']['input'];\n};\n\n/** Autogenerated input type of EnrichOrganization */\nexport type EnrichOrganizationInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** The company's primary web domain. */\n domain: Scalars['String']['input'];\n /**\n * Correlation id echoed on the `organizationEnrichmentResult` subscription once\n * the merge (including embeddings) has settled. When omitted, no result is broadcast.\n */\n externalId?: InputMaybe<Scalars['ID']['input']>;\n /** When the raw data was originally ingested. */\n ingestedAt?: InputMaybe<Scalars['ISO8601DateTime']['input']>;\n /** Visitor IP associated with this event. */\n ip?: InputMaybe<Scalars['String']['input']>;\n /** The full raw enrichment payload. */\n rawData: Scalars['JSON']['input'];\n /** The ID of the enrichment source. */\n sourceId: Scalars['ID']['input'];\n};\n\n/** Autogenerated input type of EnrollLeadToOutboundCampaign */\nexport type EnrollLeadToOutboundCampaignInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Federation-encoded Max Lead GID. */\n leadId: Scalars['ID']['input'];\n /** Global ID of the campaign to enroll the lead in. */\n outboundCampaignId: Scalars['ID']['input'];\n /** Allow re-enrollment if the lead was previously enrolled. */\n reenroll?: InputMaybe<Scalars['Boolean']['input']>;\n /** Schedule the enrollment for a future time. */\n startAt?: InputMaybe<Scalars['ISO8601DateTime']['input']>;\n /** Global ID of the step to start at. Defaults to the first step. */\n stepId?: InputMaybe<Scalars['ID']['input']>;\n};\n\n/** Autogenerated return type of EnrollLeadToOutboundCampaign. */\nexport type EnrollLeadToOutboundCampaignPayload = {\n __typename?: 'EnrollLeadToOutboundCampaignPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** The created enrollment. */\n outboundCampaignEnrollment?: Maybe<OutboundCampaignEnrollment>;\n};\n\n/** Federation reference to a Event owned by another subgraph. */\nexport type Event = Node & {\n __typename?: 'Event';\n /** Timestamp when the Event row was persisted. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n /** Key used by the Definition's deduplication strategy. Null when the Definition does not deduplicate. */\n deduplicationKey?: Maybe<Scalars['String']['output']>;\n /** GlobalID-encoded Event id. */\n id: Scalars['ID']['output'];\n /** Timestamp at which the originating ingestion run observed this Event. */\n observedAt: Scalars['ISO8601DateTime']['output'];\n /** Timestamp at which the underlying activity actually happened upstream, when known. */\n occurredAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Canonical Event payload following the Definition's `canonicalEventSchema`. */\n payload: Scalars['JSON']['output'];\n /** Timestamp of the most recent failed materialization attempt. */\n processingFailedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Timestamp at which materialization succeeded. */\n processingSucceededAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n};\n\n/** The connection type for Event. */\nexport type EventConnection = {\n __typename?: 'EventConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<EventEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<Event>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n /** Total number of items across all pages. */\n totalCount: Scalars['Int']['output'];\n};\n\n/** An edge in a connection. */\nexport type EventEdge = {\n __typename?: 'EventEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<Event>;\n};\n\n/** A numeric comparison filter, as submitted. */\nexport type FloatFilter = {\n __typename?: 'FloatFilter';\n /** Exact match. */\n eq?: Maybe<Scalars['Float']['output']>;\n /** Greater than. */\n gt?: Maybe<Scalars['Float']['output']>;\n /** Greater than or equal. */\n gteq?: Maybe<Scalars['Float']['output']>;\n /** Less than. */\n lt?: Maybe<Scalars['Float']['output']>;\n /** Less than or equal. */\n lteq?: Maybe<Scalars['Float']['output']>;\n};\n\n/** Filter on a numeric column with comparison operators. */\nexport type FloatFilterInput = {\n /** Exact match. */\n eq?: InputMaybe<Scalars['Float']['input']>;\n /** Greater than. */\n gt?: InputMaybe<Scalars['Float']['input']>;\n /** Greater than or equal. */\n gteq?: InputMaybe<Scalars['Float']['input']>;\n /** Less than. */\n lt?: InputMaybe<Scalars['Float']['input']>;\n /** Less than or equal. */\n lteq?: InputMaybe<Scalars['Float']['input']>;\n};\n\n/** Autogenerated input type of GenerateOutboundCampaignMessagePreview */\nexport type GenerateOutboundCampaignMessagePreviewInput = {\n /** Federation-encoded Atlas Contact GID. The preview is generated against this contact without persisting a lead for it. */\n atlasContactId: Scalars['ID']['input'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Global ID of the campaign step to preview. */\n outboundCampaignStepId: Scalars['ID']['input'];\n};\n\n/** Autogenerated return type of GenerateOutboundCampaignMessagePreview. */\nexport type GenerateOutboundCampaignMessagePreviewPayload = {\n __typename?: 'GenerateOutboundCampaignMessagePreviewPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** The message preview for the requested step. Null on error. */\n outboundCampaignMessagePreview?: Maybe<OutboundCampaignMessagePreview>;\n};\n\n/** Filter on an encoded global ID field with positive and negative matching. */\nexport type IdFilterInput = {\n /** Exact match. */\n eq?: InputMaybe<Scalars['ID']['input']>;\n /** Match any of these values. */\n in?: InputMaybe<Array<Scalars['ID']['input']>>;\n /** Exclude exact match. */\n notEq?: InputMaybe<Scalars['ID']['input']>;\n /** Exclude any of these values. */\n notIn?: InputMaybe<Array<Scalars['ID']['input']>>;\n};\n\n/** An IP-to-company identification record. */\nexport type Identification = Node & {\n __typename?: 'Identification';\n /** Confidence score between 0.0 and 1.0. */\n confidenceScore?: Maybe<Scalars['Float']['output']>;\n /** When the identification was created. */\n createdAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n id: Scalars['ID']['output'];\n /** The identified IP address. */\n ipAddress: Scalars['String']['output'];\n /** Best matching industry name from provided candidates. */\n matchedIndustry?: Maybe<Scalars['String']['output']>;\n /** The identified organization. */\n organization?: Maybe<Organization>;\n /** When the identification was last updated. */\n updatedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n};\n\n/** The connection type for Identification. */\nexport type IdentificationConnection = {\n __typename?: 'IdentificationConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<IdentificationEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<Identification>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n /** Total number of items across all pages. */\n totalCount: Scalars['Int']['output'];\n};\n\n/** An edge in a connection. */\nexport type IdentificationEdge = Node & {\n __typename?: 'IdentificationEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n id: Scalars['ID']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<Identification>;\n};\n\n/** Filter criteria for identifications. */\nexport type IdentificationFilterInput = {\n /** Filter by confidence score (0.0–1.0). */\n confidenceScore?: InputMaybe<FloatFilterInput>;\n /** Return only matched identifications. */\n valid?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\n/** Federation reference to a Lead owned by another subgraph. */\nexport type Lead = Node & {\n __typename?: 'Lead';\n /** GlobalID-encoded Lead id. */\n id: Scalars['ID']['output'];\n /** Campaign enrollments for this lead in the current Overloop account, newest first. */\n outboundCampaignEnrollments: OutboundCampaignEnrollmentConnection;\n};\n\n\n/** Federation reference to a Lead owned by another subgraph. */\nexport type LeadOutboundCampaignEnrollmentsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n status?: InputMaybe<OutboundCampaignEnrollmentStatus>;\n};\n\n/**\n * A single freshness-first lead cap for a Watcher: at most `maximumLeads` events\n * are surfaced per `period`, counted from `startsAt` and reset at every period\n * boundary. Excess events are dropped, never buffered. Combine several caps to\n * constrain multiple periods at once — the most restrictive one wins.\n */\nexport type LeadCapInput = {\n /** Maximum number of events surfaced per period. Must be greater than zero. */\n maximumLeads: Scalars['Int']['input'];\n /** Length of the accumulation window as an ISO-8601 duration, e.g. P1D (one day) or P1W (one week). */\n period: Scalars['ISO8601Duration']['input'];\n /** Anchor at which the first period begins. Defaults to the moment the cap is created. */\n startsAt?: InputMaybe<Scalars['ISO8601DateTime']['input']>;\n};\n\n/** Input for a LINKEDIN_SEND_INVITATION step's configuration. */\nexport type LinkedinSendInvitationInput = {\n /** Optional connection-request note (max 300 characters, Liquid template). */\n message?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Configuration for a LINKEDIN_SEND_INVITATION step. */\nexport type LinkedinSendInvitationStepConfig = {\n __typename?: 'LinkedinSendInvitationStepConfig';\n /** Optional connection-request note (max 300 characters, Liquid template). */\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Input for a LINKEDIN_SEND_MESSAGE step's configuration. */\nexport type LinkedinSendMessageInput = {\n /** Whether the message is AI-generated. When false (or omitted), `message` is used as-is. */\n generateWithAi?: InputMaybe<Scalars['Boolean']['input']>;\n /** Message body (Liquid template). Ignored when `generateWithAi` is true. */\n message?: InputMaybe<Scalars['String']['input']>;\n /** Per-step writing-style override. Falls back to the campaign-level writing style when null. */\n writingStyle?: InputMaybe<OutboundCampaignWritingStyleInput>;\n};\n\n/** Configuration for a LINKEDIN_SEND_MESSAGE step. */\nexport type LinkedinSendMessageStepConfig = {\n __typename?: 'LinkedinSendMessageStepConfig';\n /** Whether the message is AI-generated. When false, `message` is used as-is. */\n generateWithAi: Scalars['Boolean']['output'];\n /** Message body (Liquid template). Null when AI-generated. */\n message?: Maybe<Scalars['String']['output']>;\n /** Per-step writing-style override. Falls back to the campaign-level writing style when null. */\n writingStyle?: Maybe<OutboundCampaignWritingStyle>;\n};\n\n/** Federation reference to a Location owned by another subgraph. */\nexport type Location = Node & {\n __typename?: 'Location';\n /** Numeric hierarchy depth. 0 = country, higher = more granular. */\n adminLevel: Scalars['Int']['output'];\n /**\n * National administrative codes for this division, own codes first, then codes\n * inherited from enclosing divisions — so a locality reports its département's\n * and region's INSEE codes without the caller walking the hierarchy. Each entry\n * names the division it came from via locationId. Empty for divisions in\n * countries without a mapped scheme.\n */\n administrativeCodes: Array<AdministrativeCode>;\n /**\n * Every enclosing division, ordered root-first (highest ancestor first,\n * immediate parent last) so the connection reads as a breadcrumb path. Excludes\n * this location, so a root division returns an empty connection — and so does a\n * freshly imported division whose ancestry is not yet resolved. The two are\n * deliberately indistinguishable here: both mean \"no ancestors to walk\".\n */\n ancestors: LocationConnection;\n /** Center point of the division boundary as a GeoJSON Point. */\n centroid?: Maybe<Coordinate>;\n /** Child divisions in the hierarchy. */\n children: LocationConnection;\n /** ISO 3166-1 alpha-2 country code of the division. */\n countryCode?: Maybe<Scalars['String']['output']>;\n /** GlobalID-encoded Location id. */\n id: Scalars['ID']['output'];\n /**\n * ISO 3166-2 code of the principal subdivision this division belongs to, e.g.\n * \"FR-IDF\", \"BE-WAL\" — the division's own code only on REGION rows; every deeper\n * division carries its enclosing region's. As shipped by Overture; null when the\n * source has none.\n */\n iso31662?: Maybe<Scalars['String']['output']>;\n /**\n * Name in the requested language, e.g. \"Luxembourg\" for EN where name is\n * \"Lëtzebuerg\". Falls back to the English name, and then to name, for the\n * divisions the source publishes neither for — so it is always a usable name\n * rather than sometimes null.\n */\n localizedName: Scalars['String']['output'];\n /**\n * Primary name of the division as Overture publishes it, which is the local\n * endonym for a multilingual country — \"Lëtzebuerg\",\n * \"Schweiz/Suisse/Svizzera/Svizra\". Read localizedName when the name has to be\n * understood, matched or displayed in one language.\n */\n name: Scalars['String']['output'];\n /** Parent administrative division in the hierarchy. */\n parent?: Maybe<Location>;\n /** Administrative subdivision level. */\n subtype: LocationSubtype;\n};\n\n\n/** Federation reference to a Location owned by another subgraph. */\nexport type LocationAncestorsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\n/** Federation reference to a Location owned by another subgraph. */\nexport type LocationChildrenArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n deep?: InputMaybe<Scalars['Boolean']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n sort?: InputMaybe<Array<LocationSortInput>>;\n subtype?: InputMaybe<LocationSubtypeFilterInput>;\n};\n\n\n/** Federation reference to a Location owned by another subgraph. */\nexport type LocationLocalizedNameArgs = {\n language: LocationLanguage;\n};\n\n/** The identifier scheme a code passed to `resolveByCode` is expressed in. */\nexport type LocationCode =\n /** ISO 3166-1 alpha-2 country code (e.g. \"BE\", \"US\"). */\n | 'COUNTRY_ISO';\n\n/** The connection type for Location. */\nexport type LocationConnection = {\n __typename?: 'LocationConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<LocationEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<Location>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n /** Total number of items across all pages. */\n totalCount: Scalars['Int']['output'];\n};\n\n/** An edge in a connection. */\nexport type LocationEdge = {\n __typename?: 'LocationEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<Location>;\n};\n\n/**\n * Language a division's name can be rendered in — the locales Sortlist serves, and\n * the only ones every tier is guaranteed to carry a name for.\n */\nexport type LocationLanguage =\n /** German name of the division. */\n | 'DE'\n /** English name of the division. */\n | 'EN'\n /** Spanish name of the division. */\n | 'ES'\n /** French name of the division. */\n | 'FR'\n /** Italian name of the division. */\n | 'IT'\n /** Dutch name of the division. */\n | 'NL';\n\n/** Fields available for sorting locations. */\nexport type LocationSortField =\n /**\n * Resident population as shipped by Overture. Null on small or minor divisions,\n * which sort after every populated one regardless of direction.\n */\n | 'POPULATION';\n\n/** Sort configuration for locations. */\nexport type LocationSortInput = {\n /** Direction to sort in. Defaults to descending. */\n direction?: InputMaybe<SortDirection>;\n /** Field to sort by. */\n field: LocationSortField;\n};\n\n/** Administrative subdivision level of a geographic location. */\nexport type LocationSubtype =\n /** Borough or city district between the locality and neighborhood levels. */\n | 'BOROUGH'\n /** Sovereign nation (admin_level 0). */\n | 'COUNTRY'\n /** County, department, or second-level subdivision (admin_level 3-4). */\n | 'COUNTY'\n /** Dependent or overseas territory of a country. */\n | 'DEPENDENCY'\n /** Local administrative unit such as a commune or municipality, between the county and locality levels. */\n | 'LOCALADMIN'\n /** City, town, or municipality (admin_level 5-8). */\n | 'LOCALITY'\n /**\n * Continent or business macro-region grouping whole countries, above the country\n * level. Its member countries are exposed through `children`, not through\n * `parent` on the country: a country belongs to several macro-countries at once.\n */\n | 'MACROCOUNTRY'\n /** Grouping of counties between the region and county levels. */\n | 'MACROCOUNTY'\n /** Large area grouping multiple neighborhoods within a locality. */\n | 'MACROHOOD'\n /** Grouping of regions between the country and region levels. */\n | 'MACROREGION'\n /** Neighborhood, district, or sub-municipal area (admin_level 9+). */\n | 'NEIGHBORHOOD'\n /** State, province, or first-level subdivision (admin_level 1-2). */\n | 'REGION';\n\n/** Filter on location subtype with schema-validated enum values. */\nexport type LocationSubtypeFilterInput = {\n /** Exact match. */\n eq?: InputMaybe<LocationSubtype>;\n /** Match any of these subdivision levels. */\n in?: InputMaybe<Array<LocationSubtype>>;\n /** Exclude exact match. */\n notEq?: InputMaybe<LocationSubtype>;\n /** Exclude any of these values. */\n notIn?: InputMaybe<Array<LocationSubtype>>;\n};\n\nexport type Mutation = {\n __typename?: 'Mutation';\n /**\n * Cancels all of a billing customer's active subscriptions immediately. Used\n * when the owning company is destroyed. Idempotent.\n */\n cancelBillingCustomerSubscriptions?: Maybe<CancelBillingCustomerSubscriptionsPayload>;\n /**\n * Changes a subscription's plan, periodicity, or extra-credits add-on (any\n * combination), effective at the next bill date. Unset arguments preserve the\n * current value. Pass extraCredits: 0 to remove the add-on.\n */\n changeBillingSubscription?: Maybe<ChangeBillingSubscriptionPayload>;\n /** Creates a hosted Stripe Checkout session for a new subscription and returns the URL the frontend redirects to. */\n createBillingCheckoutSession?: Maybe<CreateBillingCheckoutSessionPayload>;\n /** Creates a billing customer + matching Stripe customer. Caller stores the returned id. */\n createBillingCustomer?: Maybe<CreateBillingCustomerPayload>;\n /**\n * Creates an embedded Stripe Checkout session for a new subscription and returns\n * the clientSecret the frontend passes to Stripe.js.\n */\n createBillingEmbeddedCheckoutSession?: Maybe<CreateBillingEmbeddedCheckoutSessionPayload>;\n /**\n * Creates a pending sales offer (a catalog tier at a negotiated discount,\n * optionally with extra seats/credits) for a billing customer and returns it.\n */\n createBillingOffer?: Maybe<CreateBillingOfferPayload>;\n /**\n * Creates an embedded Stripe Checkout session for the customer's pending sales\n * offer and returns the clientSecret the frontend passes to Stripe.js.\n */\n createBillingOfferEmbeddedCheckoutSession?: Maybe<CreateBillingOfferEmbeddedCheckoutSessionPayload>;\n /** Creates a Stripe Customer Portal session and returns the hosted URL the frontend redirects to. */\n createBillingPortalSession?: Maybe<CreateBillingPortalSessionPayload>;\n /**\n * Create a new campaign. Provide either `channel` to seed the tree from a\n * built-in sequence template, or `steps` to seed it with a fully custom tree\n * (mutually exclusive — exactly one is required). Settings fields under\n * `settings` fall back to defaults when omitted; writing-style and\n * pitch-settings sub-fields fall back to the company defaults. The first call\n * for a given company bootstraps the Overloop tenant projection (Company +\n * federated User + AI defaults).\n */\n createOutboundCampaign?: Maybe<CreateOutboundCampaignPayload>;\n /** Create a new enrichment source. */\n createSource?: Maybe<Source>;\n /**\n * Create a Watcher for a given Definition. All providers registered on the\n * Definition are auto-provisioned atomically; the user does not choose providers.\n *\n * There is no mutation to change a Watcher's `watcherInput` or `icp` afterwards,\n * by design. Both determine *which leads the Watcher returns*, and a Watcher is\n * shared: callers with the same definition and input attach their own webhook to\n * one row, so editing it in place would silently repoint every other webhook\n * attached to it. Those fields are also what the Watcher is keyed on, so\n * changing them means becoming a different Watcher.\n *\n * To change what a Watcher returns, call `createWatcher` again with the new\n * input — an existing match is reused, otherwise a new Watcher is provisioned —\n * then `deleteWatcher` the old one if nothing else needs it.\n * `updateWatcherLeadCaps` and `setWebhookActive` remain available: they bound\n * volume and delivery, not which leads qualify.\n */\n createWatcher?: Maybe<CreateWatcherPayload>;\n /**\n * Draws credits for in-app usage. Returns success=false with\n * errorCode=insufficient_credits when the balance can't cover the cost; raises a\n * GraphQL error if the billingCustomerId is unknown.\n */\n debitCredits?: Maybe<DebitCreditsPayload>;\n /**\n * Hard-deletes a billing customer and its Stripe customer. Used to compensate a\n * failed sales-offer creation. Refuses a customer that has subscriptions,\n * invoices, credits, or debits.\n */\n deleteBillingCustomer?: Maybe<DeleteBillingCustomerPayload>;\n /**\n * Soft-delete a campaign. Pauses it if running and disenrolls all of its\n * enrollments asynchronously. Returns the soft-deleted campaign.\n */\n deleteOutboundCampaign?: Maybe<DeleteOutboundCampaignPayload>;\n /** Cancel a Watcher and tear down its external provider resources. Events are preserved. */\n deleteWatcher?: Maybe<DeleteWatcherPayload>;\n deviceAuthorize?: Maybe<DeviceCodeResponse>;\n deviceToken?: Maybe<TokenResponse>;\n /** Disenroll a lead from a campaign. The enrollment is soft-deleted (disenrolledAt is set); it is not destroyed. */\n disenrollLeadFromOutboundCampaign?: Maybe<DisenrollLeadFromOutboundCampaignPayload>;\n /**\n * Synchronously merge a raw source payload into the contact record, applying the source's\n * trust score to resolve field conflicts, then recompute the confidence score.\n * Returns the merged Contact immediately.\n * Use when pushing enrichment data from a registered source.\n * To discover a contact from a known identifier (email, LinkedIn, name) without raw\n * source data, use `searchContact` instead.\n */\n enrichContact?: Maybe<Contact>;\n /**\n * Synchronously store or update an IP-to-company identification record from a source payload.\n * Returns the merged Identification immediately.\n * Use when a source (e.g. Snitcher) has already resolved an IP to a company domain\n * and you want to persist that result. To trigger async resolution from an IP address,\n * use `searchOrganization` with `ip:` instead.\n */\n enrichIdentification?: Maybe<Identification>;\n /**\n * Synchronously merge a raw source payload into the organization record, applying the\n * source's trust score to resolve field conflicts, then recompute the confidence score.\n * Returns the merged Organization immediately.\n * Use when pushing enrichment data from a registered source.\n * To look up an existing organization without writing data, use `organization(domain:)` instead.\n */\n enrichOrganization?: Maybe<Organization>;\n /** Enroll a lead into a campaign. Optionally specify a starting step and schedule. */\n enrollLeadToOutboundCampaign?: Maybe<EnrollLeadToOutboundCampaignPayload>;\n /**\n * Generate (or retrieve the cached result of) a preview of a campaign step\n * message for an Atlas contact. Generation is asynchronous — the returned\n * preview starts with `isGenerating: true`; poll the node until it flips to\n * false to read the final `subject` and `content`. Repeat calls for the same\n * (user, campaign, atlas contact) target hit the cache and return the\n * already-generated preview.\n */\n generateOutboundCampaignMessagePreview?: Maybe<GenerateOutboundCampaignMessagePreviewPayload>;\n /**\n * Notifies the sales team that a customer wants more credits or seats than the\n * in-app slider allows. Posts to #max-track with the customer's current slider\n * state (plan, periodicity, credits / month, seats).\n */\n notifyBillingCapReached?: Maybe<NotifyBillingCapReachedPayload>;\n /** Turn a campaign OFF. Fails with `automation_already_paused` if it is already off. */\n pauseOutboundCampaign?: Maybe<PauseOutboundCampaignPayload>;\n /**\n * Charges the customer's default Stripe payment method for `quantity` credits\n * and returns the granted Invoice + new balance. Use after a default payment\n * method is on file; first-time purchases still go through Checkout.\n */\n purchaseCredits?: Maybe<PurchaseCreditsPayload>;\n refreshToken?: Maybe<TokenResponse>;\n /** Runs a background job inline. Admin-only, intended for E2E test orchestration. */\n runSignalsSynchronousWorker?: Maybe<RunSignalsSynchronousWorkerPayload>;\n /** Run a background job inline. Admin-only, intended for E2E test orchestration. */\n runSynchronousWorker?: Maybe<RunSynchronousWorkerPayload>;\n /**\n * Asynchronously discover an Atlas Contact record.\n * Returns `{status: \"received\"}` immediately. The result arrives via\n * the `contactIdentifyResult(externalId:)` subscription.\n * Provide exactly one lookup mode via `lookup`:\n * `contactId`, `linkedinUrl`, `emailAddress`, or `name`.\n */\n searchContact?: Maybe<SearchContactPayload>;\n /**\n * Asynchronously searches for contacts matching `filter`/`organizationFilter`, the\n * same criteria accepted by the `contacts` query — but in addition to the local\n * database, this also searches Atlas's third-party sources (currently Coresignal)\n * and persists any new matches as Contact records.\n * Returns `{status: \"received\"}` immediately. The result arrives via the\n * `contactSearchResult(externalId:)` subscription, as a paginated connection —\n * further pages beyond the first are fetched via the `contacts` query using the\n * same filter.\n */\n searchContacts?: Maybe<SearchContactsPayload>;\n /**\n * Asynchronously search for an organization by domain or visitor IP.\n * Returns {status: \"received\"} immediately. The matched Organization arrives via\n * the `organizationSearchResult(externalId:)` subscription.\n * Provide exactly one lookup mode via `lookup`: either `domain` or `byIp`.\n */\n searchOrganization?: Maybe<SearchOrganizationPayload>;\n /**\n * Activate or pause delivery for a single webhook on a Watcher, reconciling the\n * upstream source's emitting state. Does not deprovision — the subscription,\n * webhook, and config are preserved.\n */\n setWebhookActive?: Maybe<SetWebhookActivePayload>;\n /**\n * Turn a campaign ON. Validates subscription gates and required structure. Fails\n * with a coded error if the campaign is already started, has no nodes, or the\n * subscription cannot run it.\n */\n startOutboundCampaign?: Maybe<StartOutboundCampaignPayload>;\n /** Manually fire an ingestion run for a Watcher. Rejects pure-webhook strategies. */\n triggerWatcher?: Maybe<TriggerWatcherPayload>;\n /**\n * Updates the seats subscription-item quantity in Stripe (extras above the plan\n * default). Prorated immediately — the next invoice carries the proration line.\n */\n updateBillingSubscriptionSeats?: Maybe<UpdateBillingSubscriptionSeatsPayload>;\n /**\n * Update a campaign's settings. Does not modify its steps. Only fields provided\n * under `settings` are updated — omit a field to leave it unchanged. For status\n * changes, use `startCampaign` / `pauseCampaign`.\n */\n updateOutboundCampaignSettings?: Maybe<UpdateOutboundCampaignSettingsPayload>;\n /**\n * Update the configuration of a single campaign step. Step types whose\n * configuration is not typed yet cannot be updated through this mutation.\n * Tree-structural attributes (position, parent, step type) cannot be changed\n * either — use `updateCampaignSteps` for that.\n */\n updateOutboundCampaignStepConfiguration?: Maybe<UpdateOutboundCampaignStepConfigurationPayload>;\n /**\n * Replace a campaign's sequence tree with the provided steps. The payload\n * describes the desired final tree — every step that must remain on the campaign\n * is included; omitted steps are deleted (and their active enrollments\n * disenrolled). New steps use `clientKey` to be referenced as parents within the\n * same payload; existing steps use their global `id`.\n */\n updateOutboundCampaignSteps?: Maybe<UpdateOutboundCampaignStepsPayload>;\n /** Update an existing enrichment source. */\n updateSource?: Maybe<Source>;\n /**\n * Replace the freshness-first per-period lead caps on a Watcher. The new caps\n * take effect in-house immediately and are propagated to Rodz-backed signals as\n * their per-day limit.\n */\n updateWatcherLeadCaps?: Maybe<UpdateWatcherLeadCapsPayload>;\n /**\n * Asynchronously validate that the supplied name, email, and phone are internally consistent\n * for a contact at the given organization.\n * Returns `{status: \"received\"}` immediately. Per-field coherence flags arrive via\n * the `contactValidationResult(externalId:)` subscription.\n */\n validateContact?: Maybe<ValidateContactPayload>;\n /**\n * Asynchronously validate that the supplied company field values are coherent with\n * Atlas's stored data for the given domain.\n * Returns `{status: \"received\"}` immediately. Per-field coherence flags arrive via\n * the `domainValidationResult(externalId:)` subscription.\n */\n validateDomain?: Maybe<ValidateDomainPayload>;\n};\n\n\nexport type MutationCancelBillingCustomerSubscriptionsArgs = {\n input: CancelBillingCustomerSubscriptionsInput;\n};\n\n\nexport type MutationChangeBillingSubscriptionArgs = {\n input: ChangeBillingSubscriptionInput;\n};\n\n\nexport type MutationCreateBillingCheckoutSessionArgs = {\n input: CreateBillingCheckoutSessionInput;\n};\n\n\nexport type MutationCreateBillingCustomerArgs = {\n input: CreateBillingCustomerInput;\n};\n\n\nexport type MutationCreateBillingEmbeddedCheckoutSessionArgs = {\n input: CreateBillingEmbeddedCheckoutSessionInput;\n};\n\n\nexport type MutationCreateBillingOfferArgs = {\n input: CreateBillingOfferInput;\n};\n\n\nexport type MutationCreateBillingOfferEmbeddedCheckoutSessionArgs = {\n input: CreateBillingOfferEmbeddedCheckoutSessionInput;\n};\n\n\nexport type MutationCreateBillingPortalSessionArgs = {\n input: CreateBillingPortalSessionInput;\n};\n\n\nexport type MutationCreateOutboundCampaignArgs = {\n input: CreateOutboundCampaignInput;\n};\n\n\nexport type MutationCreateSourceArgs = {\n input: CreateSourceInput;\n};\n\n\nexport type MutationCreateWatcherArgs = {\n input: CreateWatcherInput;\n};\n\n\nexport type MutationDebitCreditsArgs = {\n input: DebitCreditsInput;\n};\n\n\nexport type MutationDeleteBillingCustomerArgs = {\n input: DeleteBillingCustomerInput;\n};\n\n\nexport type MutationDeleteOutboundCampaignArgs = {\n input: DeleteOutboundCampaignInput;\n};\n\n\nexport type MutationDeleteWatcherArgs = {\n input: DeleteWatcherInput;\n};\n\n\nexport type MutationDeviceAuthorizeArgs = {\n input: DeviceAuthorizeInput;\n};\n\n\nexport type MutationDeviceTokenArgs = {\n input: DeviceTokenInput;\n};\n\n\nexport type MutationDisenrollLeadFromOutboundCampaignArgs = {\n input: DisenrollLeadFromOutboundCampaignInput;\n};\n\n\nexport type MutationEnrichContactArgs = {\n input: EnrichContactInput;\n};\n\n\nexport type MutationEnrichIdentificationArgs = {\n input: EnrichIdentificationInput;\n};\n\n\nexport type MutationEnrichOrganizationArgs = {\n input: EnrichOrganizationInput;\n};\n\n\nexport type MutationEnrollLeadToOutboundCampaignArgs = {\n input: EnrollLeadToOutboundCampaignInput;\n};\n\n\nexport type MutationGenerateOutboundCampaignMessagePreviewArgs = {\n input: GenerateOutboundCampaignMessagePreviewInput;\n};\n\n\nexport type MutationNotifyBillingCapReachedArgs = {\n input: NotifyBillingCapReachedInput;\n};\n\n\nexport type MutationPauseOutboundCampaignArgs = {\n input: PauseOutboundCampaignInput;\n};\n\n\nexport type MutationPurchaseCreditsArgs = {\n input: PurchaseCreditsInput;\n};\n\n\nexport type MutationRefreshTokenArgs = {\n input: RefreshTokenInput;\n};\n\n\nexport type MutationRunSignalsSynchronousWorkerArgs = {\n input: RunSignalsSynchronousWorkerInput;\n};\n\n\nexport type MutationRunSynchronousWorkerArgs = {\n input: RunSynchronousWorkerInput;\n};\n\n\nexport type MutationSearchContactArgs = {\n input: SearchContactInput;\n};\n\n\nexport type MutationSearchContactsArgs = {\n input: SearchContactsInput;\n};\n\n\nexport type MutationSearchOrganizationArgs = {\n input: SearchOrganizationInput;\n};\n\n\nexport type MutationSetWebhookActiveArgs = {\n input: SetWebhookActiveInput;\n};\n\n\nexport type MutationStartOutboundCampaignArgs = {\n input: StartOutboundCampaignInput;\n};\n\n\nexport type MutationTriggerWatcherArgs = {\n input: TriggerWatcherInput;\n};\n\n\nexport type MutationUpdateBillingSubscriptionSeatsArgs = {\n input: UpdateBillingSubscriptionSeatsInput;\n};\n\n\nexport type MutationUpdateOutboundCampaignSettingsArgs = {\n input: UpdateOutboundCampaignSettingsInput;\n};\n\n\nexport type MutationUpdateOutboundCampaignStepConfigurationArgs = {\n input: UpdateOutboundCampaignStepConfigurationInput;\n};\n\n\nexport type MutationUpdateOutboundCampaignStepsArgs = {\n input: UpdateOutboundCampaignStepsInput;\n};\n\n\nexport type MutationUpdateSourceArgs = {\n input: UpdateSourceInput;\n};\n\n\nexport type MutationUpdateWatcherLeadCapsArgs = {\n input: UpdateWatcherLeadCapsInput;\n};\n\n\nexport type MutationValidateContactArgs = {\n input: ValidateContactInput;\n};\n\n\nexport type MutationValidateDomainArgs = {\n input: ValidateDomainInput;\n};\n\n/** An object with an ID. */\nexport type Node = {\n /** ID of the object. */\n id: Scalars['ID']['output'];\n};\n\n/** Autogenerated input type of NotifyBillingCapReached */\nexport type NotifyBillingCapReachedInput = {\n /** Billing customer UUID. Auth-gates the call so only the customer's own workspace can fire the alert. */\n billingCustomerId: Scalars['ID']['input'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Display name of the company asking for more. */\n companyName: Scalars['String']['input'];\n /** Credits / month the customer's credits slider is set to. */\n creditsPerMonth: Scalars['Int']['input'];\n /** Periodicity the customer is currently looking at on the slider. */\n periodicity: BillingPeriodicity;\n /** Plan tier the customer is currently looking at on the slider. */\n plan: BillingPlanName;\n /** Total user seats the customer's seats slider is set to. */\n seats: Scalars['Int']['input'];\n};\n\n/** Autogenerated return type of NotifyBillingCapReached. */\nexport type NotifyBillingCapReachedPayload = Node & {\n __typename?: 'NotifyBillingCapReachedPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** Always true once the Slack job is enqueued. */\n ok: Scalars['Boolean']['output'];\n};\n\n/** A sales-negotiated offer (a catalog tier at a discount) pinned to a customer. */\nexport type Offer = Node & {\n __typename?: 'Offer';\n /** When the offer can no longer be accepted, or null if it never expires. */\n expiresAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /**\n * Recurring fee per period in EUR after the negotiated discount, for display.\n * Excludes extra seats / credits, which bill as separate lines.\n */\n feeEur: Scalars['Float']['output'];\n /** Offer UUID. */\n id: Scalars['ID']['output'];\n /** Credits granted each paid period: the tier's allowance plus any negotiated extra credits. */\n includedCredits: Scalars['Float']['output'];\n /** Total seats: the tier's included seats plus any negotiated extra seats. */\n includedSeats: Scalars['Int']['output'];\n /** Human label for the deal, e.g. \"Acme Annual 2026\". */\n name: Scalars['String']['output'];\n /** Billing periodicity of the offered plan. One of: MONTHLY, ANNUAL. */\n periodicity: BillingPeriodicity;\n /** Lifecycle status. One of: pending, accepted, expired, canceled. */\n status: Scalars['String']['output'];\n};\n\n/** A company or organization identified and enriched from multiple data sources. */\nexport type Organization = Node & {\n __typename?: 'Organization';\n /** Annual revenue range in USD (e.g. [1000000, 5000000]). */\n annualRevenue?: Maybe<Scalars['Range']['output']>;\n /** Employee count range (e.g. [10, 50]). */\n companySize?: Maybe<Scalars['Range']['output']>;\n /** Confidence score (0.0–1.0) from source quality, freshness, and diversity. */\n confidenceScore?: Maybe<Scalars['Float']['output']>;\n /** General contact email address. */\n contactEmail?: Maybe<Scalars['String']['output']>;\n /** Known contacts at this organization. */\n contacts: ContactConnection;\n /** ISO 3166-1 alpha-2 country code of the primary location. */\n countryCode?: Maybe<Scalars['String']['output']>;\n /** When the organization record was first created. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n /** Short company description or tagline. */\n description?: Maybe<Scalars['String']['output']>;\n /** Primary web domain (unique identifier for deduplication). */\n domain: Scalars['String']['output'];\n /** When the domain was last verified as reachable. */\n domainReachableAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Year the company was founded. */\n foundedYear?: Maybe<Scalars['Int']['output']>;\n id: Scalars['ID']['output'];\n /** Primary industry classification. */\n industry?: Maybe<Scalars['String']['output']>;\n /** Whether the LinkedIn page is claimed by the organization. */\n linkedinClaimed?: Maybe<Scalars['Boolean']['output']>;\n /** LinkedIn company page URL. */\n linkedinUrl?: Maybe<Scalars['String']['output']>;\n /** URL to the organization's logo image. */\n logoUrl?: Maybe<Scalars['String']['output']>;\n /** Legal or trade name. */\n name?: Maybe<Scalars['String']['output']>;\n /**\n * Physical office locations.\n * @deprecated Use organization_addresses instead.\n */\n offices: Array<OrganizationAddress>;\n /** Physical addresses. */\n organizationAddresses: OrganizationAddressConnection;\n /** Main phone number. */\n phone?: Maybe<Scalars['String']['output']>;\n /** When the organization record was last modified. */\n updatedAt: Scalars['ISO8601DateTime']['output'];\n /** Unique identifier (UUID) for this organization. */\n uuid: Scalars['String']['output'];\n /** Company website URL. */\n website?: Maybe<Scalars['String']['output']>;\n};\n\n\n/** A company or organization identified and enriched from multiple data sources. */\nexport type OrganizationContactsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n filter?: InputMaybe<ContactFilterInput>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n sort?: InputMaybe<Array<ContactSortInput>>;\n};\n\n\n/** A company or organization identified and enriched from multiple data sources. */\nexport type OrganizationOrganizationAddressesArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n isHeadquarters?: InputMaybe<Scalars['Boolean']['input']>;\n kind?: InputMaybe<OrganizationAddressKind>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** A physical address of an organization. */\nexport type OrganizationAddress = Node & {\n __typename?: 'OrganizationAddress';\n /** City where the office is located. */\n city?: Maybe<Scalars['String']['output']>;\n /** Geographic coordinates of the address as a GeoJSON Point. */\n coordinates?: Maybe<Coordinate>;\n /** ISO 3166-1 alpha-2 country code. */\n countryCode?: Maybe<Scalars['String']['output']>;\n /** Human-readable country name derived from country_code. */\n countryName?: Maybe<Scalars['String']['output']>;\n /** When the address was created. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n id: Scalars['ID']['output'];\n /**\n * Whether this is the organization's headquarters.\n * @deprecated Use `kind == HEADQUARTERS` instead.\n */\n isHeadquarters: Scalars['Boolean']['output'];\n /** Classification of this address: headquarters, office, or unattended. */\n kind: OrganizationAddressKind;\n /** Mercator location divisions for this office address. Empty until the background enrichment job runs. */\n locations: LocationConnection;\n /** Postal or ZIP code. */\n postalCode?: Maybe<Scalars['String']['output']>;\n /** State or province. */\n state?: Maybe<Scalars['String']['output']>;\n /** Street address. */\n street?: Maybe<Scalars['String']['output']>;\n /** When the address was last updated. */\n updatedAt: Scalars['ISO8601DateTime']['output'];\n};\n\n\n/** A physical address of an organization. */\nexport type OrganizationAddressLocationsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** The connection type for OrganizationAddress. */\nexport type OrganizationAddressConnection = {\n __typename?: 'OrganizationAddressConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<OrganizationAddressEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<OrganizationAddress>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n /** Total number of items across all pages. */\n totalCount: Scalars['Int']['output'];\n};\n\n/** An edge in a connection. */\nexport type OrganizationAddressEdge = Node & {\n __typename?: 'OrganizationAddressEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n id: Scalars['ID']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<OrganizationAddress>;\n};\n\n/** Classification of an organization address. */\nexport type OrganizationAddressKind =\n /** The organization's elected headquarters. */\n | 'HEADQUARTERS'\n /** A staffed office or branch location. */\n | 'OFFICE'\n /** A location with no on-site staff (e.g. an ATM or EV charging station). */\n | 'UNATTENDED';\n\n/** Parameters for an organization search by visitor IP address. */\nexport type OrganizationByIpInput = {\n /** Visitor's ISO 3166-1 alpha-2 country code — boosts matching accuracy. */\n countryCode?: InputMaybe<Scalars['String']['input']>;\n /** The visitor's IPv4 or IPv6 address to identify. */\n ip: Scalars['String']['input'];\n};\n\n/** The connection type for Organization. */\nexport type OrganizationConnection = {\n __typename?: 'OrganizationConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<OrganizationEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<Organization>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n /** Total number of items across all pages. */\n totalCount: Scalars['Int']['output'];\n};\n\n/** An edge in a connection. */\nexport type OrganizationEdge = Node & {\n __typename?: 'OrganizationEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n id: Scalars['ID']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<Organization>;\n};\n\n/** Autogenerated return type of OrganizationEnrichmentResult. */\nexport type OrganizationEnrichmentResultPayload = {\n __typename?: 'OrganizationEnrichmentResultPayload';\n externalId: Scalars['ID']['output'];\n organization?: Maybe<Organization>;\n};\n\n/** Filter criteria for organizations. */\nexport type OrganizationFilterInput = {\n /**\n * Filter on the organization's employee-count range. Use `overlaps` with a\n * [min, max] range (a one-element [min] array means open-ended) — e.g.\n * { overlaps: [0, 100] } for \"fewer than 100 employees\", { overlaps: [1000] }\n * for \"1000+\". Callers targeting several buckets pass a single merged range.\n */\n companySize?: InputMaybe<RangeFilterInput>;\n /** Filter by confidence score (0.0–1.0). */\n confidenceScore?: InputMaybe<FloatFilterInput>;\n /**\n * Filter by ISO 3166-1 alpha-2 country code.\n * @deprecated Use divisionIds for geographic filtering. divisionIds supports cities, regions, and multi-country groups (DACH, BENELUX) via Mercator.\n */\n countryCode?: InputMaybe<StringFilterInput>;\n /**\n * Description embedding filters. Each entry matches organizations whose\n * description is semantically close to the query string. Use a rich phrase\n * rather than a single keyword — e.g. \"B2B SaaS platform for sales teams\"\n * — for a strong centroid. Combine multiple concepts in one string for\n * OR-like semantics via vector averaging.\n * Calibrated lteq for inclusion: 0.55 (text-embedding-3-small).\n * Threshold validated by the embedding_calibration test suite.\n */\n description?: InputMaybe<Array<EmbeddingFilterInput>>;\n /**\n * Filter organizations that have at least one address belonging to any of the\n * given Mercator location division IDs. `eq`/`in` match organizations with at\n * least one overlapping division; `not_eq`/`not_in` exclude them. This is an\n * array-overlap filter against Mercator-encoded division IDs, not a scalar Atlas ID filter.\n */\n divisionIds?: InputMaybe<IdFilterInput>;\n /**\n * Filter on the organization's domain. Values are matched against a normalized\n * form — host downcased, a single leading \"www.\" dropped — so `eq:\n * \"https://www.Acme.com/about\"` matches a stored \"acme.com\". Matching is exact\n * after that normalization, not a substring or suffix search, and no further\n * subdomain stripping happens, so \"barla.synlab.fr\" and \"synlab.fr\" stay\n * distinct organizations. `domain` is unique, so a positive `eq` matches at\n * most one record. A value that cannot yield a host (a bare company name, an IP\n * literal, punctuation) matches no organization rather than silently dropping\n * the constraint — so passing a mixed name/domain list here returns only its\n * domain-shaped entries instead of the whole table. Prefer this for a read-only\n * \"which of these organizations do we already have?\" lookup over a list — it\n * normalizes and batches through `in`. `organization(domain:)` is the\n * single-record equivalent but matches the column raw, so it misses any URL\n * form; `searchOrganization(input: { domain: ... })` is the enriching\n * counterpart and will call paid providers on a miss.\n */\n domain?: InputMaybe<StringFilterInput>;\n /** Filter by organization global id. */\n id?: InputMaybe<IdFilterInput>;\n /**\n * Industry embedding filters. Each entry matches organizations whose\n * industry is semantically close to the query string. Combine related\n * sectors in one string (e.g. \"Marketing Agency, Digital Agency, PR Agency\")\n * for OR-like semantics via vector averaging. Multilingual queries work:\n * mixing languages (e.g. \"Marketing Agency, Agence Marketing, Marketingagentur\")\n * widens recall.\n * Calibrated lteq for inclusion: 0.60 (text-embedding-3-small).\n * Threshold validated by the embedding_calibration test suite.\n */\n industry?: InputMaybe<Array<EmbeddingFilterInput>>;\n /**\n * Filter on the organization's LinkedIn company page. Values are matched on\n * the company vanity slug, extracted from both sides of the comparison, so\n * `eq: \"http://fr.linkedin.com/company/acme/?trk=x\"` matches a stored\n * \"https://www.linkedin.com/company/acme\". Slug matching is what makes this\n * usable: unlike `domain` and `name`, the stored URL is never normalized on\n * write, so any URL form may be on file. A slug is globally unique on\n * LinkedIn, so a positive `eq` matches at most one organization. Only the\n * first path segment identifies the company, so a sub-page link resolves the\n * company itself — `eq: \".../company/acme/about/\"` matches a stored\n * \".../company/acme\", and a stored sub-page URL is matched by the plain\n * company URL. Percent-encoded and literal non-ASCII slugs are the same page\n * (\"/company/ko%C3%A7-holding\" matches a stored \"/company/koç-holding\" and\n * the reverse). The slug is **case-sensitive** — scheme, host, sub-pages,\n * percent-encoding and trailing punctuation are normalized away, but\n * \"/company/Acme\" and \"/company/acme\" are two different pages, so pass the\n * slug exactly as LinkedIn spells it. A value yielding no company\n * slug (a `/in/` person profile, a bare slug, a school or showcase page, a\n * non-LinkedIn URL) matches no organization rather than silently dropping the\n * constraint. `presence: true` is a check on the raw column — it returns\n * organizations that have any LinkedIn URL on file, even one this filter's\n * `eq` could not parse — and applies independently of `valid`, so combine\n * `valid: false` with it to reach organizations reachable on LinkedIn but\n * below the quality floor. Note that `notEq`/`notIn` also exclude\n * organizations with no LinkedIn URL at all, matching how every other\n * negative string operator in this schema treats NULL.\n */\n linkedin?: InputMaybe<StringFilterInput>;\n /**\n * Filter on the organization's name. Values are matched against a\n * normalized form — transliterated, downcased, punctuation-stripped and\n * with trailing legal-form tokens dropped — so `eq: \"Acme\"` matches a\n * stored \"ACME, Inc.\" and `eq: \"Sortlist NV/SA\"` matches a stored\n * \"Sortlist\". Matching stays exact *after* that normalization: it is not\n * a substring or fuzzy search, so \"Acme\" does not match \"Acme Widgets\".\n * A name is not unique in Atlas (country subsidiaries, \"<brand> SA\" /\n * \"<brand> NV\" pairs), so every match is returned, ordered by the\n * connection's default confidence_score DESC — use\n * `searchOrganization(input: { domain: ... })` instead when the caller has\n * a domain and needs exactly one record. A value that normalizes to\n * nothing (punctuation only) matches no organization rather than silently\n * dropping the constraint. `presence: true` returns only organizations\n * that have a name, re-expressing `valid`'s name floor on its own, so\n * callers passing `valid: false` can keep it without the confidence and\n * domain-reachability floors.\n */\n name?: InputMaybe<StringFilterInput>;\n /** Return only complete records. */\n valid?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\n/** OneOf input for searchOrganization — supply exactly one lookup mode. */\nexport type OrganizationLookupInput = {\n /** Look up by visitor IP address. */\n byIp?: InputMaybe<OrganizationByIpInput>;\n /** Look up by company's primary web domain (no scheme, no trailing slash). */\n domain?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated return type of OrganizationSearchResult. */\nexport type OrganizationSearchResultPayload = {\n __typename?: 'OrganizationSearchResultPayload';\n externalId: Scalars['ID']['output'];\n organization?: Maybe<Organization>;\n};\n\n/** Fields available for sorting organizations. */\nexport type OrganizationSortField =\n /** Sort by merged confidence score, highest first by default. */\n | 'CONFIDENCE_SCORE'\n /** Sort by creation timestamp. */\n | 'CREATED_AT'\n /** Cosine distance from the description embedding. Requires query. */\n | 'DESCRIPTION_DISTANCE'\n /** Cosine distance from the industry embedding. Requires query. */\n | 'INDUSTRY_DISTANCE'\n /** Sort alphabetically by legal or trade name. */\n | 'NAME';\n\n/** Sort configuration for organizations. */\nexport type OrganizationSortInput = {\n direction?: InputMaybe<SortDirection>;\n field: OrganizationSortField;\n /** Required when field is DESCRIPTION_DISTANCE or INDUSTRY_DISTANCE. Text to embed for distance ordering. */\n query?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Federation reference to a OutboundCampaign owned by another subgraph. */\nexport type OutboundCampaign = Node & {\n __typename?: 'OutboundCampaign';\n /** Auto-send follow-up messages without manual review. */\n automaticallySendFollowUps: Scalars['Boolean']['output'];\n /** Auto-send first-touch messages without manual review. */\n automaticallySendMessages: Scalars['Boolean']['output'];\n /** When the campaign was created. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n /** The user who created the campaign. */\n creator?: Maybe<User>;\n /** Latest minute of the day (0-1439) messages may be sent. */\n endSendingMinutes: Scalars['Int']['output'];\n /** GlobalID-encoded OutboundCampaign id. */\n id: Scalars['ID']['output'];\n /** Name of the campaign. */\n name: Scalars['String']['output'];\n /** Pitch/product context fed to AI when generating messages for this campaign. */\n pitchSettings: OutboundCampaignPitchSettings;\n /** Aggregated stats for the campaign over the given date window. */\n report: OutboundCampaignReport;\n /** The user whose mailbox/identity sends this campaign. Null when unassigned. */\n sender?: Maybe<User>;\n /** Days of the week messages may be sent. */\n sendingDays: Array<WeekdayEnum>;\n /** Earliest minute of the day (0-1439) messages may be sent. */\n startSendingMinutes: Scalars['Int']['output'];\n /** Current status: on or off. */\n status: Scalars['String']['output'];\n /** All steps in the campaign sequence. Use parentStepId and position to reconstruct the tree. */\n steps: OutboundCampaignStepConnection;\n /** IANA timezone for the sending schedule. */\n timezone?: Maybe<Scalars['String']['output']>;\n /** When the campaign was last updated. */\n updatedAt: Scalars['ISO8601DateTime']['output'];\n /** Writing style settings applied when generating messages for this campaign. */\n writingStyle: OutboundCampaignWritingStyle;\n};\n\n\n/** Federation reference to a OutboundCampaign owned by another subgraph. */\nexport type OutboundCampaignReportArgs = {\n endDate: Scalars['ISO8601Date']['input'];\n startDate: Scalars['ISO8601Date']['input'];\n};\n\n\n/** Federation reference to a OutboundCampaign owned by another subgraph. */\nexport type OutboundCampaignStepsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** The connection type for OutboundCampaign. */\nexport type OutboundCampaignConnection = {\n __typename?: 'OutboundCampaignConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<OutboundCampaignEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<OutboundCampaign>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n};\n\n/** An edge in a connection. */\nexport type OutboundCampaignEdge = {\n __typename?: 'OutboundCampaignEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<OutboundCampaign>;\n};\n\n/** A prospect enrollment in a campaign sequence. */\nexport type OutboundCampaignEnrollment = Node & {\n __typename?: 'OutboundCampaignEnrollment';\n /** When the enrollment was created. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n /** The campaign step this enrollment is currently on. */\n currentStep?: Maybe<OutboundCampaignStep>;\n /** When the prospect was disenrolled. Null means still active. */\n disenrolledAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** The user who disenrolled the prospect. */\n disenrolledBy?: Maybe<User>;\n /** Why the prospect was disenrolled (e.g. \"leaf\", \"manual\"). */\n disenrollmentReason?: Maybe<Scalars['String']['output']>;\n /** Additional detail about the disenrollment reason. */\n disenrollmentReasonDetails?: Maybe<Scalars['String']['output']>;\n /** The user who enrolled the prospect. */\n enrolledBy?: Maybe<User>;\n /** How the prospect was enrolled (e.g. \"existing_prospects\"). */\n enrollmentSource: Scalars['String']['output'];\n /** Globally unique identifier of the enrollment. */\n id: Scalars['ID']['output'];\n /** The campaign this enrollment belongs to. */\n outboundCampaign: OutboundCampaign;\n /** Scheduled start time of the enrollment. */\n startAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Whether the enrollment is currently throttled. */\n throttled?: Maybe<Scalars['Boolean']['output']>;\n /** When the enrollment was last updated. */\n updatedAt: Scalars['ISO8601DateTime']['output'];\n};\n\n/** The connection type for OutboundCampaignEnrollment. */\nexport type OutboundCampaignEnrollmentConnection = {\n __typename?: 'OutboundCampaignEnrollmentConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<OutboundCampaignEnrollmentEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<OutboundCampaignEnrollment>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n};\n\n/** An edge in a connection. */\nexport type OutboundCampaignEnrollmentEdge = {\n __typename?: 'OutboundCampaignEnrollmentEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<OutboundCampaignEnrollment>;\n};\n\n/** Filter for enrollment status based on whether the prospect has been disenrolled. */\nexport type OutboundCampaignEnrollmentStatus =\n /** Currently enrolled (not disenrolled). */\n | 'ACTIVE'\n /** No longer enrolled (has a disenrollment date). */\n | 'DISENROLLED';\n\n/**\n * A preview of a single step message within a campaign preview. Generation happens\n * asynchronously — poll until `isGenerating` is false to read the final `subject` and `content`.\n */\nexport type OutboundCampaignMessagePreview = Node & {\n __typename?: 'OutboundCampaignMessagePreview';\n /** Generated message body. Null while generation is in progress. */\n content?: Maybe<Scalars['String']['output']>;\n /** When the message preview was created. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n /** When the current content was generated. Null while generation is in progress. */\n generatedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Globally unique identifier of the message preview. */\n id: Scalars['ID']['output'];\n /** True while generation is in flight. Clients should poll until false. */\n isGenerating: Scalars['Boolean']['output'];\n /** The kind of message: \"email\", \"linkedin\", or \"linkedin_connection_request\". */\n messageType: Scalars['String']['output'];\n /** The parent campaign preview. */\n outboundCampaignPreview: OutboundCampaignPreview;\n /** Set when the preview was invalidated and needs to be regenerated. */\n outdatedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Zero-based position of this message along the branch path. */\n position: Scalars['Int']['output'];\n /** Generated email subject (or null for LinkedIn messages). Null while generation is in progress. */\n subject?: Maybe<Scalars['String']['output']>;\n /** When the message preview was last updated. */\n updatedAt: Scalars['ISO8601DateTime']['output'];\n};\n\n/** Pitch settings for a campaign — the product/offer context fed to AI when generating messages. */\nexport type OutboundCampaignPitchSettings = {\n __typename?: 'OutboundCampaignPitchSettings';\n /** Benefits the product delivers. */\n benefits?: Maybe<Scalars['String']['output']>;\n /** Specific intent or goal of this campaign. */\n campaignIntent?: Maybe<Scalars['String']['output']>;\n /** Customer pain points the product addresses. */\n painPoints?: Maybe<Scalars['String']['output']>;\n /** Proof points or social proof backing the pitch. */\n proofPoints?: Maybe<Scalars['String']['output']>;\n /** Description of what is being sold. */\n sellingDescription?: Maybe<Scalars['String']['output']>;\n /** Website URL used as fallback/reference in generated messages. */\n websiteUrl?: Maybe<Scalars['String']['output']>;\n};\n\n/** Input fields for a campaign's pitch settings — product/offer context fed to AI. */\nexport type OutboundCampaignPitchSettingsInput = {\n /** Benefits the product delivers. */\n benefits?: InputMaybe<Scalars['String']['input']>;\n /** Specific intent or goal of this campaign. */\n campaignIntent?: InputMaybe<Scalars['String']['input']>;\n /** Customer pain points the product addresses. */\n painPoints?: InputMaybe<Scalars['String']['input']>;\n /** Proof points or social proof backing the pitch. */\n proofPoints?: InputMaybe<Scalars['String']['input']>;\n /** Description of what is being sold. */\n sellingDescription?: InputMaybe<Scalars['String']['input']>;\n /** Website URL used as fallback/reference in generated messages. */\n websiteUrl?: InputMaybe<Scalars['String']['input']>;\n};\n\n/**\n * A preview of a campaign, scoped to a given user and Atlas contact. Holds the\n * generated preview of each message step in a branch path of the campaign.\n */\nexport type OutboundCampaignPreview = Node & {\n __typename?: 'OutboundCampaignPreview';\n /** Atlas contact ID the preview is built against. */\n atlasContactId?: Maybe<Scalars['String']['output']>;\n /** When the preview was created. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n /** Globally unique identifier of the campaign preview. */\n id: Scalars['ID']['output'];\n /** Message previews along the current branch path, ordered by position. */\n messagePreviews: Array<OutboundCampaignMessagePreview>;\n /** The campaign this preview belongs to. */\n outboundCampaign: OutboundCampaign;\n /** When the preview was last updated. */\n updatedAt: Scalars['ISO8601DateTime']['output'];\n};\n\n/** Aggregated stats for a campaign over a given date window. */\nexport type OutboundCampaignReport = {\n __typename?: 'OutboundCampaignReport';\n /** Email-channel counts and rates. */\n email: OutboundCampaignReportEmail;\n /** Enrollment counts grouped by source. */\n enrollmentSources: OutboundCampaignReportEnrollmentSources;\n /** Enrollment totals by status. */\n enrollments: OutboundCampaignReportEnrollments;\n /** When the underlying cached views were last refreshed. */\n lastUpdatedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** LinkedIn-channel counts. */\n linkedin: OutboundCampaignReportLinkedin;\n /** LinkedIn reply distribution by sentiment. */\n linkedinReplySentiment: OutboundCampaignReportReplySentiment;\n /** Prospect totals for the campaign. */\n prospects: OutboundCampaignReportProspects;\n /** Email reply distribution by sentiment. */\n replySentiment: OutboundCampaignReportReplySentiment;\n};\n\n/** Email-channel counts and engagement rates for the campaign report window. */\nexport type OutboundCampaignReportEmail = {\n __typename?: 'OutboundCampaignReportEmail';\n /** Bounced / contacted, as a percentage rounded to 2 decimals. */\n bounceRate: Scalars['Float']['output'];\n /** Distinct prospects whose email bounced. */\n bounced: Scalars['Int']['output'];\n /** Clicked / contacted, as a percentage rounded to 2 decimals. */\n clickRate: Scalars['Float']['output'];\n /** Distinct prospects who clicked a tracked link. */\n clicked: Scalars['Int']['output'];\n /** Distinct prospects contacted by email in the window. */\n contacted: Scalars['Int']['output'];\n /** Opened / contacted, as a percentage rounded to 2 decimals. */\n openRate: Scalars['Float']['output'];\n /** Distinct prospects who opened an email. */\n opened: Scalars['Int']['output'];\n /** Distinct prospects who opted out. */\n optedOut: Scalars['Int']['output'];\n /** Distinct prospects who replied (LinkedIn replies merged when requested). */\n replied: Scalars['Int']['output'];\n /** Replied / contacted, as a percentage rounded to 2 decimals. */\n replyRate: Scalars['Float']['output'];\n /** Total emails sent (all-time, not date-windowed). */\n sent: Scalars['Int']['output'];\n /** Distinct prospects who visited a tracked landing page. */\n visited: Scalars['Int']['output'];\n};\n\n/** Counts of enrollments grouped by their source. */\nexport type OutboundCampaignReportEnrollmentSources = {\n __typename?: 'OutboundCampaignReportEnrollmentSources';\n /** Enrollments imported from a CSV upload. */\n csvImport: Scalars['Int']['output'];\n /** Enrollments added by an event-based trigger. */\n eventTrigger: Scalars['Int']['output'];\n /** Enrollments started from existing prospects. */\n existingProspects: Scalars['Int']['output'];\n /** Enrollments added via the LinkedIn Chrome extension. */\n linkedinExtension: Scalars['Int']['output'];\n /** Enrollments sourced from the Overloop prospect database. */\n overloopDatabase: Scalars['Int']['output'];\n};\n\n/** Counts of prospect enrollments in the campaign by status. */\nexport type OutboundCampaignReportEnrollments = {\n __typename?: 'OutboundCampaignReportEnrollments';\n /** Currently active enrollments. */\n active: Scalars['Int']['output'];\n /** Enrollments that have completed the sequence. */\n completed: Scalars['Int']['output'];\n /** Enrollments that were disenrolled. */\n disenrolled: Scalars['Int']['output'];\n /** Enrollments stuck in an errored step. */\n errored: Scalars['Int']['output'];\n /** Enrollments that exited the sequence early. */\n exited: Scalars['Int']['output'];\n /** Enrollments waiting on a manual review step. */\n inReview: Scalars['Int']['output'];\n /** Enrollments scheduled for a future send. */\n scheduled: Scalars['Int']['output'];\n /** Active enrollments waiting on a non-review step. */\n waiting: Scalars['Int']['output'];\n};\n\n/** LinkedIn-channel counts for the campaign report window. */\nexport type OutboundCampaignReportLinkedin = {\n __typename?: 'OutboundCampaignReportLinkedin';\n /** Distinct prospects with at least one LinkedIn action. */\n actionsPerformed: Scalars['Int']['output'];\n /** Distinct prospects who received a LinkedIn invite. */\n invited: Scalars['Int']['output'];\n /** Distinct prospects who received a LinkedIn message. */\n messaged: Scalars['Int']['output'];\n /** Distinct prospects who replied on LinkedIn. */\n replied: Scalars['Int']['output'];\n /** Distinct prospects whose LinkedIn profile was visited. */\n visited: Scalars['Int']['output'];\n};\n\n/** Prospect-level totals for a campaign report. */\nexport type OutboundCampaignReportProspects = {\n __typename?: 'OutboundCampaignReportProspects';\n /** Prospects currently active in the campaign. */\n active: Scalars['Int']['output'];\n /** Distinct prospects that received at least one email. */\n contacted: Scalars['Int']['output'];\n /** Total prospects that have ever been in the campaign. */\n total: Scalars['Int']['output'];\n};\n\n/** Distribution of replies by detected sentiment. */\nexport type OutboundCampaignReportReplySentiment = {\n __typename?: 'OutboundCampaignReportReplySentiment';\n /** Distinct prospects who replied negatively. */\n negative: Scalars['Int']['output'];\n /** Distinct prospects who replied neutrally. */\n neutral: Scalars['Int']['output'];\n /** Distinct prospects who replied positively. */\n positive: Scalars['Int']['output'];\n};\n\n/**\n * Campaign-level settings shared by `createCampaign` and `updateCampaignSettings`.\n * On create, omitted fields fall back to defaults (and writingStyle/pitchSettings\n * fall back to the company defaults). On update, omitted fields preserve the\n * campaign's current value (and writingStyle/pitchSettings merge field-by-field).\n */\nexport type OutboundCampaignSettingsInput = {\n /** Auto-send follow-up messages without manual review. */\n automaticallySendFollowUps?: InputMaybe<Scalars['Boolean']['input']>;\n /** Auto-send first-touch messages without manual review. */\n automaticallySendMessages?: InputMaybe<Scalars['Boolean']['input']>;\n /** Latest minute of the day (0-1439) messages may be sent. */\n endSendingMinutes?: InputMaybe<Scalars['Int']['input']>;\n /** Name of the campaign. */\n name?: InputMaybe<Scalars['String']['input']>;\n /** Pitch settings overrides. */\n pitchSettings?: InputMaybe<OutboundCampaignPitchSettingsInput>;\n /** Days of the week messages may be sent. Replaces the current set on update. */\n sendingDays?: InputMaybe<Array<WeekdayEnum>>;\n /** Earliest minute of the day (0-1439) messages may be sent. */\n startSendingMinutes?: InputMaybe<Scalars['Int']['input']>;\n /** IANA timezone for the sending schedule. */\n timezone?: InputMaybe<Scalars['String']['input']>;\n /** Writing style overrides. */\n writingStyle?: InputMaybe<OutboundCampaignWritingStyleInput>;\n};\n\n/** Campaign status. */\nexport type OutboundCampaignStatus =\n /** Campaign is paused. */\n | 'OFF'\n /** Campaign is active and sending. */\n | 'ON';\n\n/** A single step (node) in a campaign sequence. */\nexport type OutboundCampaignStep = Node & {\n __typename?: 'OutboundCampaignStep';\n /**\n * Mutable configuration of this step (A/B status, typed config,\n * skip-on-failure). Mirrors the shape accepted by the configuration mutations.\n */\n configuration: OutboundCampaignStepConfiguration;\n /** When the step was created. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n /** Globally unique identifier of the step. */\n id: Scalars['ID']['output'];\n /** Global ID of the parent step. Null for root steps. Use with position to reconstruct the campaign tree. */\n parentStepId?: Maybe<Scalars['ID']['output']>;\n /** Branch position (0 = default/left, 1 = right). Relevant for condition steps with multiple children. */\n position: Scalars['Int']['output'];\n /** The kind of action this step performs. */\n stepType: OutboundCampaignStepKind;\n /** When the step was last updated. */\n updatedAt: Scalars['ISO8601DateTime']['output'];\n};\n\n/**\n * Configuration of a single campaign step. Excludes tree-structural attributes\n * (position, parent, step type) which are exposed at the step level.\n */\nexport type OutboundCampaignStepConfiguration = {\n __typename?: 'OutboundCampaignStepConfiguration';\n /** True when this step is running an A/B test. When true, `single` is null and the live data is in `versionA` / `versionB`. */\n hasAbTestVersions: Scalars['Boolean']['output'];\n /**\n * Typed configuration for this step when not running an A/B test. Null when\n * `hasAbTestVersions` is true, when the step type has no config\n * (LINKEDIN_VISIT_PROFILE, LINKEDIN_CHECK_CONNECTION), or for step types whose\n * configuration is not typed yet.\n */\n single?: Maybe<TypedStepConfig>;\n /** Whether to skip to the next step on failure instead of stopping. */\n skipOnFailure?: Maybe<Scalars['Boolean']['output']>;\n /** Configuration for A/B test version A. Null unless `hasAbTestVersions` is true. */\n versionA?: Maybe<TypedStepConfig>;\n /** Configuration for A/B test version B. Null unless `hasAbTestVersions` is true. */\n versionB?: Maybe<TypedStepConfig>;\n};\n\n/**\n * Mutable configuration of a single campaign step. Excludes tree-structural\n * attributes (position, parent, step type), which can only be changed via the bulk\n * tree-update mutation.\n */\nexport type OutboundCampaignStepConfigurationInput = {\n /**\n * True when this step runs an A/B test. When true, `versionA` and `versionB`\n * carry the live data and `single` must be null. When false, `single` is\n * required (unless the step type has no config).\n */\n hasAbTestVersions: Scalars['Boolean']['input'];\n /**\n * Step configuration when not running an A/B test. Required when\n * `hasAbTestVersions` is false and the step type has a config. Optional when\n * updating an existing step — when null, the existing configuration is preserved\n * verbatim. Must be null when `hasAbTestVersions` is true.\n */\n single?: InputMaybe<TypedStepConfigInput>;\n /** Whether to skip to the next step on failure instead of stopping. */\n skipOnFailure?: InputMaybe<Scalars['Boolean']['input']>;\n /**\n * Configuration for A/B test version A. Required when `hasAbTestVersions` is\n * true on a newly created step. Optional when updating an existing A/B-tested\n * step — when both `versionA` and `versionB` are null, the existing A/B\n * configuration is preserved verbatim.\n */\n versionA?: InputMaybe<TypedStepConfigInput>;\n /**\n * Configuration for A/B test version B. Required when `hasAbTestVersions` is\n * true on a newly created step. Optional when updating an existing A/B-tested\n * step — when both `versionA` and `versionB` are null, the existing A/B\n * configuration is preserved verbatim.\n */\n versionB?: InputMaybe<TypedStepConfigInput>;\n};\n\n/** The connection type for OutboundCampaignStep. */\nexport type OutboundCampaignStepConnection = {\n __typename?: 'OutboundCampaignStepConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<OutboundCampaignStepEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<OutboundCampaignStep>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n};\n\n/** An edge in a connection. */\nexport type OutboundCampaignStepEdge = {\n __typename?: 'OutboundCampaignStepEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<OutboundCampaignStep>;\n};\n\n/**\n * A single step in a campaign's sequence tree. The full payload of an\n * `updateCampaignSteps` mutation is the desired final tree — every step that must\n * remain on the campaign is included.\n */\nexport type OutboundCampaignStepInput = {\n /**\n * Caller-assigned key (any unique string within the payload) used to reference\n * newly created steps from `parentClientKey`. Required when `id` is null.\n */\n clientKey?: InputMaybe<Scalars['String']['input']>;\n /** Mutable configuration for this step (A/B flag, typed config, skip-on-failure). */\n configuration: OutboundCampaignStepConfigurationInput;\n /** Global ID of an existing step. Null for newly created steps; when null, `clientKey` is required. */\n id?: InputMaybe<Scalars['ID']['input']>;\n /**\n * References another input's `clientKey` to set the parent of this step.\n * Mutually exclusive with `parentId`. Null on the root step.\n */\n parentClientKey?: InputMaybe<Scalars['String']['input']>;\n /** Global ID of the parent step. Mutually exclusive with `parentClientKey`. Null on the root step. */\n parentId?: InputMaybe<Scalars['ID']['input']>;\n /** Branch position under the parent (0 = default/left, 1 = right). Relevant for condition steps with multiple children. */\n position: Scalars['Int']['input'];\n /**\n * Kind of action this step performs. Must match the populated config variant.\n * Step types whose configuration is not typed yet cannot be created.\n */\n stepType: OutboundCampaignStepKind;\n};\n\n/** The type of a campaign step. */\nexport type OutboundCampaignStepKind =\n /**\n * A conditional branch based on record filters. Not available when creating new\n * steps; existing steps of this type cannot have their configuration updated.\n */\n | 'CONDITION'\n /** A timed delay between steps. */\n | 'DELAY'\n /** Send an email. */\n | 'EMAIL'\n /**\n * Enroll the record in another campaign. Not available when creating new steps;\n * existing steps of this type cannot have their configuration updated.\n */\n | 'ENROLL_CAMPAIGN'\n /**\n * Branch the sequence on whether the sender and the prospect are connected on\n * LinkedIn. Children at position 0 receive prospects that are connected;\n * children at position 1 receive prospects that are not connected (this includes\n * prospects whose check could not be performed, e.g. when the connection-check\n * quota is exhausted).\n */\n | 'LINKEDIN_CHECK_CONNECTION'\n /** Send a LinkedIn connection request. */\n | 'LINKEDIN_SEND_INVITATION'\n /** Send a LinkedIn message. */\n | 'LINKEDIN_SEND_MESSAGE'\n /** Visit a LinkedIn profile. */\n | 'LINKEDIN_VISIT_PROFILE';\n\n/** Channel template used to seed a new campaign with a default sequence. */\nexport type OutboundCampaignTemplateChannel =\n /** Email-only sequence (initial email + 3 follow-ups). */\n | 'EMAIL'\n /** Multi-channel sequence combining email and LinkedIn steps. */\n | 'EMAIL_AND_LINKEDIN'\n /** LinkedIn-only sequence (connection request + messages). */\n | 'LINKEDIN';\n\n/** Writing style settings applied when generating messages for a campaign. */\nexport type OutboundCampaignWritingStyle = {\n __typename?: 'OutboundCampaignWritingStyle';\n /** Formality level of generated messages. */\n formality?: Maybe<WritingStyleFormalityEnum>;\n /** Language of generated messages. */\n language?: Maybe<WritingStyleLanguageEnum>;\n /** Desired length of generated messages. */\n length?: Maybe<WritingStyleLengthEnum>;\n /** Tone of voice of generated messages. */\n toneOfVoice?: Maybe<WritingStyleToneOfVoiceEnum>;\n};\n\n/** Input fields for a campaign's writing style settings. */\nexport type OutboundCampaignWritingStyleInput = {\n /** Formality level of generated messages. */\n formality?: InputMaybe<WritingStyleFormalityEnum>;\n /** Language of generated messages. */\n language?: InputMaybe<WritingStyleLanguageEnum>;\n /** Desired length of generated messages. */\n length?: InputMaybe<WritingStyleLengthEnum>;\n /** Tone of voice of generated messages. */\n toneOfVoice?: InputMaybe<WritingStyleToneOfVoiceEnum>;\n};\n\n/** Information about pagination in a connection. */\nexport type PageInfo = {\n __typename?: 'PageInfo';\n /** When paginating forwards, the cursor to continue. */\n endCursor?: Maybe<Scalars['String']['output']>;\n /** When paginating forwards, are there more items? */\n hasNextPage: Scalars['Boolean']['output'];\n /** When paginating backwards, are there more items? */\n hasPreviousPage: Scalars['Boolean']['output'];\n /** When paginating backwards, the cursor to continue. */\n startCursor?: Maybe<Scalars['String']['output']>;\n};\n\n/** Autogenerated input type of PauseOutboundCampaign */\nexport type PauseOutboundCampaignInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Global ID of the campaign to pause. */\n id: Scalars['ID']['input'];\n};\n\n/** Autogenerated return type of PauseOutboundCampaign. */\nexport type PauseOutboundCampaignPayload = {\n __typename?: 'PauseOutboundCampaignPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** The campaign after pausing. */\n outboundCampaign?: Maybe<OutboundCampaign>;\n};\n\n/** Autogenerated return type of Ping. */\nexport type PingPayload = {\n __typename?: 'PingPayload';\n externalId: Scalars['ID']['output'];\n message: Scalars['String']['output'];\n};\n\n/**\n * What this service would send upstream for one (Definition, provider) pair,\n * rendered without provisioning anything. Internal plumbing rather than\n * customer-facing data, exposed so the checks that assert against a provider's\n * live API can run from outside this codebase — the e2e backend suite diffs\n * `sentConfigKeys` against the provider's published schemas and offers\n * `draftRequestBody` to the live API as a draft.\n */\nexport type ProvisioningPreview = {\n __typename?: 'ProvisioningPreview';\n /** Slug of the Definition this preview belongs to. */\n definitionSlug: Scalars['String']['output'];\n /** Version of the Definition this preview belongs to. */\n definitionVersion: Scalars['Int']['output'];\n /**\n * The complete request body this provider's provisioning builds, from a sample\n * input derived from the Definition's own `watcherInputSchema`. Carries `status:\n * \"draft\"` where the provider has one: leads are sourced only once a signal is\n * activated, which is what makes offering this body to a live API free. Null for\n * a provider whose provisioning is a sequence of API calls rather than one\n * declarative body, leaving nothing to render ahead of time.\n */\n draftRequestBody?: Maybe<Scalars['JSON']['output']>;\n /**\n * Upstream route this provider provisions against, e.g. 'fundraising' or\n * 'gmb-listing'. Null for a provider with no named per-signal route.\n */\n endpoint?: Maybe<Scalars['String']['output']>;\n /**\n * Whether this is the latest version of the Definition. Deprecated versions\n * share their provisioning with the successor, so a consumer diffing config keys\n * can skip them without losing coverage.\n */\n latest: Scalars['Boolean']['output'];\n /** Slug of the definition provider this preview is for, e.g. 'rodz'. */\n providerSlug: Scalars['String']['output'];\n /**\n * ICP paths this Definition cannot be created without — `createWatcher` refuses\n * a watcher missing any of them, because some endpoints cannot run unfiltered.\n * Values are the caller's to supply: `organization.division_ids` wants real\n * Mercator ids, which only the caller's environment can resolve. Empty when the\n * Definition can be created with no ICP at all.\n */\n requiredIcpPaths: Array<Scalars['String']['output']>;\n /**\n * The watcher input `draftRequestBody` was rendered from, derived from the\n * Definition's own `watcherInputSchema`. Exposed so a consumer driving the real\n * `createWatcher` path needs no second implementation of \"an input this\n * Definition accepts\".\n */\n sampleWatcherInput: Scalars['JSON']['output'];\n /**\n * Every upstream filter-config key this provider's provisioning can emit — the\n * declared set, not the subset this particular sample input rendered. A key the\n * provider no longer accepts is a filter that silently stopped applying, since\n * Rodz (for one) ignores unknown config keys rather than rejecting them. Empty\n * for a provider that sends no filter config upstream and filters locally instead.\n */\n sentConfigKeys: Array<Scalars['String']['output']>;\n};\n\n/** Filter arguments for the provisioning previews query. */\nexport type ProvisioningPreviewFilterInput = {\n /** Only preview this definition provider, e.g. 'rodz' or 'snitcher'. Omit for every provider. */\n providerSlug?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated input type of PurchaseCredits */\nexport type PurchaseCreditsInput = {\n /** Billing customer UUID. */\n billingCustomerId: Scalars['ID']['input'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /**\n * Caller-supplied UUID. Salted per Stripe API step so a network retry never\n * double-charges. Replays surface as `ActiveRecord::RecordNotUnique` — look up\n * the existing invoice.\n */\n idempotencyKey: Scalars['String']['input'];\n /** Number of credits to purchase. Must be greater than 0. */\n quantity: Scalars['Int']['input'];\n};\n\n/** Autogenerated return type of PurchaseCredits. */\nexport type PurchaseCreditsPayload = Node & {\n __typename?: 'PurchaseCreditsPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** Customer's credit balance after the grant. */\n creditBalance: Scalars['Float']['output'];\n id: Scalars['ID']['output'];\n /** The freshly-granted Invoice row, with its credit-bearing line(s) and the associated Credit already persisted. */\n invoice: BillingInvoice;\n};\n\nexport type Query = {\n __typename?: 'Query';\n /**\n * Looks up a billing customer by id, e.g. for a consumer's credit pre-check.\n * Billing trusts authenticated callers; tenancy is enforced upstream by Max.\n * @deprecated use node instead\n */\n billingCustomer?: Maybe<BillingCustomer>;\n /** Liveness probe for the billing subgraph. */\n billingPing: Scalars['String']['output'];\n /**\n * Static catalog of plans (Starter / Growth / Scale × monthly / annual) for one\n * product. Drives the upgrade ladder UI without round-tripping Stripe.\n */\n billingPlanCatalog: Array<BillingPlanCatalogEntry>;\n /**\n * List contacts with optional filtering and sorting.\n * Supports cross-organization filtering via `organizationFilter` — for example, contacts\n * whose organization is in a given industry or country.\n * When you already hold an Organization, prefer `organization { contacts { ... } }` to\n * avoid cross-joins. Maximum page size: 50.\n */\n contacts: ContactConnection;\n /** Returns all administrative divisions at every hierarchy level that contain the given coordinate. */\n containingDivisions: LocationConnection;\n /** Find a Definition by slug and version. */\n definition?: Maybe<Definition>;\n /** List of code-defined Definitions exposed by this subgraph. */\n definitions: DefinitionConnection;\n /**\n * List IP-to-company identification records with optional filtering.\n * Use `filter.valid: true` to restrict to records that successfully matched a company.\n */\n identifications: IdentificationConnection;\n /**\n * Every division level, ordered coarsest to finest. The MACRO* levels group\n * whole levels rather than sitting on one, so they fall *between* the\n * administrative levels — which is why this ordering, and not `adminLevel`, is\n * what a consumer walks to find the nearest level it can express.\n */\n locationSubtypes: Array<LocationSubtype>;\n /** Auth0 logout URL used by CLI to clear browser session. */\n logoutUrl: Scalars['String']['output'];\n /** Identity of the authenticated caller. Null when the request carries no access token, or one Auth0 rejects. */\n me?: Maybe<Viewer>;\n /**\n * Fetches an object given its ID. Supports all entity types across subgraphs —\n * the gateway hydrates fields from the owning subgraph via federation entity resolution.\n */\n node?: Maybe<Node>;\n /** Fetches a list of objects given a list of IDs. Supports all entity types across subgraphs. */\n nodes: Array<Maybe<Node>>;\n /**\n * Look up an organization by its exact primary domain.\n * Returns null when no record exists for that domain.\n * Use when you have the exact domain. For attribute-based or fuzzy search,\n * use `organizations(filter:, sort:)` instead.\n */\n organization?: Maybe<Organization>;\n /**\n * List organizations with optional filtering and sorting.\n * Supports semantic search via embedding filters on `description` and `industry`.\n * The `name` and `domain` filters both accept `in`, so a whole list of company\n * identifiers can be resolved to records in one read — no enrichment, no external calls.\n * Use `organization(domain:)` for a direct single-domain lookup.\n * Maximum page size: 100.\n */\n organizations: OrganizationConnection;\n /** Liveness probe for the outreach subgraph. */\n outreachPing: Scalars['String']['output'];\n /**\n * Projects the next invoice for a hypothetical subscription change without\n * applying it. Drives the adjuster slider so price totals come from Stripe, not\n * client-side math. Unset arguments keep the current value.\n */\n previewBillingSubscriptionChange: BillingSubscriptionChangePreview;\n /**\n * What this service would send upstream for every (Definition, provider) pair,\n * rendered without provisioning anything. Exposed so the checks that assert\n * against a provider's live API can run from outside this codebase (see the e2e\n * backend suite) and therefore check the deployed service rather than a copy of its source.\n */\n provisioningPreviews: Array<ProvisioningPreview>;\n /** Looks up a single location by an external code, in the identifier scheme given by `code_type`. */\n resolveByCode?: Maybe<Location>;\n /** Fuzzy text search over location names and aliases. Returns ranked matches. */\n resolveLocations: LocationConnection;\n /** Liveness probe for the signals subgraph */\n signalsPing: Scalars['String']['output'];\n /**\n * Find a Watcher by id.\n * @deprecated use node instead\n */\n watcher?: Maybe<Watcher>;\n};\n\n\nexport type QueryBillingCustomerArgs = {\n id: Scalars['ID']['input'];\n};\n\n\nexport type QueryBillingPlanCatalogArgs = {\n product?: InputMaybe<BillingProduct>;\n};\n\n\nexport type QueryContactsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n filter?: InputMaybe<ContactFilterInput>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n organizationFilter?: InputMaybe<OrganizationFilterInput>;\n sort?: InputMaybe<Array<ContactSortInput>>;\n};\n\n\nexport type QueryContainingDivisionsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n coordinate: CoordinateInput;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\nexport type QueryDefinitionArgs = {\n slug: Scalars['String']['input'];\n version: Scalars['Int']['input'];\n};\n\n\nexport type QueryDefinitionsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n filter?: InputMaybe<DefinitionFilterInput>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\nexport type QueryIdentificationsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n filter?: InputMaybe<IdentificationFilterInput>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\nexport type QueryNodeArgs = {\n id: Scalars['ID']['input'];\n};\n\n\nexport type QueryNodesArgs = {\n ids: Array<Scalars['ID']['input']>;\n};\n\n\nexport type QueryOrganizationArgs = {\n domain: Scalars['String']['input'];\n};\n\n\nexport type QueryOrganizationsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n filter?: InputMaybe<OrganizationFilterInput>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n sort?: InputMaybe<Array<OrganizationSortInput>>;\n};\n\n\nexport type QueryPreviewBillingSubscriptionChangeArgs = {\n extraCredits?: InputMaybe<Scalars['Int']['input']>;\n extraSeats?: InputMaybe<Scalars['Int']['input']>;\n periodicity?: InputMaybe<BillingPeriodicity>;\n plan?: InputMaybe<BillingPlanName>;\n subscriptionId: Scalars['ID']['input'];\n};\n\n\nexport type QueryProvisioningPreviewsArgs = {\n filter?: InputMaybe<ProvisioningPreviewFilterInput>;\n};\n\n\nexport type QueryResolveByCodeArgs = {\n code: Scalars['String']['input'];\n codeType: LocationCode;\n};\n\n\nexport type QueryResolveLocationsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n query: Scalars['String']['input'];\n subtypes?: InputMaybe<LocationSubtypeFilterInput>;\n within?: InputMaybe<Scalars['ID']['input']>;\n};\n\n\nexport type QueryWatcherArgs = {\n id: Scalars['ID']['input'];\n};\n\n/** Filter on an int8range column with range operators. */\nexport type RangeFilterInput = {\n /** Matches rows whose range is fully within the given [min, max] range. */\n containedBy?: InputMaybe<Scalars['Range']['input']>;\n /** Matches rows whose range contains the given value. */\n contains?: InputMaybe<Scalars['Int']['input']>;\n /** Matches rows whose range overlaps the given [min, max] range. */\n overlaps?: InputMaybe<Scalars['Range']['input']>;\n};\n\n/** Autogenerated input type of RefreshToken */\nexport type RefreshTokenInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n refreshToken: Scalars['String']['input'];\n};\n\n/** Autogenerated input type of RunSignalsSynchronousWorker */\nexport type RunSignalsSynchronousWorkerInput = {\n /** Positional arguments forwarded to the job's perform. */\n args?: InputMaybe<Array<Scalars['JSON']['input']>>;\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Fully-qualified ActiveJob class name to execute inline. */\n jobName: Scalars['String']['input'];\n /** Keyword arguments forwarded to the job's perform. */\n kwargs?: InputMaybe<Scalars['JSON']['input']>;\n};\n\n/** Autogenerated return type of RunSignalsSynchronousWorker. */\nexport type RunSignalsSynchronousWorkerPayload = Node & {\n __typename?: 'RunSignalsSynchronousWorkerPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** Indicates whether the job ran to completion without raising. */\n done: Scalars['Boolean']['output'];\n id: Scalars['ID']['output'];\n};\n\n/** Autogenerated input type of RunSynchronousWorker */\nexport type RunSynchronousWorkerInput = {\n /** Positional arguments forwarded to the job's #perform. */\n args?: InputMaybe<Array<Scalars['JSON']['input']>>;\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Fully-qualified ActiveJob class name to execute inline. */\n jobName: Scalars['String']['input'];\n /** Keyword arguments forwarded to the job's #perform. */\n kwargs?: InputMaybe<Scalars['JSON']['input']>;\n};\n\n/** Autogenerated return type of RunSynchronousWorker. */\nexport type RunSynchronousWorkerPayload = Node & {\n __typename?: 'RunSynchronousWorkerPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n done: Scalars['Boolean']['output'];\n id: Scalars['ID']['output'];\n};\n\n/** Autogenerated input type of SearchContact */\nexport type SearchContactInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Caller-supplied identifier used to key the `contactIdentifyResult` subscription. */\n externalId: Scalars['ID']['input'];\n /** Exactly one lookup mode must be provided. */\n lookup: ContactLookupInput;\n};\n\n/** Autogenerated return type of SearchContact. */\nexport type SearchContactPayload = Node & {\n __typename?: 'SearchContactPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** One of: received. */\n status: Scalars['String']['output'];\n};\n\n/** Autogenerated input type of SearchContacts */\nexport type SearchContactsInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Caller-supplied identifier used to key the `contactSearchResult` subscription. */\n externalId: Scalars['ID']['input'];\n /** Filter criteria for contacts, applied to both the local database and, where translatable, the Coresignal search. */\n filter?: InputMaybe<ContactFilterInput>;\n /**\n * Filter criteria for the contacts' organizations, applied to both the local\n * database and, where translatable, the Coresignal search.\n */\n organizationFilter?: InputMaybe<OrganizationFilterInput>;\n /** Sort order applied to the database contacts result set. */\n sort?: InputMaybe<Array<ContactSortInput>>;\n};\n\n/** Autogenerated return type of SearchContacts. */\nexport type SearchContactsPayload = Node & {\n __typename?: 'SearchContactsPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** One of: received. */\n status: Scalars['String']['output'];\n};\n\n/** Autogenerated input type of SearchOrganization */\nexport type SearchOrganizationInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Caller-supplied correlation key; pass the same value to `organizationSearchResult(externalId:)` to receive the result. */\n externalId: Scalars['String']['input'];\n /** Lookup mode — provide exactly one of `domain` or `byIp`. */\n lookup: OrganizationLookupInput;\n /**\n * Optional URL to receive the result via webhook instead of the federated\n * subscription. Only used with `lookup.byIp`. Requires the `atlas/source:write` scope.\n */\n webhookUrl?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated return type of SearchOrganization. */\nexport type SearchOrganizationPayload = Node & {\n __typename?: 'SearchOrganizationPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** One of: received. */\n status: Scalars['String']['output'];\n};\n\n/** Autogenerated input type of SetWebhookActive */\nexport type SetWebhookActiveInput = {\n /** True to resume delivery, false to pause it. */\n active: Scalars['Boolean']['input'];\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n id: Scalars['ID']['input'];\n /** Webhook URL whose delivery state is toggled. */\n webhookUrl: Scalars['String']['input'];\n};\n\n/** Autogenerated return type of SetWebhookActive. */\nexport type SetWebhookActivePayload = Node & {\n __typename?: 'SetWebhookActivePayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** The reconciled Watcher. */\n watcher: Watcher;\n};\n\n/** Sort direction. */\nexport type SortDirection =\n /** Ascending order (lowest to highest, oldest to newest). */\n | 'ASC'\n /** Descending order (highest to lowest, newest to oldest). */\n | 'DESC';\n\n/** An enrichment data source with trust score and field mappings. */\nexport type Source = Node & {\n __typename?: 'Source';\n /**\n * Maps Atlas canonical contact field names to rawData extraction expressions.\n * Keys: first_name, last_name, email_address, job_title, job_level, job_function,\n * linkedin_url, city, country_code.\n * Values: a string key (\"firstname\"), an array path for nested access\n * ([\"data\", \"email\"]), or an operation hash\n * ({\"op\": \"split\", \"key\": \"full_name\", \"index\": 0}).\n * All referenced keys must exist in contact_schema.\n */\n contactFieldMappings: Scalars['JSON']['output'];\n /** JSON Schema (draft-07) describing the expected shape of contact rawData payloads. */\n contactSchema: Scalars['JSON']['output'];\n /** When the source was registered. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n id: Scalars['ID']['output'];\n /**\n * Maps Atlas canonical identification field names to rawData extraction expressions.\n * Keys: ip_address, organization_domain, confidence_score.\n * Values follow the same expression syntax as contact_field_mappings.\n * All referenced keys must exist in identification_schema.\n */\n identificationFieldMappings: Scalars['JSON']['output'];\n /** JSON Schema (draft-07) describing the expected shape of identification rawData payloads. */\n identificationSchema: Scalars['JSON']['output'];\n /** OAuth subject of the user who registered this source. Null for system-registered sources. */\n oauthId?: Maybe<Scalars['String']['output']>;\n /**\n * Maps address slot names to rawData extraction expressions.\n * The top-level key names an address slot (e.g. \"headquarters\").\n * Each slot maps Atlas address field names (street, city, state, postal_code,\n * country_code, is_headquarters) to extraction expressions or literal values.\n */\n officeFieldMappings: Scalars['JSON']['output'];\n /**\n * Maps Atlas canonical organization field names to rawData extraction expressions.\n * Keys: name, website, phone, contact_email, linkedin_url, description,\n * company_size, founded_year, industry, country_code, annual_revenue.\n * Values: a string key (\"name\"), an array path ([\"company\", \"name\"]),\n * or an operation hash ({\"op\": \"parse_employee_range\", \"path\": [\"size_range\"]}).\n * All referenced keys must exist in organization_schema.\n */\n organizationFieldMappings: Scalars['JSON']['output'];\n /** JSON Schema (draft-07) describing the expected shape of organization rawData payloads. */\n organizationSchema: Scalars['JSON']['output'];\n /** Short machine-readable identifier for this source (e.g. snitcher, hunter). */\n slug: Scalars['String']['output'];\n /** Weight applied during multi-source merging, 0.0–1.0. Higher scores win field conflicts. */\n trustScore: Scalars['Float']['output'];\n /** When the source configuration was last updated. */\n updatedAt: Scalars['ISO8601DateTime']['output'];\n};\n\n/** Autogenerated input type of StartOutboundCampaign */\nexport type StartOutboundCampaignInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Global ID of the campaign to start. */\n id: Scalars['ID']['input'];\n};\n\n/** Autogenerated return type of StartOutboundCampaign. */\nexport type StartOutboundCampaignPayload = {\n __typename?: 'StartOutboundCampaignPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** The campaign after starting. */\n outboundCampaign?: Maybe<OutboundCampaign>;\n};\n\n/** Filter on a string column with positive and negative matching. */\nexport type StringFilterInput = {\n /** When true, match only rows where the column is NULL or empty. False or omitted applies no constraint. */\n blank?: InputMaybe<Scalars['Boolean']['input']>;\n /** Exact match. */\n eq?: InputMaybe<Scalars['String']['input']>;\n /** Match any of these values. */\n in?: InputMaybe<Array<Scalars['String']['input']>>;\n /** Exclude exact match. */\n notEq?: InputMaybe<Scalars['String']['input']>;\n /** Exclude any of these values. */\n notIn?: InputMaybe<Array<Scalars['String']['input']>>;\n /** When true, match only rows where the column is neither NULL nor empty. False or omitted applies no constraint. */\n presence?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\nexport type Subscription = {\n __typename?: 'Subscription';\n /**\n * Delivers the result of an `enrichContact` call when `externalId` was supplied,\n * keyed by that `externalId`. The payload contains the merged Contact after enrichment.\n */\n contactEnrichmentResult: ContactEnrichmentResultPayload;\n /**\n * Delivers the result of a `searchContact` call, keyed by `externalId`.\n * Subscribe before or immediately after calling `searchContact`, passing the\n * same `externalId`. The payload contains the matched Contact (or null if not found),\n * regardless of which probe mode was used.\n */\n contactIdentifyResult: ContactIdentifyResultPayload;\n /**\n * Delivers the result of a `searchContacts` call, keyed by `externalId`.\n * The payload contains the contacts matching the filter — both\n * pre-existing database matches and newly-discovered, newly-persisted\n * third-party (Coresignal) matches, since Coresignal-sourced contacts\n * are persisted before this query runs.\n */\n contactSearchResult: ContactSearchResultPayload;\n /**\n * Delivers the result of a `validateContact` call, keyed by `externalId`.\n * The payload contains the Contact and per-field coherence flags in `clues`.\n */\n contactValidationResult: ContactValidationResultPayload;\n /**\n * Delivers the result of a `validateDomain` call, keyed by `externalId`.\n * The payload contains the Organization and per-field coherence flags in `clues`.\n */\n domainValidationResult: DomainValidationResultPayload;\n /**\n * Delivers the result of an `enrichOrganization` call when `externalId` was\n * supplied, keyed by that `externalId`. Fires once the merge has settled,\n * including the embedding columns, so the organization is immediately\n * queryable through embedding filters (e.g. `industry`).\n */\n organizationEnrichmentResult: OrganizationEnrichmentResultPayload;\n /**\n * Delivers the result of a `searchOrganization` call, keyed by `externalId`.\n * The payload contains the Organization once Atlas has looked up or enriched it\n * (whether by domain or IP), or null if no match was found.\n */\n organizationSearchResult: OrganizationSearchResultPayload;\n /** Spike subscription used to validate the callback transport end-to-end. */\n ping: PingPayload;\n};\n\n\nexport type SubscriptionContactEnrichmentResultArgs = {\n externalId: Scalars['ID']['input'];\n};\n\n\nexport type SubscriptionContactIdentifyResultArgs = {\n externalId: Scalars['ID']['input'];\n};\n\n\nexport type SubscriptionContactSearchResultArgs = {\n externalId: Scalars['ID']['input'];\n};\n\n\nexport type SubscriptionContactValidationResultArgs = {\n externalId: Scalars['ID']['input'];\n};\n\n\nexport type SubscriptionDomainValidationResultArgs = {\n externalId: Scalars['ID']['input'];\n};\n\n\nexport type SubscriptionOrganizationEnrichmentResultArgs = {\n externalId: Scalars['ID']['input'];\n};\n\n\nexport type SubscriptionOrganizationSearchResultArgs = {\n externalId: Scalars['ID']['input'];\n};\n\n\nexport type SubscriptionPingArgs = {\n externalId: Scalars['ID']['input'];\n};\n\nexport type TokenResponse = Node & {\n __typename?: 'TokenResponse';\n accessToken?: Maybe<Scalars['String']['output']>;\n error?: Maybe<Scalars['String']['output']>;\n expiresIn?: Maybe<Scalars['Int']['output']>;\n id: Scalars['ID']['output'];\n idToken?: Maybe<Scalars['String']['output']>;\n refreshToken?: Maybe<Scalars['String']['output']>;\n tokenType?: Maybe<Scalars['String']['output']>;\n};\n\n/** How a Watcher run is initiated. */\nexport type TriggerEnum =\n | 'MANUAL'\n | 'SCHEDULE'\n | 'WEBHOOK';\n\n/** Autogenerated input type of TriggerWatcher */\nexport type TriggerWatcherInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n id: Scalars['ID']['input'];\n};\n\n/** Autogenerated return type of TriggerWatcher. */\nexport type TriggerWatcherPayload = Node & {\n __typename?: 'TriggerWatcherPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n watcher: Watcher;\n};\n\n/**\n * Typed configuration for a campaign step. The variant matches the step type\n * (e.g., an `email` step yields an `EmailStepConfig`).\n */\nexport type TypedStepConfig = DelayStepConfig | EmailStepConfig | LinkedinSendInvitationStepConfig | LinkedinSendMessageStepConfig;\n\n/**\n * Typed configuration for a campaign step. Exactly one variant must be set; the\n * chosen variant must match the step's `stepType`.\n */\nexport type TypedStepConfigInput = {\n /** Set when stepType is DELAY. */\n delay?: InputMaybe<DelayInput>;\n /** Set when stepType is EMAIL. */\n email?: InputMaybe<EmailInput>;\n /** Set when stepType is LINKEDIN_SEND_INVITATION. */\n linkedinSendInvitation?: InputMaybe<LinkedinSendInvitationInput>;\n /** Set when stepType is LINKEDIN_SEND_MESSAGE. */\n linkedinSendMessage?: InputMaybe<LinkedinSendMessageInput>;\n};\n\n/** Autogenerated input type of UpdateBillingSubscriptionSeats */\nexport type UpdateBillingSubscriptionSeatsInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** New extras count (above plan default). Must be ≥ 0. */\n seats: Scalars['Int']['input'];\n /** Target subscription UUID. */\n subscriptionId: Scalars['ID']['input'];\n};\n\n/** Autogenerated return type of UpdateBillingSubscriptionSeats. */\nexport type UpdateBillingSubscriptionSeatsPayload = Node & {\n __typename?: 'UpdateBillingSubscriptionSeatsPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** Immediate-proration sum in EUR added to the next invoice. Zero when seats shrink. */\n proratedCharge: Scalars['Float']['output'];\n /** When the seat-count change becomes effective — always now. */\n takesEffectAt: Scalars['ISO8601DateTime']['output'];\n};\n\n/** Autogenerated input type of UpdateOutboundCampaignSettings */\nexport type UpdateOutboundCampaignSettingsInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Global ID of the campaign to update. */\n id: Scalars['ID']['input'];\n /**\n * Campaign settings to update. All sub-fields are optional; omitted sub-fields\n * preserve the current value. Writing-style and pitch-settings sub-fields merge\n * onto the campaign's current values. Omitting `settings` entirely is a no-op.\n */\n settings?: InputMaybe<OutboundCampaignSettingsInput>;\n};\n\n/** Autogenerated return type of UpdateOutboundCampaignSettings. */\nexport type UpdateOutboundCampaignSettingsPayload = {\n __typename?: 'UpdateOutboundCampaignSettingsPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** The updated campaign. */\n outboundCampaign?: Maybe<OutboundCampaign>;\n};\n\n/** Autogenerated input type of UpdateOutboundCampaignStepConfiguration */\nexport type UpdateOutboundCampaignStepConfigurationInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** New configuration to apply to the step. */\n configuration: OutboundCampaignStepConfigurationInput;\n /** Global ID of the step to update. */\n id: Scalars['ID']['input'];\n};\n\n/** Autogenerated return type of UpdateOutboundCampaignStepConfiguration. */\nexport type UpdateOutboundCampaignStepConfigurationPayload = {\n __typename?: 'UpdateOutboundCampaignStepConfigurationPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** The updated step. */\n step?: Maybe<OutboundCampaignStep>;\n};\n\n/** Autogenerated input type of UpdateOutboundCampaignSteps */\nexport type UpdateOutboundCampaignStepsInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Global ID of the campaign whose tree to replace. */\n id: Scalars['ID']['input'];\n /** The full set of steps for the campaign. */\n steps: Array<OutboundCampaignStepInput>;\n};\n\n/** Autogenerated return type of UpdateOutboundCampaignSteps. */\nexport type UpdateOutboundCampaignStepsPayload = {\n __typename?: 'UpdateOutboundCampaignStepsPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n /** The campaign with its updated step tree. */\n outboundCampaign?: Maybe<OutboundCampaign>;\n};\n\n/** Autogenerated input type of UpdateSource */\nexport type UpdateSourceInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /**\n * Maps Atlas canonical contact field names to rawData extraction expressions.\n * Keys: first_name, last_name, email_address, job_title, job_level, job_function,\n * linkedin_url, city, country_code.\n * Values: a string key (\"firstname\"), an array path for nested access\n * ([\"data\", \"email\"]), or an operation hash\n * ({\"op\": \"split\", \"key\": \"full_name\", \"index\": 0}).\n * All referenced keys must exist in contact_schema.\n */\n contactFieldMappings?: InputMaybe<Scalars['JSON']['input']>;\n /** JSON Schema (draft-07) describing the expected shape of contact rawData payloads. */\n contactSchema?: InputMaybe<Scalars['JSON']['input']>;\n /**\n * Maps Atlas canonical identification field names to rawData extraction expressions.\n * Keys: ip_address, organization_domain, confidence_score.\n * Values follow the same expression syntax as contact_field_mappings.\n * All referenced keys must exist in identification_schema.\n */\n identificationFieldMappings?: InputMaybe<Scalars['JSON']['input']>;\n /** JSON Schema (draft-07) describing the expected shape of identification rawData payloads. */\n identificationSchema?: InputMaybe<Scalars['JSON']['input']>;\n /**\n * Maps Atlas canonical organization field names to rawData extraction expressions.\n * Keys: name, website, phone, contact_email, linkedin_url, description,\n * company_size, founded_year, industry, country_code, annual_revenue.\n * Values: a string key (\"name\"), an array path ([\"company\", \"name\"]),\n * or an operation hash ({\"op\": \"parse_employee_range\", \"path\": [\"size_range\"]}).\n * All referenced keys must exist in organization_schema.\n */\n organizationFieldMappings?: InputMaybe<Scalars['JSON']['input']>;\n /** JSON Schema (draft-07) describing the expected shape of organization rawData payloads. */\n organizationSchema?: InputMaybe<Scalars['JSON']['input']>;\n /** Global ID of the source to update. */\n sourceId: Scalars['ID']['input'];\n /** Weight applied during multi-source merging, 0.0–1.0. Higher scores win field conflicts. */\n trustScore?: InputMaybe<Scalars['Float']['input']>;\n};\n\n/** Autogenerated input type of UpdateWatcherLeadCaps */\nexport type UpdateWatcherLeadCapsInput = {\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Global id of the Watcher whose caps are being replaced. */\n id: Scalars['ID']['input'];\n /** The full set of caps for the Watcher. Pass an empty list to remove all caps (leaving the Watcher uncapped). */\n leadCaps: Array<LeadCapInput>;\n};\n\n/** Autogenerated return type of UpdateWatcherLeadCaps. */\nexport type UpdateWatcherLeadCapsPayload = Node & {\n __typename?: 'UpdateWatcherLeadCapsPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** The updated Watcher. */\n watcher: Watcher;\n};\n\n/** Federation reference to a User owned by another subgraph. */\nexport type User = Node & {\n __typename?: 'User';\n /** GlobalID-encoded User id. */\n id: Scalars['ID']['output'];\n};\n\n/** Autogenerated input type of ValidateContact */\nexport type ValidateContactInput = {\n /** Optional values to cross-check against Atlas data (email, phone). */\n checks?: InputMaybe<ContactValidationChecksInput>;\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** Caller-supplied correlation key; pass the same value to `contactValidationResult(externalId:)` to receive the result. */\n externalId: Scalars['String']['input'];\n /** Contact's first name to validate. */\n firstName: Scalars['String']['input'];\n /** Contact's last name to validate. */\n lastName: Scalars['String']['input'];\n /** Global ID of the organization this contact belongs to. */\n organizationId: Scalars['ID']['input'];\n /**\n * Optional URL to receive the result via webhook. Callers consuming results via\n * the federated `contactValidationResult` subscription can omit it. Requires the\n * `atlas/source:write` scope.\n */\n webhookUrl?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated return type of ValidateContact. */\nexport type ValidateContactPayload = Node & {\n __typename?: 'ValidateContactPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** One of: received. */\n status: Scalars['String']['output'];\n};\n\n/** Autogenerated input type of ValidateDomain */\nexport type ValidateDomainInput = {\n /** Company field values to cross-check against Atlas data. */\n checks?: InputMaybe<ValidationChecksInput>;\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: InputMaybe<Scalars['String']['input']>;\n /** The company's primary web domain to validate. */\n domain: Scalars['String']['input'];\n /** Caller-supplied correlation key; pass the same value to `domainValidationResult(externalId:)` to receive the result. */\n externalId: Scalars['String']['input'];\n /**\n * Optional URL to receive the result via webhook. Callers consuming results via\n * the federated `domainValidationResult` subscription can omit it. Requires the\n * `atlas/source:write` scope.\n */\n webhookUrl?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Autogenerated return type of ValidateDomain. */\nexport type ValidateDomainPayload = Node & {\n __typename?: 'ValidateDomainPayload';\n /** A unique identifier for the client performing the mutation. */\n clientMutationId?: Maybe<Scalars['String']['output']>;\n id: Scalars['ID']['output'];\n /** One of: received. */\n status: Scalars['String']['output'];\n};\n\n/** Company field values to cross-check against Atlas's stored organization data. */\nexport type ValidationChecksInput = {\n /** Expected annual revenue string to validate against the stored range. */\n annualRevenue?: InputMaybe<Scalars['String']['input']>;\n /** Expected employee count string to validate against the stored range. */\n companySize?: InputMaybe<Scalars['String']['input']>;\n /** General contact email address to validate. */\n contactEmail?: InputMaybe<Scalars['String']['input']>;\n /** ISO 3166-1 alpha-2 country code to validate. */\n countryCode?: InputMaybe<Scalars['String']['input']>;\n /** Four-digit founding year to validate against the stored value. */\n foundedYear?: InputMaybe<Scalars['Int']['input']>;\n /** Industry string to validate against the stored classification. */\n industry?: InputMaybe<Scalars['String']['input']>;\n /** IP address to include in identification coherence checks. */\n ip?: InputMaybe<Scalars['String']['input']>;\n /** LinkedIn company page URL to validate. */\n linkedinUrl?: InputMaybe<Scalars['String']['input']>;\n /** Legal or trade name to validate against the stored value. */\n name?: InputMaybe<Scalars['String']['input']>;\n /** Main phone number to validate. */\n phone?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Identity of the authenticated caller, resolved from the Auth0 access token. */\nexport type Viewer = {\n __typename?: 'Viewer';\n /** Email address on the Auth0 profile. Null when the profile carries no verified email. */\n email?: Maybe<Scalars['String']['output']>;\n /** Given name on the Auth0 profile. Null when the identity provider does not supply one. */\n firstName?: Maybe<Scalars['String']['output']>;\n /** Family name on the Auth0 profile. Null when the identity provider does not supply one. */\n lastName?: Maybe<Scalars['String']['output']>;\n /** Auth0 subject identifier of the caller, stable across sessions. */\n sub: Scalars['String']['output'];\n};\n\n/** Federation reference to a Watcher owned by another subgraph. */\nexport type Watcher = Node & {\n __typename?: 'Watcher';\n /** Timestamp at which the Watcher was permanently canceled, or null if active or paused. */\n canceledAt?: Maybe<Scalars['ISO8601DateTime']['output']>;\n /** Timestamp when the Watcher was created. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n /** The signal Definition this Watcher tracks. */\n definition: Definition;\n /** Captured Events for this Watcher, newest first. */\n events: EventConnection;\n /**\n * Ideal Customer Profile this Watcher filters its leads by, in the same shape\n * Atlas search uses — including geography, as `contact.divisionIds` /\n * `organization.divisionIds`. Null for a Watcher created without a profile. Part\n * of the Watcher's identity, so it is fixed at creation.\n */\n icp?: Maybe<WatcherIcp>;\n /** GlobalID-encoded Watcher id. */\n id: Scalars['ID']['output'];\n /**\n * User-supplied input that defines what to track (e.g. keywords, domain, post\n * URL). Provider-managed configuration is not included here.\n */\n input: Scalars['JSON']['output'];\n /**\n * Client-side installation artifacts for this Watcher, one entry per provider\n * that publishes one. Each entry is a provider-specific JSON blob. By convention\n * every entry includes an `instructions` markdown field that tells the consumer\n * (agent or UI) how to walk the user through the install, plus the concrete\n * artifacts those instructions reference (e.g. Snitcher exposes `snippet`,\n * `snippet_version`, `wordpress_plugin_url`, `help_article_path`). Empty when no\n * provider requires client-side setup.\n */\n installations: Array<Scalars['JSON']['output']>;\n /** Freshness-first per-period lead caps applied to this Watcher. Empty when the Watcher is uncapped. */\n leadCaps: WatcherLeadCapConnection;\n /** Human-readable display name of the Watcher, derived from the signal Definition it tracks. */\n name: Scalars['String']['output'];\n /**\n * Identifiers the upstream services assigned to this Watcher, one per provider\n * that holds one. Gated behind `signals/watcher:*` because these are internal\n * vendor ids — unlike `installations`, they are not customer-facing and disclose\n * which third party backs the signal. Empty for providers that keep no external reference.\n */\n providerReferences: Array<WatcherProviderReference>;\n /** Timestamp of the most recent change to this Watcher. */\n updatedAt: Scalars['ISO8601DateTime']['output'];\n /** Delivery URLs registered on this watcher. Secrets are never exposed. */\n webhookUrls: Array<Scalars['String']['output']>;\n};\n\n\n/** Federation reference to a Watcher owned by another subgraph. */\nexport type WatcherEventsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\n/** Federation reference to a Watcher owned by another subgraph. */\nexport type WatcherLeadCapsArgs = {\n after?: InputMaybe<Scalars['String']['input']>;\n before?: InputMaybe<Scalars['String']['input']>;\n first?: InputMaybe<Scalars['Int']['input']>;\n last?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/**\n * Person-level ICP criteria, as submitted. Mirrors `WatcherContactIcpInput`, which\n * in turn mirrors the subset of Atlas's `ContactFilterInput` an upstream lead\n * source can enforce.\n */\nexport type WatcherContactIcp = {\n __typename?: 'WatcherContactIcp';\n /** Mercator locations the person had to belong to. */\n divisionIds?: Maybe<WatcherDivisionFilter>;\n /**\n * Job title embedding filters. Only the *direction* of `distance` was honoured\n * upstream (`lt`/`lteq` include, `gt`/`gteq` exclude); the numeric threshold is\n * kept here because it is what the caller sent.\n */\n jobTitle?: Maybe<Array<EmbeddingFilter>>;\n};\n\n/** Person-level ICP criteria, mirroring the subset of Atlas's `ContactFilterInput` that an upstream lead source can enforce. */\nexport type WatcherContactIcpInput = {\n /**\n * Mercator location division IDs the person must belong to. Resolved to place\n * names before being handed upstream, since no source speaks Mercator.\n */\n divisionIds?: InputMaybe<IdFilterInput>;\n /**\n * Job title embedding filters. Each entry's `query` is embedded as a single\n * vector and matched semantically, so keep it to one semantic neighborhood:\n * related titles in one string (e.g. \"CMO, Marketing Director, VP Marketing\").\n * Packing unrelated roles into one query dilutes the vector and forces a looser\n * `distance`, costing precision. Entries combine with AND (an include plus a\n * `gt`/`gteq` exclude), never OR — create one watcher per distinct target\n * instead. Upstream sources honour only the *direction* of `distance`\n * (`lt`/`lteq` include, `gt`/`gteq` exclude); the numeric bound is enforced at\n * delivery time, and an entry without one constrains nothing there.\n */\n jobTitle?: InputMaybe<Array<EmbeddingFilterInput>>;\n};\n\n/** A Mercator location filter, as submitted, resolved to Locations. */\nexport type WatcherDivisionFilter = {\n __typename?: 'WatcherDivisionFilter';\n /** Location that had to match exactly. */\n eq?: Maybe<Location>;\n /** Locations any of which had to match. */\n in?: Maybe<Array<Location>>;\n /** Location that was excluded. */\n notEq?: Maybe<Location>;\n /** Locations that were excluded. */\n notIn?: Maybe<Array<Location>>;\n};\n\n/**\n * The Ideal Customer Profile a Watcher filters its leads by, returned in the same\n * vocabulary Atlas search uses. This is what the caller submitted, not what each\n * source could enforce: criteria an individual source cannot express are dropped\n * for that source only, and that translation is not reflected here.\n */\nexport type WatcherIcp = {\n __typename?: 'WatcherIcp';\n /** Person-level criteria. */\n contact?: Maybe<WatcherContactIcp>;\n /** Company-level criteria. */\n organization?: Maybe<WatcherOrganizationIcp>;\n};\n\n/**\n * The subscriber's Ideal Customer Profile, expressed in the same vocabulary Atlas\n * search uses so a caller can pass the filters it already built for\n * `searchContacts`. Enforced twice: each Watcher provider translates what it can\n * into whatever its upstream source accepts, so out-of-ICP leads are never\n * streamed — and never billed — and every resolved contact is then re-checked\n * against the full ICP before delivery. Criteria an individual source cannot\n * express are therefore still applied, just later, so the ICP means the same thing\n * whichever provider backs the watcher.\n */\nexport type WatcherIcpInput = {\n /** Person-level criteria. */\n contact?: InputMaybe<WatcherContactIcpInput>;\n /** Company-level criteria. */\n organization?: InputMaybe<WatcherOrganizationIcpInput>;\n};\n\n/**\n * A freshness-first lead cap on a Watcher: at most `maximumLeads` events are\n * surfaced per `period`, counted from `startsAt` and reset at every period boundary.\n */\nexport type WatcherLeadCap = Node & {\n __typename?: 'WatcherLeadCap';\n /** Timestamp when the cap was created. */\n createdAt: Scalars['ISO8601DateTime']['output'];\n /** Start of the window currently accumulating; events are counted from here and the usage resets at the next boundary. */\n currentPeriodStartsAt: Scalars['ISO8601DateTime']['output'];\n /** Number of events already surfaced in the current window. The cap drops further events once this reaches `maximumLeads`. */\n currentUsage: Scalars['Int']['output'];\n id: Scalars['ID']['output'];\n /** Maximum number of events surfaced per period. */\n maximumLeads: Scalars['Int']['output'];\n /** Length of the accumulation window as an ISO-8601 duration, e.g. P1D or P1W. */\n period: Scalars['ISO8601Duration']['output'];\n /** Anchor at which the first period begins; each window is measured forward from here. */\n startsAt: Scalars['ISO8601DateTime']['output'];\n};\n\n/** The connection type for WatcherLeadCap. */\nexport type WatcherLeadCapConnection = {\n __typename?: 'WatcherLeadCapConnection';\n /** A list of edges. */\n edges?: Maybe<Array<Maybe<WatcherLeadCapEdge>>>;\n /** A list of nodes. */\n nodes?: Maybe<Array<Maybe<WatcherLeadCap>>>;\n /** Information to aid in pagination. */\n pageInfo: PageInfo;\n /** Total number of items across all pages. */\n totalCount: Scalars['Int']['output'];\n};\n\n/** An edge in a connection. */\nexport type WatcherLeadCapEdge = {\n __typename?: 'WatcherLeadCapEdge';\n /** A cursor for use in pagination. */\n cursor: Scalars['String']['output'];\n /** The item at the end of the edge. */\n node?: Maybe<WatcherLeadCap>;\n};\n\n/**\n * Company-level ICP criteria, as submitted. Mirrors `WatcherOrganizationIcpInput`,\n * which in turn mirrors the subset of Atlas's `OrganizationFilterInput` an\n * upstream lead source can enforce.\n */\nexport type WatcherOrganizationIcp = {\n __typename?: 'WatcherOrganizationIcp';\n /**\n * Employee-count range the organization had to fall in, as `[min, max]`.\n * Flattened from the submitted filter's `overlaps`, the only operator creation\n * accepts — `contains` and `contained_by` describe querying a stored range and\n * are rejected, so there is nothing else to report.\n */\n companySize?: Maybe<Scalars['Range']['output']>;\n /** Mercator locations the organization had to belong to. */\n divisionIds?: Maybe<WatcherDivisionFilter>;\n /** Industry embedding filters, same `distance` handling as `WatcherContactIcp.jobTitle`. */\n industry?: Maybe<Array<EmbeddingFilter>>;\n};\n\n/**\n * Company-level ICP criteria, mirroring the subset of Atlas's\n * `OrganizationFilterInput` that an upstream lead source can enforce.\n */\nexport type WatcherOrganizationIcpInput = {\n /**\n * Employee-count range, e.g. `{ overlaps: [0, 100] }` for \"fewer than 100\n * employees\" or `{ overlaps: [1000] }` for \"1000+\". Mapped onto the headcount\n * buckets the upstream source accepts. `contains` / `contained_by` describe\n * querying a stored range and have no meaning at an external source, so they are rejected.\n */\n companySize?: InputMaybe<RangeFilterInput>;\n /** Mercator location division IDs the organization must belong to. Resolved to place names before being handed upstream. */\n divisionIds?: InputMaybe<IdFilterInput>;\n /**\n * Industry embedding filters. Each entry's `query` is embedded as a single\n * vector and matched semantically, so keep it to one semantic neighborhood:\n * related terms for a single sector in one string. Listing many sectors in one\n * query dilutes the vector and forces a looser `distance`, costing precision.\n * Entries combine with AND, never OR — create one watcher per sector instead.\n * Upstream sources honour only the *direction* of `distance` (`lt`/`lteq`\n * include, `gt`/`gteq` exclude); the numeric bound is enforced at delivery time,\n * and an entry without one constrains nothing there.\n */\n industry?: InputMaybe<Array<EmbeddingFilterInput>>;\n};\n\n/**\n * The identifier a provider's upstream service assigned to this Watcher. Internal\n * plumbing rather than customer-facing data: it is only actionable with that\n * provider's own API credentials, and it discloses which third party backs the\n * signal. Exposed for operational reconciliation and end-to-end testing.\n */\nexport type WatcherProviderReference = {\n __typename?: 'WatcherProviderReference';\n /** Identifier the upstream service uses for this Watcher — for Rodz, the provisioned Signal's id. */\n externalId: Scalars['String']['output'];\n /** Slug of the definition provider holding the reference, e.g. 'rodz'. */\n providerSlug: Scalars['String']['output'];\n};\n\n/** Delivery endpoint registered on a Watcher. Secrets are write-only — they are never returned by the API. */\nexport type WatcherWebhookInput = {\n /**\n * Whether this webhook should receive deliveries. Defaults to true; pass false\n * to register it without delivering events yet (e.g. for a paused or\n * credit-blocked routine), then activate it later via setWebhookActive.\n */\n active?: InputMaybe<Scalars['Boolean']['input']>;\n /** HMAC-SHA256 secret used to sign deliveries. Store this — it is not returned after creation. */\n secret: Scalars['String']['input'];\n /** URL that receives a POST payload when a signal fires. */\n url: Scalars['String']['input'];\n};\n\n/** Day of the week used to configure campaign sending schedules. */\nexport type WeekdayEnum =\n /** Friday. */\n | 'FRIDAY'\n /** Monday. */\n | 'MONDAY'\n /** Saturday. */\n | 'SATURDAY'\n /** Sunday. */\n | 'SUNDAY'\n /** Thursday. */\n | 'THURSDAY'\n /** Tuesday. */\n | 'TUESDAY'\n /** Wednesday. */\n | 'WEDNESDAY';\n\n/** Formality level used when generating messages for a campaign. */\nexport type WritingStyleFormalityEnum =\n /** Formal tone — polished and professional. */\n | 'FORMAL'\n /** Casual, friendly tone. */\n | 'FRIENDLY'\n /** Neutral tone — neither overly formal nor casual. */\n | 'NEUTRAL';\n\n/** Language used when generating messages for a campaign. */\nexport type WritingStyleLanguageEnum =\n /** Danish. */\n | 'DANISH'\n /** Dutch. */\n | 'DUTCH'\n /** English (United Kingdom). */\n | 'ENGLISH_UK'\n /** English (United States). */\n | 'ENGLISH_US'\n /** Finnish. */\n | 'FINNISH'\n /** French. */\n | 'FRENCH'\n /** German. */\n | 'GERMAN'\n /** Hebrew. */\n | 'HEBREW'\n /** Italian. */\n | 'ITALIAN'\n /** Norwegian. */\n | 'NORWEGIAN'\n /** Polish. */\n | 'POLISH'\n /** Portuguese (Brazil). */\n | 'PORTUGUESE_BR'\n /** Portuguese (Portugal). */\n | 'PORTUGUESE_PT'\n /** Romanian. */\n | 'ROMANIAN'\n /** Spanish. */\n | 'SPANISH'\n /** Swedish. */\n | 'SWEDISH'\n /** Turkish. */\n | 'TURKISH';\n\n/** Desired length of generated messages for a campaign. */\nexport type WritingStyleLengthEnum =\n /** Long messages — more detailed. */\n | 'LONG'\n /** Medium-length messages. */\n | 'MEDIUM'\n /** Short messages — concise and to the point. */\n | 'SHORT';\n\n/** Tone of voice used when generating messages for a campaign. */\nexport type WritingStyleToneOfVoiceEnum =\n /** Confident and assertive tone. */\n | 'CONFIDENT'\n /** Empathetic tone that acknowledges the reader. */\n | 'EMPATHETIC'\n /** Persuasive tone focused on convincing the reader. */\n | 'PERSUASIVE'\n /** Direct, no-nonsense tone. */\n | 'STRAIGHTFORWARD'\n /** Witty tone with light humor. */\n | 'WITTY';\n\nexport type Join__ContextArgument = {\n context: Scalars['String']['input'];\n name: Scalars['String']['input'];\n selection: Scalars['join__FieldValue']['input'];\n type: Scalars['String']['input'];\n};\n\nexport type Join__Graph =\n | 'ATLAS'\n | 'BILLING'\n | 'HERMES'\n | 'MERCATOR'\n | 'OUTREACH'\n | 'SIGNALS';\n\nexport type Link__Purpose =\n /** `EXECUTION` features provide metadata necessary for operation execution. */\n | 'EXECUTION'\n /** `SECURITY` features provide metadata necessary to securely resolve fields. */\n | 'SECURITY';\n\nexport type MeQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type MeQuery = { __typename?: 'Query', me?: { __typename?: 'Viewer', sub: string, email?: string | null, firstName?: string | null, lastName?: string | null } | null };\n\nexport type LogoutUrlQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type LogoutUrlQuery = { __typename?: 'Query', logoutUrl: string };\n\nexport type DeviceAuthorizeMutationVariables = Exact<{\n input: DeviceAuthorizeInput;\n}>;\n\n\nexport type DeviceAuthorizeMutation = { __typename?: 'Mutation', deviceAuthorize?: { __typename?: 'DeviceCodeResponse', deviceCode: string, expiresIn: number, interval: number, userCode: string, verificationUri: string, verificationUriComplete?: string | null } | null };\n\nexport type DeviceTokenMutationVariables = Exact<{\n input: DeviceTokenInput;\n}>;\n\n\nexport type DeviceTokenMutation = { __typename?: 'Mutation', deviceToken?: { __typename?: 'TokenResponse', accessToken?: string | null, error?: string | null, expiresIn?: number | null, idToken?: string | null, refreshToken?: string | null, tokenType?: string | null } | null };\n\nexport type RefreshTokenMutationVariables = Exact<{\n input: RefreshTokenInput;\n}>;\n\n\nexport type RefreshTokenMutation = { __typename?: 'Mutation', refreshToken?: { __typename?: 'TokenResponse', accessToken?: string | null, error?: string | null, expiresIn?: number | null, idToken?: string | null, refreshToken?: string | null, tokenType?: string | null } | null };\n\n\nexport const MeDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"Me\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"me\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sub\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"email\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"firstName\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"lastName\"}}]}}]}}]} as unknown as DocumentNode<MeQuery, MeQueryVariables>;\nexport const LogoutUrlDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"LogoutUrl\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"logoutUrl\"}}]}}]} as unknown as DocumentNode<LogoutUrlQuery, LogoutUrlQueryVariables>;\nexport const DeviceAuthorizeDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"DeviceAuthorize\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"DeviceAuthorizeInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"deviceAuthorize\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"deviceCode\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"expiresIn\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"interval\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"userCode\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"verificationUri\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"verificationUriComplete\"}}]}}]}}]} as unknown as DocumentNode<DeviceAuthorizeMutation, DeviceAuthorizeMutationVariables>;\nexport const DeviceTokenDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"DeviceToken\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"DeviceTokenInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"deviceToken\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"accessToken\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"error\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"expiresIn\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"idToken\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"refreshToken\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"tokenType\"}}]}}]}}]} as unknown as DocumentNode<DeviceTokenMutation, DeviceTokenMutationVariables>;\nexport const RefreshTokenDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"RefreshToken\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"RefreshTokenInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"refreshToken\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"accessToken\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"error\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"expiresIn\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"idToken\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"refreshToken\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"tokenType\"}}]}}]}}]} as unknown as DocumentNode<RefreshTokenMutation, RefreshTokenMutationVariables>;","/* eslint-disable */\nimport * as types from './graphql.js';\nimport type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size\n */\ntype Documents = {\n \"\\n query Me {\\n me {\\n sub\\n email\\n firstName\\n lastName\\n }\\n }\\n\": typeof types.MeDocument,\n \"\\n query LogoutUrl {\\n logoutUrl\\n }\\n\": typeof types.LogoutUrlDocument,\n \"\\n mutation DeviceAuthorize($input: DeviceAuthorizeInput!) {\\n deviceAuthorize(input: $input) {\\n deviceCode\\n expiresIn\\n interval\\n userCode\\n verificationUri\\n verificationUriComplete\\n }\\n }\\n\": typeof types.DeviceAuthorizeDocument,\n \"\\n mutation DeviceToken($input: DeviceTokenInput!) {\\n deviceToken(input: $input) {\\n accessToken\\n error\\n expiresIn\\n idToken\\n refreshToken\\n tokenType\\n }\\n }\\n\": typeof types.DeviceTokenDocument,\n \"\\n mutation RefreshToken($input: RefreshTokenInput!) {\\n refreshToken(input: $input) {\\n accessToken\\n error\\n expiresIn\\n idToken\\n refreshToken\\n tokenType\\n }\\n }\\n\": typeof types.RefreshTokenDocument,\n};\nconst documents: Documents = {\n \"\\n query Me {\\n me {\\n sub\\n email\\n firstName\\n lastName\\n }\\n }\\n\": types.MeDocument,\n \"\\n query LogoutUrl {\\n logoutUrl\\n }\\n\": types.LogoutUrlDocument,\n \"\\n mutation DeviceAuthorize($input: DeviceAuthorizeInput!) {\\n deviceAuthorize(input: $input) {\\n deviceCode\\n expiresIn\\n interval\\n userCode\\n verificationUri\\n verificationUriComplete\\n }\\n }\\n\": types.DeviceAuthorizeDocument,\n \"\\n mutation DeviceToken($input: DeviceTokenInput!) {\\n deviceToken(input: $input) {\\n accessToken\\n error\\n expiresIn\\n idToken\\n refreshToken\\n tokenType\\n }\\n }\\n\": types.DeviceTokenDocument,\n \"\\n mutation RefreshToken($input: RefreshTokenInput!) {\\n refreshToken(input: $input) {\\n accessToken\\n error\\n expiresIn\\n idToken\\n refreshToken\\n tokenType\\n }\\n }\\n\": types.RefreshTokenDocument,\n};\n\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n *\n *\n * @example\n * ```ts\n * const query = gql(`query GetUser($id: ID!) { user(id: $id) { name } }`);\n * ```\n *\n * The query argument is unknown!\n * Please regenerate the types.\n */\nexport function gql(source: string): unknown;\n\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function gql(source: \"\\n query Me {\\n me {\\n sub\\n email\\n firstName\\n lastName\\n }\\n }\\n\"): (typeof documents)[\"\\n query Me {\\n me {\\n sub\\n email\\n firstName\\n lastName\\n }\\n }\\n\"];\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function gql(source: \"\\n query LogoutUrl {\\n logoutUrl\\n }\\n\"): (typeof documents)[\"\\n query LogoutUrl {\\n logoutUrl\\n }\\n\"];\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function gql(source: \"\\n mutation DeviceAuthorize($input: DeviceAuthorizeInput!) {\\n deviceAuthorize(input: $input) {\\n deviceCode\\n expiresIn\\n interval\\n userCode\\n verificationUri\\n verificationUriComplete\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation DeviceAuthorize($input: DeviceAuthorizeInput!) {\\n deviceAuthorize(input: $input) {\\n deviceCode\\n expiresIn\\n interval\\n userCode\\n verificationUri\\n verificationUriComplete\\n }\\n }\\n\"];\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function gql(source: \"\\n mutation DeviceToken($input: DeviceTokenInput!) {\\n deviceToken(input: $input) {\\n accessToken\\n error\\n expiresIn\\n idToken\\n refreshToken\\n tokenType\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation DeviceToken($input: DeviceTokenInput!) {\\n deviceToken(input: $input) {\\n accessToken\\n error\\n expiresIn\\n idToken\\n refreshToken\\n tokenType\\n }\\n }\\n\"];\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function gql(source: \"\\n mutation RefreshToken($input: RefreshTokenInput!) {\\n refreshToken(input: $input) {\\n accessToken\\n error\\n expiresIn\\n idToken\\n refreshToken\\n tokenType\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation RefreshToken($input: RefreshTokenInput!) {\\n refreshToken(input: $input) {\\n accessToken\\n error\\n expiresIn\\n idToken\\n refreshToken\\n tokenType\\n }\\n }\\n\"];\n\nexport function gql(source: string) {\n return (documents as any)[source] ?? {};\n}\n\nexport type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;","/**\n * Auto-generated from backend/supergraph.graphql — do not edit manually.\n * Re-generate with: npx tsx scripts/generate-operations.ts\n */\nimport { gql } from '../generated/gql.ts';\n\n// ── Queries ──\n\nexport const LogoutUrl = gql(`\n query LogoutUrl {\n logoutUrl\n }\n`);\n\n// ── Mutations ──\n\nexport const DeviceAuthorize = gql(`\n mutation DeviceAuthorize($input: DeviceAuthorizeInput!) {\n deviceAuthorize(input: $input) {\n deviceCode\n expiresIn\n interval\n userCode\n verificationUri\n verificationUriComplete\n }\n }\n`);\n\nexport const DeviceToken = gql(`\n mutation DeviceToken($input: DeviceTokenInput!) {\n deviceToken(input: $input) {\n accessToken\n error\n expiresIn\n idToken\n refreshToken\n tokenType\n }\n }\n`);\n\nexport const RefreshToken = gql(`\n mutation RefreshToken($input: RefreshTokenInput!) {\n refreshToken(input: $input) {\n accessToken\n error\n expiresIn\n idToken\n refreshToken\n tokenType\n }\n }\n`);\n","/**\n * Runtime GraphQL query builder.\n * Dynamically constructs operations from an introspected schema\n * with user-controlled depth and field selection.\n */\nimport {\n isEnumType,\n isInterfaceType,\n isListType,\n isNonNullType,\n isObjectType,\n isScalarType,\n isUnionType,\n type GraphQLNamedType,\n type GraphQLOutputType,\n type GraphQLSchema,\n} from 'graphql';\n\n// ── Helpers ──\n\nfunction unwrap(type: GraphQLOutputType): GraphQLNamedType {\n if (isNonNullType(type)) return unwrap(type.ofType);\n if (isListType(type)) return unwrap(type.ofType);\n return type as GraphQLNamedType;\n}\n\nfunction isLeaf(type: GraphQLNamedType): boolean {\n return isScalarType(type) || isEnumType(type);\n}\n\nfunction ucfirst(s: string): string {\n return s.charAt(0).toUpperCase() + s.slice(1);\n}\n\n// Payload types where `id` often fails at runtime\nconst PAYLOAD_TYPE_PATTERN = /(?:Response|Payload|MutationPayload)$/;\n\n// ── Selection set builder ──\n\nexport interface QueryOptions {\n /** Max nesting depth for sub-objects (default: 0) */\n depth?: number;\n /** Only include these fields (dot-notation for nested, e.g. \"organization.name\") */\n fields?: string[];\n /** Exclude these fields (dot-notation for nested) */\n exclude?: string[];\n}\n\nfunction buildSelections(\n type: GraphQLNamedType,\n schema: GraphQLSchema,\n depth: number,\n exclude: Set<string>,\n prefix: string,\n visited: Set<string>,\n): string[] {\n if (!isObjectType(type)) return [];\n if (visited.has(type.name)) return [];\n visited.add(type.name);\n\n const fields = type.getFields();\n const lines: string[] = [];\n const isPayload = PAYLOAD_TYPE_PATTERN.test(type.name);\n\n // Relay Connection pattern. The connection/`nodes` wrapper is not a semantic\n // nesting level, so the node type inherits the caller's `depth` unchanged —\n // otherwise object fields on the node (e.g. Contact.organization) would never\n // be selected regardless of --depth.\n if (type.name.endsWith('Connection') && fields.nodes && fields.pageInfo) {\n const nodesType = unwrap(fields.nodes.type);\n const nodeSelections = buildSelections(nodesType, schema, depth, exclude, `${prefix}nodes.`, new Set(visited));\n if (nodeSelections.length === 0) return [];\n lines.push(`nodes {`);\n for (const sel of nodeSelections) lines.push(` ${sel}`);\n lines.push(`}`);\n lines.push(`pageInfo {`);\n lines.push(` hasNextPage`);\n lines.push(` endCursor`);\n lines.push(`}`);\n if (fields.totalCount) lines.push(`totalCount`);\n return lines;\n }\n\n for (const [name, field] of Object.entries(fields)) {\n if (name.startsWith('__')) continue;\n if (name === 'id' && isPayload) continue;\n\n const fullPath = `${prefix}${name}`;\n if (exclude.has(fullPath) || exclude.has(name)) continue;\n\n // Skip fields with required arguments\n const hasRequiredArgs = field.args.some((a) => isNonNullType(a.type) && a.defaultValue === undefined);\n if (hasRequiredArgs) continue;\n\n const namedType = unwrap(field.type);\n\n if (isLeaf(namedType)) {\n lines.push(name);\n } else if (isObjectType(namedType) && depth > 0) {\n const subSelections = buildSelections(namedType, schema, depth - 1, exclude, `${fullPath}.`, new Set(visited));\n if (subSelections.length > 0) {\n lines.push(`${name} {`);\n for (const sel of subSelections) lines.push(` ${sel}`);\n lines.push(`}`);\n }\n }\n // Skip interfaces, unions at sub-levels\n }\n\n return lines;\n}\n\n// ── Public API ──\n\nexport interface BuiltQuery {\n query: string;\n variables: Record<string, unknown>;\n /** The root field name (e.g. \"agency\", \"createChat\") */\n fieldName: string;\n}\n\n/**\n * Build a GraphQL query/mutation string for a root operation field.\n *\n * @param schema - The introspected GraphQL schema\n * @param kind - \"query\" or \"mutation\"\n * @param fieldName - The root field name (e.g. \"agency\", \"createChat\")\n * @param variables - Variable values to send\n * @param options - Depth, field inclusion/exclusion\n */\nexport function buildQuery(\n schema: GraphQLSchema,\n kind: 'query' | 'mutation',\n fieldName: string,\n variables: Record<string, unknown>,\n options: QueryOptions = {},\n): BuiltQuery {\n const rootType = kind === 'query' ? schema.getQueryType() : schema.getMutationType();\n if (!rootType) throw new Error(`No ${kind} type in schema`);\n\n const field = rootType.getFields()[fieldName];\n if (!field) throw new Error(`Unknown ${kind} field: ${fieldName}`);\n\n const depth = options.depth ?? 0;\n const exclude = new Set(options.exclude ?? []);\n\n const returnType = unwrap(field.type);\n\n // Build variable definitions from the field's arguments\n const allArgs = field.args;\n\n const varDefsInner = allArgs.map((a) => `$${a.name}: ${a.type.toString()}`).join(', ');\n const fieldArgsInner = allArgs.map((a) => `${a.name}: $${a.name}`).join(', ');\n const varDefs = allArgs.length > 0 ? `(${varDefsInner})` : '';\n const fieldArgs = allArgs.length > 0 ? `(${fieldArgsInner})` : '';\n\n // Build selection set\n let selectionBody: string;\n if (isLeaf(returnType) || isInterfaceType(returnType) || isUnionType(returnType)) {\n // Scalar return or interface/union — no sub-selections\n selectionBody = ` ${fieldName}${fieldArgs}`;\n } else {\n // Filter fields if --fields is provided\n let selections: string[];\n if (options.fields && options.fields.length > 0) {\n selections = buildFieldsFromList(returnType, schema, options.fields);\n } else {\n selections = buildSelections(returnType, schema, depth, exclude, '', new Set());\n }\n\n if (selections.length === 0) {\n // Fallback: at minimum select __typename\n selectionBody = ` ${fieldName}${fieldArgs} {\\n __typename\\n }`;\n } else {\n const indent = ' ';\n const body = selections.map((s) => `${indent}${s}`).join('\\n');\n selectionBody = ` ${fieldName}${fieldArgs} {\\n${body}\\n }`;\n }\n }\n\n const opName = ucfirst(fieldName);\n const query = `${kind} ${opName}${varDefs} {\\n${selectionBody}\\n }`;\n\n return { query, variables, fieldName };\n}\n\n/**\n * Build selections from an explicit field list (e.g. --fields id,name,slug).\n */\nfunction buildFieldsFromList(type: GraphQLNamedType, schema: GraphQLSchema, fieldPaths: string[]): string[] {\n if (!isObjectType(type)) return [];\n const fields = type.getFields();\n\n // Relay Connection pattern — unwrap to the node type\n if (type.name.endsWith('Connection') && fields.nodes && fields.pageInfo) {\n const nodesType = unwrap(fields.nodes.type);\n const nodeSelections = buildFieldsFromList(nodesType, schema, fieldPaths);\n if (nodeSelections.length === 0) return [];\n const lines: string[] = [];\n lines.push('nodes {');\n for (const sel of nodeSelections) lines.push(` ${sel}`);\n lines.push('}');\n lines.push('pageInfo {');\n lines.push(' hasNextPage');\n lines.push(' endCursor');\n lines.push('}');\n if (fields.totalCount) lines.push('totalCount');\n return lines;\n }\n\n const lines: string[] = [];\n\n // Group by top-level field\n const grouped = new Map<string, string[]>();\n for (const fp of fieldPaths) {\n const [top, ...rest] = fp.split('.');\n if (!grouped.has(top)) grouped.set(top, []);\n if (rest.length > 0) grouped.get(top)!.push(rest.join('.'));\n }\n\n for (const [name, subPaths] of grouped) {\n const field = fields[name];\n if (!field) continue;\n\n const namedType = unwrap(field.type);\n if (isLeaf(namedType)) {\n lines.push(name);\n } else if (isObjectType(namedType) && subPaths.length > 0) {\n const subSelections = buildFieldsFromList(namedType, schema, subPaths);\n if (subSelections.length > 0) {\n lines.push(`${name} {`);\n for (const sel of subSelections) lines.push(` ${sel}`);\n lines.push(`}`);\n }\n }\n }\n\n return lines;\n}\n","import { type UserContext } from './config.ts';\n\n/**\n * Resolve the active company id for a request.\n *\n * Resolution order:\n * 1. --company-id flag\n * 2. config.companyId\n */\nexport function resolveCompanyId(opts: {\n companyId?: string | undefined;\n ctx: UserContext | undefined;\n}): string | undefined {\n return opts.companyId || opts.ctx?.companyId;\n}\n","import { Command } from 'commander';\n\nimport { graphql, graphqlUnauthenticated } from '../graphql/client.ts';\nimport { Me } from '../graphql/operations/common.ts';\nimport { DeviceAuthorize, DeviceToken } from '../graphql/operations/hermes.ts';\nimport { saveCredentials } from '../lib/auth.ts';\nimport { openBrowser } from '../lib/browser.ts';\nimport { saveConfig } from '../lib/config.ts';\nimport { error, hint, info, success } from '../lib/output.ts';\n\n// TODO: fetch the set of available API scopes dynamically (e.g. from Hermes'\n// resource server) once the backend exposes them. For now the CLI requests a\n// fixed superset so users can exercise every subgraph. Auth0 RBAC grants the\n// intersection of requested scopes and the user's assigned permissions by EXACT\n// string match — wildcards are not expanded, and unmatched scopes are dropped\n// silently. The list below must therefore contain every permission name the\n// terraform-auth0 roles can hold (superadmin `*:*`, admin `*:read`, sales\n// granular grants), not just the broadest wildcard per service.\nconst API_SCOPES = [\n 'atlas/*:*',\n 'atlas/*:read',\n 'core/*:*',\n 'core/*:read',\n 'signals/*:*',\n 'signals/*:read',\n 'billing/*:*',\n 'billing/*:read',\n 'billing/offer:*',\n];\nconst DEFAULT_SCOPE = `openid profile email offline_access ${API_SCOPES.join(' ')}`;\n\nfunction sleep(ms: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, ms));\n}\n\nasync function setupUserContext(endpoint?: string): Promise<void> {\n const userData = await graphql(Me, undefined, { endpoint });\n const user = userData.me;\n if (!user) return;\n\n saveConfig({ oauthId: user.sub ?? undefined });\n info('');\n info(` User: ${user.firstName} ${user.lastName} <${user.email}>`);\n hint('Run `sl whoami` to verify.');\n}\n\nexport const loginCommand = new Command('login')\n .summary('Log in to your Sortlist account')\n .description(\n 'Log in to your Sortlist account\\n\\n' +\n 'Opens a browser to complete authentication, then saves your\\n' +\n \"credentials locally. If you belong to multiple companies, you'll\\n\" +\n 'be prompted to pick one.\\n\\n' +\n 'Examples:\\n' +\n ' sl login Log in with default settings\\n' +\n ' sl login --no-browser Print the login URL instead of opening it',\n )\n .option('--scope <scope>', 'OAuth scope', DEFAULT_SCOPE)\n .option('--no-browser', 'Print the login URL instead of opening a browser')\n .action(async function (this: Command) {\n const opts = this.optsWithGlobals();\n\n info('Starting device authorization...');\n\n const authData = await graphqlUnauthenticated(DeviceAuthorize, { input: { scope: opts.scope } }, opts.endpoint);\n\n const device = authData.deviceAuthorize;\n if (!device) {\n error('Device authorization failed — the server returned an empty response.');\n hint('Check your network connection and try again.');\n hint('If the problem persists, verify the endpoint: sl config show');\n process.exit(2);\n }\n\n const url = device.verificationUriComplete ?? device.verificationUri;\n info('');\n info(` Open this URL in your browser:`);\n info(` ${url}`);\n info('');\n info(` Enter code: ${device.userCode}`);\n info('');\n\n if (opts.browser) {\n openBrowser(url);\n info(' (Browser opened automatically)');\n info('');\n }\n\n info('Waiting for you to complete login in the browser...');\n\n let interval = device.interval * 1000;\n const deadline = Date.now() + device.expiresIn * 1000;\n\n while (Date.now() < deadline) {\n await sleep(interval);\n\n const tokenData = await graphqlUnauthenticated(\n DeviceToken,\n { input: { deviceCode: device.deviceCode } },\n opts.endpoint,\n );\n\n const token = tokenData.deviceToken;\n if (!token) {\n error('Token exchange failed — the server returned an empty response.');\n hint('Try running `sl login` again.');\n process.exit(2);\n }\n\n if (token.error === 'authorization_pending') {\n continue;\n }\n\n if (token.error === 'slow_down') {\n interval += 5000;\n continue;\n }\n\n if (token.error === 'expired_token') {\n error('The login code expired before you completed authentication.');\n hint('Run `sl login` to generate a new code.');\n process.exit(2);\n }\n\n if (token.error === 'access_denied') {\n error('Access was denied during authentication.');\n hint('Make sure you approved the request in the browser.');\n hint('If you denied it by mistake, run `sl login` to try again.');\n process.exit(2);\n }\n\n if (token.error) {\n error(`Authentication failed (${token.error}).`);\n hint('Run `sl login` to try again.');\n process.exit(2);\n }\n\n if (token.accessToken && token.refreshToken && token.idToken && token.expiresIn) {\n saveCredentials({\n accessToken: token.accessToken,\n refreshToken: token.refreshToken,\n idToken: token.idToken,\n expiresAt: Math.floor(Date.now() / 1000) + token.expiresIn,\n });\n\n success('Logged in successfully.');\n await setupUserContext(opts.endpoint);\n return;\n }\n }\n\n error('Authentication timed out — no response from the browser.');\n hint('Run `sl login` to start a new session.');\n process.exit(2);\n });\n","/**\n * Hand-maintained typed operations used by non-generated commands.\n * These need gql() for TypedDocumentNode inference.\n */\nimport { gql } from '../generated/gql.ts';\n\nexport const Me = gql(`\n query Me {\n me {\n sub\n email\n firstName\n lastName\n }\n }\n`);\n","import { execFile } from 'node:child_process';\n\nexport function openBrowser(url: string): void {\n if (process.platform === 'win32') {\n // `start` is a cmd built-in; the empty string is the window title slot.\n execFile('cmd', ['/c', 'start', '', url], () => {});\n return;\n }\n const cmd = process.platform === 'darwin' ? 'open' : 'xdg-open';\n execFile(cmd, [url], () => {});\n}\n","import { Command } from 'commander';\n\nimport { graphqlUnauthenticated } from '../graphql/client.ts';\nimport { LogoutUrl } from '../graphql/operations/hermes.ts';\nimport { clearCredentials } from '../lib/auth.ts';\nimport { openBrowser } from '../lib/browser.ts';\nimport { clearIdentity } from '../lib/config.ts';\nimport { hint, info, success, warn } from '../lib/output.ts';\n\nexport const logoutCommand = new Command('logout')\n .summary('Log out and remove stored credentials')\n .description(\n 'Log out and remove stored credentials\\n\\n' +\n 'Deletes the saved tokens from ~/.sortlist/credentials.json and\\n' +\n 'opens the Auth0 logout URL in your browser so the next `sl login`\\n' +\n \"doesn't silently reuse the previous account.\\n\\n\" +\n 'Examples:\\n' +\n ' sl logout Clear credentials and log out of Auth0\\n' +\n ' sl logout --no-browser Only clear local credentials',\n )\n .option('--no-browser', 'Skip opening the Auth0 logout URL in a browser')\n .action(async function (this: Command) {\n const opts = this.optsWithGlobals();\n\n clearCredentials();\n clearIdentity();\n success('Logged out — credentials removed.');\n\n if (!opts.browser) {\n hint('Run `sl login` to authenticate again.');\n return;\n }\n\n try {\n const data = await graphqlUnauthenticated(LogoutUrl, {}, opts.endpoint);\n if (data.logoutUrl) {\n openBrowser(data.logoutUrl);\n info('Opened Auth0 logout in your browser.');\n }\n } catch {\n warn('Could not fetch the Auth0 logout URL — skipped browser logout.');\n }\n\n hint('Run `sl login` to authenticate again.');\n });\n","import { Command } from 'commander';\n\nimport { ensureAuthenticated, isExpired } from '../lib/auth.ts';\nimport { error, hint } from '../lib/output.ts';\n\nexport const tokenCommand = new Command('token')\n .summary('Print your current access token to stdout')\n .description(\n 'Print your current access token to stdout\\n\\n' +\n 'Useful for piping into other tools or scripts.\\n\\n' +\n 'Examples:\\n' +\n ' sl token Print the token\\n' +\n ' curl -H \"Authorization: Bearer $(sl token)\" ...',\n )\n .action(() => {\n const creds = ensureAuthenticated();\n if (isExpired(creds)) {\n error('Your access token has expired.');\n hint('Run `sl login` to re-authenticate.');\n process.exit(2);\n }\n process.stdout.write(creds.accessToken);\n });\n","import { Command } from 'commander';\n\nimport { graphql, GraphQLRequestError } from '../graphql/client.ts';\nimport { Me } from '../graphql/operations/common.ts';\nimport { error, hint, info, isJsonMode, printJson } from '../lib/output.ts';\n\nexport const whoamiCommand = new Command('whoami')\n .summary(\"Show who you're currently logged in as\")\n .description(\n \"Show who you're currently logged in as\\n\\n\" +\n 'Displays your name and email. Use --json for machine-readable output.\\n\\n' +\n 'Examples:\\n' +\n ' sl whoami Show your identity\\n' +\n ' sl whoami --json Output full user object as JSON',\n )\n .action(async function (this: Command) {\n const opts = this.optsWithGlobals();\n\n let data;\n try {\n data = await graphql(Me, undefined, {\n endpoint: opts.endpoint,\n throwOnError: true,\n });\n } catch (err) {\n if (err instanceof GraphQLRequestError) {\n error('Could not verify your identity — the API returned an error:');\n const messages = err.graphqlErrors?.map((e) => e.message) ?? [err.message];\n for (const message of messages) info(` ${message}`);\n hint('This is a server-side or authorization error, not necessarily an expired session.');\n hint('Retry in a moment; if it persists, re-run `sl login` or report it.');\n process.exit(1);\n }\n throw err;\n }\n\n const user = data.me;\n if (!user) {\n // A successful `me` for a logged-in user is never null — the resolver\n // returns the calling user. Null here means the backend could not resolve\n // the account (e.g. an upstream identity/profile lookup failed), not that\n // the local session is invalid, so we do not tell the user to log in again.\n error('The API did not return your user identity.');\n hint('This is usually a temporary backend issue rather than an expired session.');\n hint('Retry in a moment; if it persists, re-run `sl login` or report it.');\n process.exit(1);\n }\n\n if (isJsonMode(opts)) {\n printJson(user);\n return;\n }\n\n info(`${user.firstName} ${user.lastName} <${user.email}> (sub: ${user.sub})`);\n });\n","/**\n * Runtime schema introspection.\n *\n * Fetches the schema from the federation endpoint via an introspection query,\n * caches it on disk at ~/.sortlist/schema.json, and returns a GraphQLSchema\n * together with a field → subgraph map derived from the `@join__field`\n * directives the router injects into introspection responses.\n */\nimport { createHash } from 'node:crypto';\nimport fs from 'node:fs';\nimport os from 'node:os';\nimport path from 'node:path';\nimport { buildClientSchema, getIntrospectionQuery, type GraphQLSchema, type IntrospectionQuery } from 'graphql';\n\nimport { loadCredentials } from '../lib/auth.ts';\nimport { getEndpoint } from '../lib/config.ts';\n\nconst CACHE_DIR = path.join(os.homedir(), '.sortlist');\nconst CACHE_PATH = path.join(CACHE_DIR, 'schema.json');\nconst CACHE_TTL_MS = 60 * 60 * 1000; // 1 hour\n\nexport type FieldServiceMap = Map<string, Map<string, string>>;\n\nexport interface IntrospectedSchema {\n schema: GraphQLSchema;\n fieldServices: FieldServiceMap;\n /** All subgraph names observed in the supergraph, regardless of scope visibility. */\n services: Set<string>;\n}\n\nlet cached: IntrospectedSchema | null = null;\n\n/**\n * The router injects `appliedDirectives` into introspection responses — this\n * isn't a standard introspection field, so we read it from the raw JSON.\n */\ninterface RawField {\n name: string;\n appliedDirectives?: Array<{\n name: string;\n args: Array<{ name: string; value: unknown }>;\n }>;\n}\n\ninterface RawType {\n name: string;\n fields?: RawField[];\n}\n\ninterface RawIntrospection {\n __schema: {\n queryType?: { name: string } | null;\n mutationType?: { name: string } | null;\n types: RawType[];\n };\n}\n\ninterface CacheEnvelope {\n endpoint: string;\n fetchedAt: number;\n /** Short fingerprint of the access token so schemas for different scopes don't collide. */\n tokenFingerprint: string;\n introspection: IntrospectionQuery;\n raw: RawIntrospection;\n}\n\nfunction tokenFingerprint(token: string | null): string {\n if (!token) return 'anonymous';\n return createHash('sha256').update(token).digest('hex').slice(0, 16);\n}\n\nfunction readCache(\n endpoint: string,\n token: string | null,\n): { introspection: IntrospectionQuery; raw: RawIntrospection } | null {\n try {\n const text = fs.readFileSync(CACHE_PATH, 'utf-8');\n const envelope: CacheEnvelope = JSON.parse(text);\n if (envelope.endpoint !== endpoint) return null;\n if (envelope.tokenFingerprint !== tokenFingerprint(token)) return null;\n if (Date.now() - envelope.fetchedAt > CACHE_TTL_MS) return null;\n if (!envelope.raw) return null;\n return { introspection: envelope.introspection, raw: envelope.raw };\n } catch {\n return null;\n }\n}\n\nfunction writeCache(\n endpoint: string,\n token: string | null,\n introspection: IntrospectionQuery,\n raw: RawIntrospection,\n): void {\n try {\n if (!fs.existsSync(CACHE_DIR)) {\n fs.mkdirSync(CACHE_DIR, { recursive: true });\n }\n const envelope: CacheEnvelope = {\n endpoint,\n fetchedAt: Date.now(),\n tokenFingerprint: tokenFingerprint(token),\n introspection,\n raw,\n };\n fs.writeFileSync(CACHE_PATH, JSON.stringify(envelope));\n } catch {\n // Non-fatal — worst case we re-fetch next time\n }\n}\n\nasync function fetchIntrospection(\n endpoint: string,\n token: string | null,\n): Promise<{ introspection: IntrospectionQuery; raw: RawIntrospection }> {\n const headers: Record<string, string> = {\n 'Content-Type': 'application/json',\n 'X-API-Client': 'sl-cli',\n };\n if (token) headers['Authorization'] = `Bearer ${token}`;\n\n const res = await fetch(endpoint, {\n method: 'POST',\n headers,\n body: JSON.stringify({ query: getIntrospectionQuery() }),\n });\n\n if (!res.ok) {\n throw new Error(`Introspection failed: HTTP ${res.status} ${res.statusText}`);\n }\n\n const json = (await res.json()) as {\n data?: IntrospectionQuery & RawIntrospection;\n errors?: Array<{ message: string }>;\n };\n\n if (json.errors?.length) {\n throw new Error(`Introspection errors: ${json.errors.map((e) => e.message).join(', ')}`);\n }\n\n if (!json.data) {\n throw new Error('Introspection returned no data');\n }\n\n return { introspection: json.data as IntrospectionQuery, raw: json.data as RawIntrospection };\n}\n\n/**\n * Walk the raw introspection response and build:\n * - a `typeName → fieldName → subgraph` map from `@join__field(graph: ...)` directives\n * - the full set of subgraph names observed anywhere in the response (including types\n * whose root-fields were hidden by scope filtering — still useful so the CLI can\n * expose empty sub-commands that explain the scope gap)\n */\nfunction parseIntrospection(raw: RawIntrospection): { fieldServices: FieldServiceMap; services: Set<string> } {\n const fieldServices: FieldServiceMap = new Map();\n const services = new Set<string>();\n\n for (const type of raw.__schema.types ?? []) {\n if (!type.fields?.length) continue;\n\n let fieldMap: Map<string, string> | null = null;\n\n for (const field of type.fields) {\n const directive = field.appliedDirectives?.find((d) => d.name === 'join__field');\n if (!directive) continue;\n const graphArg = directive.args.find((a) => a.name === 'graph');\n if (!graphArg || typeof graphArg.value !== 'string') continue;\n services.add(graphArg.value);\n if (!fieldMap) fieldMap = new Map();\n fieldMap.set(field.name, graphArg.value);\n }\n\n if (fieldMap) fieldServices.set(type.name, fieldMap);\n }\n\n return { fieldServices, services };\n}\n\n/**\n * Fetches and caches the schema via introspection. Returns the built schema\n * along with a map of root-field → subgraph name used for CLI service grouping.\n *\n * @param endpointOverride - Override the configured endpoint URL\n */\nfunction currentAccessToken(): string | null {\n return loadCredentials()?.accessToken ?? null;\n}\n\nexport async function getIntrospectedSchema(endpointOverride?: string): Promise<IntrospectedSchema> {\n if (cached) return cached;\n\n const endpoint = getEndpoint(endpointOverride);\n const token = currentAccessToken();\n\n const fromCache = readCache(endpoint, token);\n if (fromCache) {\n const { fieldServices, services } = parseIntrospection(fromCache.raw);\n cached = {\n schema: buildClientSchema(fromCache.introspection),\n fieldServices,\n services,\n };\n return cached;\n }\n\n const { introspection, raw } = await fetchIntrospection(endpoint, token);\n writeCache(endpoint, token, introspection, raw);\n const { fieldServices, services } = parseIntrospection(raw);\n cached = {\n schema: buildClientSchema(introspection),\n fieldServices,\n services,\n };\n return cached;\n}\n\n/**\n * Force-refresh the cached schema, bypassing the disk cache.\n */\nexport async function refreshSchema(endpointOverride?: string): Promise<IntrospectedSchema> {\n cached = null;\n try {\n fs.unlinkSync(CACHE_PATH);\n } catch {\n // already gone\n }\n\n const endpoint = getEndpoint(endpointOverride);\n const token = currentAccessToken();\n const { introspection, raw } = await fetchIntrospection(endpoint, token);\n writeCache(endpoint, token, introspection, raw);\n const { fieldServices, services } = parseIntrospection(raw);\n cached = {\n schema: buildClientSchema(introspection),\n fieldServices,\n services,\n };\n return cached;\n}\n","import { execFileSync } from 'node:child_process';\n\nimport { isLocalDev } from './env.ts';\nimport { error, hint, info, success, warn } from './output.ts';\nimport { pkg } from './package-root.ts';\n\nconst PACKAGE_NAME = '@sortlist/cli';\n\nfunction getCurrentVersion(): string {\n return pkg.version;\n}\n\nasync function fetchLatestVersion(): Promise<string | null> {\n try {\n const controller = new AbortController();\n const timeout = setTimeout(() => controller.abort(), 3000);\n const res = await fetch(`https://registry.npmjs.org/${encodeURIComponent(PACKAGE_NAME)}/latest`, {\n signal: controller.signal,\n });\n clearTimeout(timeout);\n if (!res.ok) return null;\n const data = (await res.json()) as { version: string };\n return data.version;\n } catch {\n return null;\n }\n}\n\nfunction parseSemver(version: string): [number, number, number] {\n const [major, minor, patch] = version.split('.').map(Number);\n return [major ?? 0, minor ?? 0, patch ?? 0];\n}\n\nfunction autoUpdate(current: string, latest: string): void {\n info(`Updating ${PACKAGE_NAME}: ${current} \\u2192 ${latest}...`);\n\n try {\n // Clean stale temp directories that cause ENOTEMPTY errors. npm stages a\n // package under a sibling `.<name>-<hash>` dir; for scoped names the dot\n // sits on the final segment, e.g. `@sortlist/.cli-<hash>`.\n const prefix = execFileSync('npm', ['prefix', '-g'], { stdio: 'pipe', encoding: 'utf-8' }).trim();\n const lastSlash = PACKAGE_NAME.lastIndexOf('/');\n const scope = lastSlash === -1 ? '' : `${PACKAGE_NAME.slice(0, lastSlash)}/`;\n const name = lastSlash === -1 ? PACKAGE_NAME : PACKAGE_NAME.slice(lastSlash + 1);\n const staleDir = `${prefix}/lib/node_modules/${scope}.${name}-`;\n execFileSync('sh', ['-c', `rm -rf \"${staleDir}\"* 2>/dev/null || true`], { stdio: 'pipe' });\n\n execFileSync('npm', ['install', '-g', '--prefer-online', `${PACKAGE_NAME}@${latest}`], {\n stdio: 'pipe',\n });\n success(`Updated to ${latest}. Restart \\`sl\\` to use the new version.`);\n } catch (err) {\n const stderr = err && typeof err === 'object' && 'stderr' in err ? String(err.stderr).trim() : '';\n const detail = stderr ? ` (${stderr.split('\\n')[0]})` : '';\n warn(`Auto-update failed${detail}.`);\n hint(`Run \\`npm i -g ${PACKAGE_NAME}\\` to update manually.`);\n }\n}\n\n/**\n * Checks npm for the latest version.\n * - Major mismatch: blocks execution and exits.\n * - Minor/patch mismatch: auto-updates with a spinner, then continues.\n */\nexport async function checkForUpdates(): Promise<void> {\n if (isLocalDev) return;\n\n const current = getCurrentVersion();\n const latest = await fetchLatestVersion();\n if (!latest || latest === current) return;\n\n const [curMajor] = parseSemver(current);\n const [latMajor] = parseSemver(latest);\n\n if (latMajor > curMajor) {\n error(`Breaking update: ${current} \\u2192 ${latest}`);\n info('');\n info(' Your CLI is incompatible with the current API.');\n info(' Update before continuing:');\n info('');\n info(` npm i -g ${PACKAGE_NAME}`);\n info('');\n process.exit(1);\n }\n\n autoUpdate(current, latest);\n}\n"],"mappings":";AAAA,SAAS,WAAAA,gBAAe;;;ACAxB,SAAS,eAAe;;;ACAxB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,UAAU;;;ACAjB,SAAS,eAAwB;AAC/B,SAA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ACF,QAAM,EAAE,QAAQ,cAAc,IAAI,MAAM,sBAAsB,gBAAgB;AAC9E,QAAM,kBAAkB,qBAAqB,QAAQ,aAAa;AAElE,QAAM,kBAAkB,oBAAI,IAAkE;AAE9F,aAAW,CAAC,MAAM,KAAK,KAAK,iBAAiB;AAC3C,UAAM,MAAM,MAAM;AAClB,YAAQ,WAAW,GAAG;AACtB,oBAAgB,IAAI,MAAM;AAAA,MACxB,cAAc,MAAM;AAAA,MACpB,aAAa,IAAI,YAAY;AAAA,IAC/B,CAAC;AAAA,EACH;AAEA,UAAQ,YAAY,qBAAqB,eAAe,CAAC;AAC3D,SAAS,KAAK;AAEZ,QAAM,UAAW,IAAc;AAC/B,MAAI,CAAC,QAAQ,KAAK,KAAK,CAAC,MAAM,CAAC,SAAS,UAAU,UAAU,SAAS,UAAU,QAAQ,EAAE,SAAS,CAAC,CAAC,GAAG;AACrG,UAAM,2BAA2B,OAAO,EAAE;AAC1C,SAAK,4DAA4D;AACjE,SAAK,2DAA2D;AAChE,YAAQ,KAAK,CAAC;AAAA,EAChB;AACF;AAEA,wBAAwB,OAAO;AAE/B,MAAM,gBAAgB;AAEtB,IAAI;AACF,QAAM,QAAQ,WAAW,QAAQ,IAAI;AACvC,SAAS,KAAK;AACZ,EAAAC,kBAAiB,GAAG;AACpB,QAAM,YAAY;AAClB,QAAM;AACR;AAEA,MAAM,YAAY;","names":["Command","fs","os","path","ensureDir","fs","path","fs","path","fs","path","Command","isEnumType","isInterfaceType","isListType","isNonNullType","isObjectType","isScalarType","isUnionType","captureException","error","addBreadcrumb","addBreadcrumb","captureException","hasFieldError","lines","unwrap","isNonNullType","isListType","ucfirst","isEnumType","isObjectType","isScalarType","Command","ansi","c","isInterfaceType","isUnionType","Command","Command","Command","Command","Command","Command","Command","Command","fs","os","path","path","os","fs","endpointOverride","fieldServices","services","useColor","ansi","info","Command","captureException"]}
|