unfazed 0.6.1 → 0.8.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/generated/graphql.ts"],"names":[],"mappings":"AA+gBA,MAAM,OAAO,mBACX,SAAQ,MAAM;IAGd,SAAS,CAAyE;IAC1E,KAAK,CAAS;IACf,QAAQ,CAAmC;IAElD,YAAY,KAAa,EAAE,QAA0C;QACnE,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEQ,QAAQ;QACf,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AACD,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;KA0B9D,EAAE,EAAC,cAAc,EAAC,kBAAkB,EAAC,CAAsE,CAAC;AACjH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0DvD,EAAE,EAAC,cAAc,EAAC,WAAW,EAAC,CAA+D,CAAC;AACnG,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;KAyBpD,CAA4E,CAAC;AAClF,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;KAa7D,CAAoG,CAAC;AAC1G,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;KAW5D,CAA4F,CAAC;AAClG,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;KAQ7D,CAAoG,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C1F,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;KAU3D,CAA0F,CAAC;AAChG,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8D1D,CAAwF,CAAC;AAC3F,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8D5D,CAA4F,CAAC;AAC/F,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;KAS1D,CAAwF,CAAC","sourcesContent":["/* eslint-disable */\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/**\n * Inlined from @graphql-typed-document-node/core by scripts/postcodegen.ts so\n * this package ships with zero dependencies, type-only ones included.\n * Structurally identical to the upstream interface.\n */\ninterface DocumentTypeDecoration<TResult, TVariables> {\n __apiType?: (variables: TVariables) => TResult;\n}\n/** A box's requested VM size. Omitted fields use the platform default. */\nexport type BoxResourcesInput = {\n /** Persistent disk in GiB (default 8, max 64). Applies only when the disk is first created; an existing disk keeps its size. */\n diskGiB?: number | null | undefined;\n /** RAM in MiB (default 2048, min 512, max 16384). */\n memMiB?: number | null | undefined;\n /** vCPU count (default 2, max 8). */\n vcpus?: number | null | undefined;\n};\n\n/**\n * Creates a deployment from the workspace's current files. The build is driven by\n * an optional root unfazed.json: STATIC serves the files as-is unless unfazed.json\n * sets build (a command run in the build VM) + output (publish dir, default \"dist\"\n * when build is set; output with no build republishes a committed dir like dist/ as\n * is); SERVICE bundles server.ts by default, or the entry set in unfazed.json.\n * install defaults to \"bun install\" (--frozen-lockfile when a bun lockfile exists).\n */\nexport type CreateDeploymentInput = {\n alias?: string | null | undefined;\n /** BOX only: optional VM size. Omit for the platform defaults. */\n boxResources?: BoxResourcesInput | null | undefined;\n /** Absolute HTTP path the cron tick POSTs to; defaults to /cron when cronSchedule is set. */\n cronPath?: string | null | undefined;\n /**\n * Standard 5-field cron spec (minute hour day-of-month month day-of-week). When\n * set, the platform wakes the SERVICE on each tick with a POST to cronPath\n * (default /cron) carrying header X-Unfz-Trigger: cron and a signed\n * X-Unfz-Cron-Token equal to the service's UNFZ_STATE_TOKEN.\n */\n cronSchedule?: string | null | undefined;\n healthPath?: string | null | undefined;\n /** STATIC (serve files) or SERVICE (run an HTTP server). Classify it yourself: SERVICE if the workspace has server.ts, a go.mod+main.go, or an unfazed.json entry, else STATIC. */\n kind: DeploymentKind;\n /** SERVICE runtime. Omit to auto-detect (a go.mod+main.go is GO, otherwise BUN). Ignored for STATIC. */\n runtime?: ServiceRuntime | null | undefined;\n /** SERVICE only. Omit for ON_DEMAND (the default — sleeps and cold-starts on first request, right for most services). Set ALWAYS_ON only to keep the VM warm. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only: when true, missing paths serve index.html (single-page apps). Ignored for SERVICE. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type CreateRunInput = {\n /** read-only (default) or read-write: which integration credentials and tools the run gets and whether its platform token may deploy. */\n access?: string | null | undefined;\n /** The app whose integrations the run gets; required when the workspace has several apps. */\n alias?: string | null | undefined;\n /** \"human\" routes the harness's permission prompts to you (the run BLOCKS until you answer); empty keeps the harness's own defaults. */\n approval?: string | null | undefined;\n command?: string | null | undefined;\n harness?: string | null | undefined;\n includeFiles?: boolean | null | undefined;\n maxSeconds?: number | null | undefined;\n memoryMiB?: number | null | undefined;\n metadata?: unknown;\n /** \"plan\" asks the harness to write a plan without acting; empty does the task. */\n mode?: string | null | undefined;\n /** The run this one continues; usually set through followUpRun. */\n parentRunID?: string | number | null | undefined;\n prompt?: string | null | undefined;\n /** Shell commands run in /work before the harness; the first failure fails the run. */\n setup?: Array<string> | null | undefined;\n /** Skills fetched into .claude/skills before the harness, as owner/repo:path. */\n skills?: Array<string> | null | undefined;\n /** Shell commands run after the harness exited 0 (tests, a build, a file check); the first failure FAILS the run. Skipped in plan mode. */\n verify?: Array<string> | null | undefined;\n workspaceID: string | number;\n};\n\nexport type CurrentActorKind =\n /** An automated caller using a self-registered bearer token. Subject to free-tier usage/resource limits; a user can claim it to link it to their account. */\n | 'AGENT'\n /** The operator of this Unfazed instance, authenticated with the owner token. Full access, no free-tier limits. */\n | 'OWNER'\n /** A human signed in via GitHub OAuth, who manages their linked agents and apps. */\n | 'USER';\n\nexport type DeployWorkspaceInput = {\n /** Optional public alias; defaults to the workspace's git deploy alias when it was imported. */\n alias?: string | null | undefined;\n /** SERVICE only; defaults to the git source's mode, otherwise ON_DEMAND. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only; overrides the detected SPA fallback. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type DeploymentEventSeverity =\n | 'ERROR'\n | 'INFO'\n | 'WARN';\n\nexport type DeploymentEventType =\n | 'DEPLOYMENT_CREATED'\n | 'DEPLOYMENT_PROMOTION_REJECTED'\n | 'DEPLOYMENT_ROLLED_BACK'\n | 'SERVICE_BOOT_FAILED'\n | 'SERVICE_BUILD_FAILED'\n | 'SERVICE_BUILD_SUCCEEDED'\n | 'SERVICE_CRON_TRIGGERED'\n | 'SERVICE_HEALTH_PROBE_FAILED'\n | 'SERVICE_PROXY_ERROR'\n | 'SERVICE_RESTART_REQUESTED'\n | 'SERVICE_STOP_REQUESTED'\n | 'SERVICE_SUPERVISOR_STARTED'\n | 'SERVICE_SUPERVISOR_STOPPED'\n | 'SERVICE_VM_STARTED'\n | 'SERVICE_VM_START_FAILED'\n | 'SERVICE_VM_STOPPED'\n | 'SERVICE_WATCHDOG_PROBE_FAILED'\n | 'SERVICE_WATCHDOG_RESTART'\n | 'UNKNOWN';\n\nexport type DeploymentKind =\n /** A persistent always-on Linux VM with a per-workspace data disk (docs/agent-box.md). */\n | 'BOX'\n | 'SERVICE'\n | 'STATIC';\n\nexport type DeploymentStatus =\n | 'BUILDING'\n | 'FAILED'\n | 'READY';\n\nexport type FollowUpRunInput = {\n approval?: string | null | undefined;\n maxSeconds?: number | null | undefined;\n metadata?: unknown;\n mode?: string | null | undefined;\n prompt: string;\n runID: string | number;\n};\n\nexport type ListDeploymentsInput = {\n alias?: string | null | undefined;\n kind?: DeploymentKind | null | undefined;\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID?: string | number | null | undefined;\n};\n\nexport type ListRunsInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n status?: RunStatus | null | undefined;\n workspaceID?: string | number | null | undefined;\n};\n\nexport type ListWorkspaceFilesInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID: string | number;\n};\n\nexport type ReadWorkspaceFileInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n path: string;\n workspaceID: string | number;\n};\n\nexport type RunStatus =\n /** Waiting for a human's answer (see Run.question); the VM stays up and the wall clock keeps running. */\n | 'BLOCKED'\n | 'CANCELLED'\n | 'FAILED'\n | 'QUEUED'\n | 'RUNNING'\n | 'SUCCEEDED';\n\nexport type ServiceMode =\n /** Keeps a supervised VM running 24/7 (resource-expensive). Reserve for services that must stay warm (low first-request latency), do background work between requests, or run a frequent cron. */\n | 'ALWAYS_ON'\n /** Default. Sleeps and cold-starts a VM on the first request, then parks it after a short idle period — cheap and right for most services. Use on_demand + cronSchedule for periodic work. */\n | 'ON_DEMAND';\n\nexport type ServiceRuntime =\n /** Default. Bundles a TypeScript/JavaScript entry (server.ts) into a Bun HTTP server. */\n | 'BUN'\n /** Compiles a Go module (go.mod) into a static binary that starts its own HTTP server on $PORT. */\n | 'GO';\n\nexport type DeploymentFieldsFragment = { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string };\n\nexport type SdkWhoamiQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkWhoamiQuery = { whoami: { kind: CurrentActorKind, userID: string, name: string, agentID: string | null, agentName: string | null, claimed: boolean, claimedBy: string | null, scopes: Array<string>, expiresAt: string | null, usage: { month: string, requests: number, limit: number } | null, resources: { workspaces: number, workspaceLimit: number, services: number, serviceLimit: number } | null } };\n\nexport type SdkCreateWorkspaceMutationVariables = Exact<{\n name: string;\n}>;\n\n\nexport type SdkCreateWorkspaceMutation = { createWorkspace: { workspace: { id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string } } };\n\nexport type SdkListWorkspacesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkListWorkspacesQuery = { workspaces: Array<{ id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string }> };\n\nexport type SdkDeleteWorkspaceMutationVariables = Exact<{\n workspaceID: string | number;\n withDeployments?: boolean | null | undefined;\n}>;\n\n\nexport type SdkDeleteWorkspaceMutation = { deleteWorkspace: { ok: boolean } };\n\nexport type SdkWriteTextFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n text: string;\n}>;\n\n\nexport type SdkWriteTextFileMutation = { writeWorkspaceTextFile: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkWriteBase64FileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n contentBase64: string;\n}>;\n\n\nexport type SdkWriteBase64FileMutation = { writeWorkspaceBase64File: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkListFilesQueryVariables = Exact<{\n input: ListWorkspaceFilesInput;\n}>;\n\n\nexport type SdkListFilesQuery = { workspaceFilesPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string }> } };\n\nexport type SdkReadFileQueryVariables = Exact<{\n input: ReadWorkspaceFileInput;\n}>;\n\n\nexport type SdkReadFileQuery = { readWorkspaceFile: { text: string, offset: number, limit: number, totalBytes: number, truncated: boolean, nextOffset: number | null, file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } | null };\n\nexport type SdkDeleteFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n}>;\n\n\nexport type SdkDeleteFileMutation = { deleteWorkspaceFile: { ok: boolean } };\n\nexport type SdkCreateDeploymentMutationVariables = Exact<{\n input: CreateDeploymentInput;\n}>;\n\n\nexport type SdkCreateDeploymentMutation = { createDeployment: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkDeployWorkspaceMutationVariables = Exact<{\n input: DeployWorkspaceInput;\n}>;\n\n\nexport type SdkDeployWorkspaceMutation = { deployWorkspace: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkGetDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkGetDeploymentQuery = { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkPollDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkPollDeploymentQuery = { deployment: { id: string, status: DeploymentStatus, error: string | null, aliasHeld: boolean, url: string, previewUrl: string } | null };\n\nexport type SdkGetDeploymentByAliasQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkGetDeploymentByAliasQuery = { deploymentByAlias: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkListDeploymentsQueryVariables = Exact<{\n input?: ListDeploymentsInput | null | undefined;\n}>;\n\n\nexport type SdkListDeploymentsQuery = { deploymentsPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> } };\n\nexport type SdkListReleasesQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkListReleasesQuery = { deploymentReleases: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> };\n\nexport type SdkRollbackMutationVariables = Exact<{\n deploymentID: string | number;\n expectedCurrentDeploymentID: string | number;\n expectedCurrentAliasRevision: string;\n}>;\n\n\nexport type SdkRollbackMutation = { rollbackDeployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } };\n\nexport type SdkServiceStatusQueryVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkServiceStatusQuery = { serviceStatus: { deploymentID: string, alias: string | null, serviceMode: ServiceMode, running: boolean, health: string, vmID: string | null, inFlight: number, alwaysOn: boolean, memSizeMiB: number, startedAt: string | null, lastUsedAt: string | null, lastStoppedAt: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkServiceLogsQueryVariables = Exact<{\n deploymentID: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkServiceLogsQuery = { serviceLogs: { deploymentID: string, stdout: string, stderr: string, truncated: boolean, stdoutBytes: number, stderrBytes: number, tailBytes: number } };\n\nexport type SdkDeploymentEventsQueryVariables = Exact<{\n deploymentID: string | number;\n limit?: number | null | undefined;\n}>;\n\n\nexport type SdkDeploymentEventsQuery = { deploymentEvents: Array<{ id: string, deploymentID: string, type: DeploymentEventType, rawType: string, severity: DeploymentEventSeverity, message: string, vmID: string | null, createdAt: string }> };\n\nexport type SdkRestartServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkRestartServiceMutation = { restartService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkStopServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkStopServiceMutation = { stopService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkDeleteDeploymentMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkDeleteDeploymentMutation = { deleteDeployment: { ok: boolean } };\n\nexport type SdkSetWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceEnvMutation = { setWorkspaceEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetWorkspaceSecretMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceSecretMutation = { setWorkspaceSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkDeleteWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n}>;\n\n\nexport type SdkDeleteWorkspaceEnvMutation = { deleteWorkspaceEnv: { ok: boolean } };\n\nexport type SdkListWorkspaceEnvQueryVariables = Exact<{\n workspaceID: string | number;\n}>;\n\n\nexport type SdkListWorkspaceEnvQuery = { workspaceEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport type SdkSetAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppEnvMutation = { setAppEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetAppSecretMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppSecretMutation = { setAppSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkRemoveAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkRemoveAppEnvMutation = { removeAppEnv: { ok: boolean } };\n\nexport type SdkInheritAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkInheritAppEnvMutation = { inheritAppEnv: { ok: boolean } };\n\nexport type SdkListAppEnvQueryVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n}>;\n\n\nexport type SdkListAppEnvQuery = { appEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport type RunFieldsFragment = { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } };\n\nexport type SdkCreateRunMutationVariables = Exact<{\n input: CreateRunInput;\n}>;\n\n\nexport type SdkCreateRunMutation = { createRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkGetRunQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkGetRunQuery = { run: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkPollRunQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkPollRunQuery = { run: { id: string, status: RunStatus, error: string | null, exitCode: number | null } };\n\nexport type SdkListRunsQueryVariables = Exact<{\n input?: ListRunsInput | null | undefined;\n}>;\n\n\nexport type SdkListRunsQuery = { runs: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } }> } };\n\nexport type SdkCancelRunMutationVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkCancelRunMutation = { cancelRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkRunEventsQueryVariables = Exact<{\n runID: string | number;\n limit?: number | null | undefined;\n}>;\n\n\nexport type SdkRunEventsQuery = { runEvents: Array<{ id: string, runID: string, type: string, severity: DeploymentEventSeverity, message: string, metadata: unknown, createdAt: string }> };\n\nexport type SdkRunConsoleQueryVariables = Exact<{\n id: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkRunConsoleQuery = { runConsole: { runID: string, running: boolean, text: string } };\n\nexport type SdkRunTranscriptQueryVariables = Exact<{\n id: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkRunTranscriptQuery = { runTranscript: { runID: string, available: boolean, text: string, totalBytes: number, truncated: boolean } };\n\nexport type SdkAnswerRunMutationVariables = Exact<{\n id: string | number;\n answer: string;\n}>;\n\n\nexport type SdkAnswerRunMutation = { answerRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkFollowUpRunMutationVariables = Exact<{\n input: FollowUpRunInput;\n}>;\n\n\nexport type SdkFollowUpRunMutation = { followUpRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkRunHarnessesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkRunHarnessesQuery = { runHarnesses: Array<{ name: string, title: string, summary: string | null, requires: Array<string> }> };\n\nexport class TypedDocumentString<TResult, TVariables>\n extends String\n implements DocumentTypeDecoration<TResult, TVariables>\n{\n __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;\n private value: string;\n public __meta__?: Record<string, any> | undefined;\n\n constructor(value: string, __meta__?: Record<string, any> | undefined) {\n super(value);\n this.value = value;\n this.__meta__ = __meta__;\n }\n\n override toString(): string & DocumentTypeDecoration<TResult, TVariables> {\n return this.value;\n }\n}\nexport const DeploymentFieldsFragmentDoc = new TypedDocumentString(`\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}\n `, {\"fragmentName\":\"DeploymentFields\"}) as unknown as TypedDocumentString<DeploymentFieldsFragment, unknown>;\nexport const RunFieldsFragmentDoc = new TypedDocumentString(`\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}\n `, {\"fragmentName\":\"RunFields\"}) as unknown as TypedDocumentString<RunFieldsFragment, unknown>;\nexport const SdkWhoamiDocument = new TypedDocumentString(`\n query SdkWhoami {\n whoami {\n kind\n userID\n name\n agentID\n agentName\n claimed\n claimedBy\n scopes\n expiresAt\n usage {\n month\n requests\n limit\n }\n resources {\n workspaces\n workspaceLimit\n services\n serviceLimit\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWhoamiQuery, SdkWhoamiQueryVariables>;\nexport const SdkCreateWorkspaceDocument = new TypedDocumentString(`\n mutation SdkCreateWorkspace($name: String!) {\n createWorkspace(input: {name: $name}) {\n workspace {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkCreateWorkspaceMutation, SdkCreateWorkspaceMutationVariables>;\nexport const SdkListWorkspacesDocument = new TypedDocumentString(`\n query SdkListWorkspaces {\n workspaces {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspacesQuery, SdkListWorkspacesQueryVariables>;\nexport const SdkDeleteWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean) {\n deleteWorkspace(\n input: {workspaceID: $workspaceID, withDeployments: $withDeployments}\n ) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceMutation, SdkDeleteWorkspaceMutationVariables>;\nexport const SdkWriteTextFileDocument = new TypedDocumentString(`\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\n writeWorkspaceTextFile(\n input: {workspaceID: $workspaceID, path: $path, text: $text}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteTextFileMutation, SdkWriteTextFileMutationVariables>;\nexport const SdkWriteBase64FileDocument = new TypedDocumentString(`\n mutation SdkWriteBase64File($workspaceID: ID!, $path: String!, $contentBase64: String!) {\n writeWorkspaceBase64File(\n input: {workspaceID: $workspaceID, path: $path, contentBase64: $contentBase64}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteBase64FileMutation, SdkWriteBase64FileMutationVariables>;\nexport const SdkListFilesDocument = new TypedDocumentString(`\n query SdkListFiles($input: ListWorkspaceFilesInput!) {\n workspaceFilesPage(input: $input) {\n items {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n `) as unknown as TypedDocumentString<SdkListFilesQuery, SdkListFilesQueryVariables>;\nexport const SdkReadFileDocument = new TypedDocumentString(`\n query SdkReadFile($input: ReadWorkspaceFileInput!) {\n readWorkspaceFile(input: $input) {\n text\n offset\n limit\n totalBytes\n truncated\n nextOffset\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkReadFileQuery, SdkReadFileQueryVariables>;\nexport const SdkDeleteFileDocument = new TypedDocumentString(`\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\n deleteWorkspaceFile(input: {workspaceID: $workspaceID, path: $path}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteFileMutation, SdkDeleteFileMutationVariables>;\nexport const SdkCreateDeploymentDocument = new TypedDocumentString(`\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\n createDeployment(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkCreateDeploymentMutation, SdkCreateDeploymentMutationVariables>;\nexport const SdkDeployWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\n deployWorkspace(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkDeployWorkspaceMutation, SdkDeployWorkspaceMutationVariables>;\nexport const SdkGetDeploymentDocument = new TypedDocumentString(`\n query SdkGetDeployment($id: ID!) {\n deployment(id: $id) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentQuery, SdkGetDeploymentQueryVariables>;\nexport const SdkPollDeploymentDocument = new TypedDocumentString(`\n query SdkPollDeployment($id: ID!) {\n deployment(id: $id) {\n id\n status\n error\n aliasHeld\n url\n previewUrl\n }\n}\n `) as unknown as TypedDocumentString<SdkPollDeploymentQuery, SdkPollDeploymentQueryVariables>;\nexport const SdkGetDeploymentByAliasDocument = new TypedDocumentString(`\n query SdkGetDeploymentByAlias($alias: String!) {\n deploymentByAlias(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentByAliasQuery, SdkGetDeploymentByAliasQueryVariables>;\nexport const SdkListDeploymentsDocument = new TypedDocumentString(`\n query SdkListDeployments($input: ListDeploymentsInput) {\n deploymentsPage(input: $input) {\n items {\n ...DeploymentFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListDeploymentsQuery, SdkListDeploymentsQueryVariables>;\nexport const SdkListReleasesDocument = new TypedDocumentString(`\n query SdkListReleases($alias: String!) {\n deploymentReleases(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListReleasesQuery, SdkListReleasesQueryVariables>;\nexport const SdkRollbackDocument = new TypedDocumentString(`\n mutation SdkRollback($deploymentID: ID!, $expectedCurrentDeploymentID: ID!, $expectedCurrentAliasRevision: String!) {\n rollbackDeployment(\n input: {deploymentID: $deploymentID, expectedCurrentDeploymentID: $expectedCurrentDeploymentID, expectedCurrentAliasRevision: $expectedCurrentAliasRevision}\n ) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkRollbackMutation, SdkRollbackMutationVariables>;\nexport const SdkServiceStatusDocument = new TypedDocumentString(`\n query SdkServiceStatus($deploymentID: ID!) {\n serviceStatus(deploymentID: $deploymentID) {\n deploymentID\n alias\n serviceMode\n running\n health\n vmID\n inFlight\n alwaysOn\n memSizeMiB\n startedAt\n lastUsedAt\n lastStoppedAt\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceStatusQuery, SdkServiceStatusQueryVariables>;\nexport const SdkServiceLogsDocument = new TypedDocumentString(`\n query SdkServiceLogs($deploymentID: ID!, $tailBytes: Int) {\n serviceLogs(deploymentID: $deploymentID, tailBytes: $tailBytes) {\n deploymentID\n stdout\n stderr\n truncated\n stdoutBytes\n stderrBytes\n tailBytes\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceLogsQuery, SdkServiceLogsQueryVariables>;\nexport const SdkDeploymentEventsDocument = new TypedDocumentString(`\n query SdkDeploymentEvents($deploymentID: ID!, $limit: Int) {\n deploymentEvents(deploymentID: $deploymentID, limit: $limit) {\n id\n deploymentID\n type\n rawType\n severity\n message\n vmID\n createdAt\n }\n}\n `) as unknown as TypedDocumentString<SdkDeploymentEventsQuery, SdkDeploymentEventsQueryVariables>;\nexport const SdkRestartServiceDocument = new TypedDocumentString(`\n mutation SdkRestartService($deploymentID: ID!) {\n restartService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkRestartServiceMutation, SdkRestartServiceMutationVariables>;\nexport const SdkStopServiceDocument = new TypedDocumentString(`\n mutation SdkStopService($deploymentID: ID!) {\n stopService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkStopServiceMutation, SdkStopServiceMutationVariables>;\nexport const SdkDeleteDeploymentDocument = new TypedDocumentString(`\n mutation SdkDeleteDeployment($deploymentID: ID!) {\n deleteDeployment(input: {deploymentID: $deploymentID}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteDeploymentMutation, SdkDeleteDeploymentMutationVariables>;\nexport const SdkSetWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceEnv($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name, value: $value}) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceEnvMutation, SdkSetWorkspaceEnvMutationVariables>;\nexport const SdkSetWorkspaceSecretDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceSecret(\n input: {workspaceID: $workspaceID, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceSecretMutation, SdkSetWorkspaceSecretMutationVariables>;\nexport const SdkDeleteWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\n deleteWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceEnvMutation, SdkDeleteWorkspaceEnvMutationVariables>;\nexport const SdkListWorkspaceEnvDocument = new TypedDocumentString(`\n query SdkListWorkspaceEnv($workspaceID: ID!) {\n workspaceEnv(workspaceID: $workspaceID) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspaceEnvQuery, SdkListWorkspaceEnvQueryVariables>;\nexport const SdkSetAppEnvDocument = new TypedDocumentString(`\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppEnv(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppEnvMutation, SdkSetAppEnvMutationVariables>;\nexport const SdkSetAppSecretDocument = new TypedDocumentString(`\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppSecret(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppSecretMutation, SdkSetAppSecretMutationVariables>;\nexport const SdkRemoveAppEnvDocument = new TypedDocumentString(`\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n removeAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkRemoveAppEnvMutation, SdkRemoveAppEnvMutationVariables>;\nexport const SdkInheritAppEnvDocument = new TypedDocumentString(`\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n inheritAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkInheritAppEnvMutation, SdkInheritAppEnvMutationVariables>;\nexport const SdkListAppEnvDocument = new TypedDocumentString(`\n query SdkListAppEnv($workspaceID: ID!, $alias: String!) {\n appEnv(workspaceID: $workspaceID, alias: $alias) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListAppEnvQuery, SdkListAppEnvQueryVariables>;\nexport const SdkCreateRunDocument = new TypedDocumentString(`\n mutation SdkCreateRun($input: CreateRunInput!) {\n createRun(input: $input) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkCreateRunMutation, SdkCreateRunMutationVariables>;\nexport const SdkGetRunDocument = new TypedDocumentString(`\n query SdkGetRun($id: ID!) {\n run(id: $id) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkGetRunQuery, SdkGetRunQueryVariables>;\nexport const SdkPollRunDocument = new TypedDocumentString(`\n query SdkPollRun($id: ID!) {\n run(id: $id) {\n id\n status\n error\n exitCode\n }\n}\n `) as unknown as TypedDocumentString<SdkPollRunQuery, SdkPollRunQueryVariables>;\nexport const SdkListRunsDocument = new TypedDocumentString(`\n query SdkListRuns($input: ListRunsInput) {\n runs(input: $input) {\n items {\n ...RunFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkListRunsQuery, SdkListRunsQueryVariables>;\nexport const SdkCancelRunDocument = new TypedDocumentString(`\n mutation SdkCancelRun($id: ID!) {\n cancelRun(id: $id) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkCancelRunMutation, SdkCancelRunMutationVariables>;\nexport const SdkRunEventsDocument = new TypedDocumentString(`\n query SdkRunEvents($runID: ID!, $limit: Int) {\n runEvents(runID: $runID, limit: $limit) {\n id\n runID\n type\n severity\n message\n metadata\n createdAt\n }\n}\n `) as unknown as TypedDocumentString<SdkRunEventsQuery, SdkRunEventsQueryVariables>;\nexport const SdkRunConsoleDocument = new TypedDocumentString(`\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\n runConsole(id: $id, tailBytes: $tailBytes) {\n runID\n running\n text\n }\n}\n `) as unknown as TypedDocumentString<SdkRunConsoleQuery, SdkRunConsoleQueryVariables>;\nexport const SdkRunTranscriptDocument = new TypedDocumentString(`\n query SdkRunTranscript($id: ID!, $tailBytes: Int) {\n runTranscript(id: $id, tailBytes: $tailBytes) {\n runID\n available\n text\n totalBytes\n truncated\n }\n}\n `) as unknown as TypedDocumentString<SdkRunTranscriptQuery, SdkRunTranscriptQueryVariables>;\nexport const SdkAnswerRunDocument = new TypedDocumentString(`\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\n answerRun(id: $id, answer: $answer) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkAnswerRunMutation, SdkAnswerRunMutationVariables>;\nexport const SdkFollowUpRunDocument = new TypedDocumentString(`\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\n followUpRun(input: $input) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkFollowUpRunMutation, SdkFollowUpRunMutationVariables>;\nexport const SdkRunHarnessesDocument = new TypedDocumentString(`\n query SdkRunHarnesses {\n runHarnesses {\n name\n title\n summary\n requires\n }\n}\n `) as unknown as TypedDocumentString<SdkRunHarnessesQuery, SdkRunHarnessesQueryVariables>;"]}
1
+ {"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/generated/graphql.ts"],"names":[],"mappings":"AAstBA,MAAM,OAAO,mBACX,SAAQ,MAAM;IAGd,SAAS,CAAyE;IAC1E,KAAK,CAAS;IACf,QAAQ,CAAmC;IAElD,YAAY,KAAa,EAAE,QAA0C;QACnE,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEQ,QAAQ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;;;;KAS1D,CAAwF,CAAC","sourcesContent":["/* eslint-disable */\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/**\n * Inlined from @graphql-typed-document-node/core by scripts/postcodegen.ts so\n * this package ships with zero dependencies, type-only ones included.\n * Structurally identical to the upstream interface.\n */\ninterface DocumentTypeDecoration<TResult, TVariables> {\n __apiType?: (variables: TVariables) => TResult;\n}\nexport type AppErrorGroupInput = {\n alias: string;\n /** The group's id (AppErrorGroup.id, or group_id of an error.new or error.regressed event). */\n groupID: string | number;\n workspaceID: string | number;\n};\n\n/** A box's requested VM size. Omitted fields use the platform default. */\nexport type BoxResourcesInput = {\n /** Persistent disk in GiB (default 32, max 128). Sets the size when the disk is first created; a later redeploy asking for more grows the existing disk before the box boots (it never shrinks, and the effective size may be lower than requested). */\n diskGiB?: number | null | undefined;\n /** RAM in MiB (default 4096, min 512, max 16384). */\n memMiB?: number | null | undefined;\n /** vCPU count (default 4, max 16). */\n vcpus?: number | null | undefined;\n};\n\n/**\n * Creates a deployment from the workspace's current files. The build is driven by\n * an optional root unfazed.json: STATIC serves the files as-is unless unfazed.json\n * sets build (a command run in the build VM) + output (publish dir, default \"dist\"\n * when build is set; output with no build republishes a committed dir like dist/ as\n * is); SERVICE bundles server.ts by default, or the entry set in unfazed.json.\n * install defaults to \"bun install\" (--frozen-lockfile when a bun lockfile exists).\n */\nexport type CreateDeploymentInput = {\n alias?: string | null | undefined;\n /** BOX only: optional VM size. Omit for the platform defaults. */\n boxResources?: BoxResourcesInput | null | undefined;\n /** Absolute HTTP path the cron tick POSTs to; defaults to /cron when cronSchedule is set. */\n cronPath?: string | null | undefined;\n /**\n * Standard 5-field cron spec (minute hour day-of-month month day-of-week). When\n * set, the platform wakes the SERVICE on each tick with a POST to cronPath\n * (default /cron) carrying header X-Unfz-Trigger: cron and a signed\n * X-Unfz-Cron-Token equal to the service's UNFZ_STATE_TOKEN.\n */\n cronSchedule?: string | null | undefined;\n healthPath?: string | null | undefined;\n /** STATIC (serve files) or SERVICE (run an HTTP server). Classify it yourself: SERVICE if the workspace has server.ts, a go.mod+main.go, or an unfazed.json entry, else STATIC. */\n kind: DeploymentKind;\n /** SERVICE runtime. Omit to auto-detect (a go.mod+main.go is GO, otherwise BUN). Ignored for STATIC. */\n runtime?: ServiceRuntime | null | undefined;\n /** Server for a NEW app: a server id or name from placementTargets, or control-plane. Omit for the default server. An existing app keeps its server (use a placement move); static sites stay on the control plane. */\n server?: string | null | undefined;\n /** SERVICE only. Omit for ON_DEMAND (the default — sleeps and cold-starts on first request, right for most services). Set ALWAYS_ON only to keep the VM warm. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only: when true, missing paths serve index.html (single-page apps). Ignored for SERVICE. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type CreateRunInput = {\n /** read-only (default) or read-write: which integration credentials and tools the run gets and whether its platform token may deploy. */\n access?: string | null | undefined;\n /** Make this run a task of an agent: it inherits the agent's harness, provider and model, access and approval wherever this input leaves them empty. */\n agentID?: string | number | null | undefined;\n /** The app whose integrations the run gets; required when the workspace has several apps. */\n alias?: string | null | undefined;\n /** \"human\" routes the harness's permission prompts to you (the run BLOCKS until you answer); empty keeps the harness's own defaults. */\n approval?: string | null | undefined;\n command?: string | null | undefined;\n harness?: string | null | undefined;\n includeFiles?: boolean | null | undefined;\n maxSeconds?: number | null | undefined;\n memoryMiB?: number | null | undefined;\n metadata?: unknown;\n /** \"plan\" asks the harness to write a plan without acting; empty does the task. */\n mode?: string | null | undefined;\n /** The run this one continues; usually set through followUpRun. */\n parentRunID?: string | number | null | undefined;\n /** A run preset name: its harness applies when harness is empty, its connection/model override the account's harness setting, its extra env merges below the workspace's own. */\n preset?: string | null | undefined;\n prompt?: string | null | undefined;\n /** Shell commands run in /work before the harness; the first failure fails the run. */\n setup?: Array<string> | null | undefined;\n /** Skills fetched into .claude/skills before the harness, as owner/repo:path. */\n skills?: Array<string> | null | undefined;\n /** Shell commands run after the harness exited 0 (tests, a build, a file check); the first failure FAILS the run. Skipped in plan mode. */\n verify?: Array<string> | null | undefined;\n /** The workspace whose env, secrets and files the run gets. Optional for an agent's run: the agent's first scoped workspace, else its own. */\n workspaceID?: string | number | null | undefined;\n};\n\nexport type CurrentActorKind =\n /** An automated caller using a self-registered bearer token. Subject to free-tier usage/resource limits; a user can claim it to link it to their account. */\n | 'AGENT'\n /** The operator of this Unfazed instance, authenticated with the owner token. Full access, no free-tier limits. */\n | 'OWNER'\n /** A human signed in via an enabled identity provider, who manages their linked agents and apps. */\n | 'USER';\n\nexport type DeployWorkspaceInput = {\n /** Optional public alias; defaults to the workspace's git deploy alias when it was imported. */\n alias?: string | null | undefined;\n /** Server for a NEW app (see CreateDeploymentInput.server); overrides unfazed.json server. */\n server?: string | null | undefined;\n /** SERVICE only; defaults to the git source's mode, otherwise ON_DEMAND. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only; overrides the detected SPA fallback. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type DeploymentEventSeverity =\n | 'ERROR'\n | 'INFO'\n | 'WARN';\n\nexport type DeploymentEventType =\n | 'DEPLOYMENT_CREATED'\n | 'DEPLOYMENT_PROMOTION_REJECTED'\n | 'DEPLOYMENT_ROLLED_BACK'\n | 'SERVICE_BOOT_FAILED'\n | 'SERVICE_BUILD_FAILED'\n | 'SERVICE_BUILD_SUCCEEDED'\n | 'SERVICE_CRON_TRIGGERED'\n | 'SERVICE_HEALTH_PROBE_FAILED'\n | 'SERVICE_PROXY_ERROR'\n | 'SERVICE_RESTART_REQUESTED'\n | 'SERVICE_STOP_REQUESTED'\n | 'SERVICE_SUPERVISOR_STARTED'\n | 'SERVICE_SUPERVISOR_STOPPED'\n | 'SERVICE_VM_CRASHED'\n | 'SERVICE_VM_STARTED'\n | 'SERVICE_VM_START_FAILED'\n | 'SERVICE_VM_STOPPED'\n | 'SERVICE_WATCHDOG_PROBE_FAILED'\n | 'SERVICE_WATCHDOG_RESTART'\n | 'UNKNOWN';\n\nexport type DeploymentKind =\n /** A persistent always-on Linux VM with a per-workspace data disk (docs/agent-box.md). */\n | 'BOX'\n | 'SERVICE'\n | 'STATIC';\n\nexport type DeploymentStatus =\n | 'BUILDING'\n | 'FAILED'\n | 'READY';\n\nexport type FollowUpRunInput = {\n approval?: string | null | undefined;\n maxSeconds?: number | null | undefined;\n metadata?: unknown;\n mode?: string | null | undefined;\n prompt: string;\n runID: string | number;\n};\n\nexport type ListDeploymentsInput = {\n alias?: string | null | undefined;\n kind?: DeploymentKind | null | undefined;\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID?: string | number | null | undefined;\n};\n\nexport type ListRunsInput = {\n agentID?: string | number | null | undefined;\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n status?: RunStatus | null | undefined;\n workspaceID?: string | number | null | undefined;\n};\n\nexport type ListWorkspaceFilesInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID: string | number;\n};\n\n/** Which events to read (MCP poll_events). */\nexport type PlatformEventsInput = {\n /** Filters per type, keyed by its name, e.g. {\"deployment.finished\": {\"alias\": \"shop\", \"status\": \"FAILED\"}}. */\n arguments?: unknown;\n /** Where to continue; omit to start from now (nothing is replayed). */\n cursor?: string | null | undefined;\n /** At most this many events. */\n max?: number | null | undefined;\n /** Event types; omit for every type you may receive. */\n names?: Array<string> | null | undefined;\n};\n\nexport type ReadWorkspaceFileInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n path: string;\n workspaceID: string | number;\n};\n\nexport type RunStatus =\n /** Waiting for a human's answer (see Run.question); the VM stays up and the wall clock keeps running. */\n | 'BLOCKED'\n | 'CANCELLED'\n | 'FAILED'\n | 'QUEUED'\n | 'RUNNING'\n | 'SUCCEEDED';\n\nexport type ServiceMode =\n /** Keeps a supervised VM running 24/7 (resource-expensive). Reserve for services that must stay warm (low first-request latency), do background work between requests, or run a frequent cron. */\n | 'ALWAYS_ON'\n /** Default. Sleeps and cold-starts a VM on the first request, then parks it after a short idle period — cheap and right for most services. Use on_demand + cronSchedule for periodic work. */\n | 'ON_DEMAND';\n\nexport type ServiceRuntime =\n /** Default. Bundles a TypeScript/JavaScript entry (server.ts) into a Bun HTTP server. */\n | 'BUN'\n /** Compiles a Go module (go.mod) into a static binary that starts its own HTTP server on $PORT. */\n | 'GO';\n\n/** One file of writeWorkspaceFiles, as MCP write_workspace_files takes it. */\nexport type WorkspaceFileWriteInput = {\n /** The file: UTF-8 text, or base64-encoded bytes with encoding base64. */\n content: string;\n /** text (the default) or base64. */\n encoding?: string | null | undefined;\n /** Relative path, such as server.ts or assets/logo.png. */\n path: string;\n};\n\nexport type DeploymentFieldsFragment = { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string };\n\nexport type SdkWhoamiQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkWhoamiQuery = { whoami: { kind: CurrentActorKind, userID: string, name: string, agentID: string | null, agentName: string | null, claimed: boolean, claimedBy: string | null, scopes: Array<string>, expiresAt: string | null, usage: { month: string, requests: number, limit: number } | null, resources: { workspaces: number, workspaceLimit: number, services: number, serviceLimit: number } | null } };\n\nexport type SdkCreateWorkspaceMutationVariables = Exact<{\n name: string;\n}>;\n\n\nexport type SdkCreateWorkspaceMutation = { createWorkspace: { workspace: { id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string } } };\n\nexport type SdkListWorkspacesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkListWorkspacesQuery = { workspaces: Array<{ id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string }> };\n\nexport type SdkDeleteWorkspaceMutationVariables = Exact<{\n workspaceID: string | number;\n withDeployments?: boolean | null | undefined;\n confirmAliases?: Array<string> | string | null | undefined;\n}>;\n\n\nexport type SdkDeleteWorkspaceMutation = { deleteWorkspace: { ok: boolean } };\n\nexport type SdkWorkspaceLiveAppsQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkWorkspaceLiveAppsQuery = { workspace: { id: string, liveApps: Array<{ alias: string, deploymentID: string, domains: Array<string> }> } | null };\n\nexport type SdkDeleteAppMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n}>;\n\n\nexport type SdkDeleteAppMutation = { deleteApp: { ok: boolean, alias: string, deployments: number, domains: Array<string>, envEntries: number, skippedOnSync: boolean, otherApps: Array<string> } };\n\nexport type SdkWriteTextFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n text: string;\n}>;\n\n\nexport type SdkWriteTextFileMutation = { writeWorkspaceTextFile: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkWriteBase64FileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n contentBase64: string;\n}>;\n\n\nexport type SdkWriteBase64FileMutation = { writeWorkspaceBase64File: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type FileCommitFieldsFragment = { sha: string | null, branch: string, message: string, committed: boolean, waiting: boolean, waitingCount: number, deploys: boolean, conflicts: Array<string>, writeSHA: string | null, paused: boolean };\n\nexport type SdkWriteFilesMutationVariables = Exact<{\n workspaceID: string | number;\n files: Array<WorkspaceFileWriteInput> | WorkspaceFileWriteInput;\n commitMessage?: string | null | undefined;\n}>;\n\n\nexport type SdkWriteFilesMutation = { writeWorkspaceFiles: { workspaceID: string, written: number, failed: number, totalBytes: number, files: Array<{ path: string, ok: boolean, error: string | null, file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } | null }>, commit: { sha: string | null, branch: string, message: string, committed: boolean, waiting: boolean, waitingCount: number, deploys: boolean, conflicts: Array<string>, writeSHA: string | null, paused: boolean } | null } };\n\nexport type SdkAppCommitsQueryVariables = Exact<{\n workspaceID: string | number;\n limit?: number | null | undefined;\n before?: string | null | undefined;\n}>;\n\n\nexport type SdkAppCommitsQuery = { appCommits: { branch: string, head: string | null, nextBefore: string | null, autoDeploy: boolean, waitingCommits: number, waitingSince: string | null, commits: Array<{ sha: string, message: string, authorName: string, authorEmail: string, authoredAt: string, filesChanged: number, deployedTo: Array<string> }>, deployed: Array<{ alias: string, sha: string, deploymentID: string }> } };\n\nexport type SdkAppCommitsWaitingQueryVariables = Exact<{\n workspaceID: string | number;\n}>;\n\n\nexport type SdkAppCommitsWaitingQuery = { appCommits: { branch: string, head: string | null, waitingCommits: number, waitingSince: string | null } };\n\nexport type SdkWorkspaceGitSourceQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkWorkspaceGitSourceQuery = { workspace: { id: string, gitSource: { branch: string, autoDeploy: boolean, deployAlias: string | null, lastImportedCommit: string | null, lastImportedAt: string | null, lastImportStatus: string, lastImportError: string | null } | null } | null };\n\nexport type SdkAppCommitQueryVariables = Exact<{\n workspaceID: string | number;\n sha: string;\n}>;\n\n\nexport type SdkAppCommitQuery = { appCommit: { patch: string, truncated: boolean, additions: number, deletions: number, commit: { sha: string, message: string, authorName: string, authorEmail: string, authoredAt: string, filesChanged: number, deployedTo: Array<string> }, files: Array<{ path: string, status: string }> } };\n\nexport type SdkRestoreVersionMutationVariables = Exact<{\n workspaceID: string | number;\n sha: string;\n expectedHead?: string | null | undefined;\n message?: string | null | undefined;\n}>;\n\n\nexport type SdkRestoreVersionMutation = { restoreAppVersion: { sha: string, committed: boolean, deploys: boolean, message: string, workspaceID: string, branch: string, deployAlias: string | null, restoredFrom: string, parent: string | null, waitAfter: number } };\n\nexport type AppErrorGroupFieldsFragment = { id: string, title: string, type: string | null, culprit: string | null, level: string, status: string, count: number, storedEvents: number, firstSeen: string, lastSeen: string, firstDeploymentID: string | null, firstGitCommit: string | null, lastDeploymentID: string | null, lastGitCommit: string | null, resolvedInDeploymentID: string | null, resolvedAt: string | null, mutedAt: string | null, regressedAt: string | null };\n\nexport type SdkAppErrorsQueryVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n status?: string | null | undefined;\n limit?: number | null | undefined;\n cursor?: string | null | undefined;\n}>;\n\n\nexport type SdkAppErrorsQuery = { appErrors: { nextCursor: string | null, note: string | null, groups: Array<{ id: string, title: string, type: string | null, culprit: string | null, level: string, status: string, count: number, storedEvents: number, firstSeen: string, lastSeen: string, firstDeploymentID: string | null, firstGitCommit: string | null, lastDeploymentID: string | null, lastGitCommit: string | null, resolvedInDeploymentID: string | null, resolvedAt: string | null, mutedAt: string | null, regressedAt: string | null }> } };\n\nexport type SdkAppErrorGroupQueryVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n groupID: string | number;\n}>;\n\n\nexport type SdkAppErrorGroupQuery = { appErrorGroup: { latestEvent: unknown, fatal: boolean, vmID: string | null, group: { id: string, title: string, type: string | null, culprit: string | null, level: string, status: string, count: number, storedEvents: number, firstSeen: string, lastSeen: string, firstDeploymentID: string | null, firstGitCommit: string | null, lastDeploymentID: string | null, lastGitCommit: string | null, resolvedInDeploymentID: string | null, resolvedAt: string | null, mutedAt: string | null, regressedAt: string | null }, firstEvent: { eventID: string, at: string, deploymentID: string | null, level: string } | null, recentEvents: Array<{ eventID: string, at: string, deploymentID: string | null, level: string }>, deployments: Array<{ deploymentID: string, gitCommit: string | null, current: boolean, count: number, firstSeen: string, lastSeen: string }> } };\n\nexport type SdkResolveErrorGroupMutationVariables = Exact<{\n input: AppErrorGroupInput;\n}>;\n\n\nexport type SdkResolveErrorGroupMutation = { resolveAppErrorGroup: { id: string, title: string, type: string | null, culprit: string | null, level: string, status: string, count: number, storedEvents: number, firstSeen: string, lastSeen: string, firstDeploymentID: string | null, firstGitCommit: string | null, lastDeploymentID: string | null, lastGitCommit: string | null, resolvedInDeploymentID: string | null, resolvedAt: string | null, mutedAt: string | null, regressedAt: string | null } };\n\nexport type SdkMuteErrorGroupMutationVariables = Exact<{\n input: AppErrorGroupInput;\n}>;\n\n\nexport type SdkMuteErrorGroupMutation = { muteAppErrorGroup: { id: string, title: string, type: string | null, culprit: string | null, level: string, status: string, count: number, storedEvents: number, firstSeen: string, lastSeen: string, firstDeploymentID: string | null, firstGitCommit: string | null, lastDeploymentID: string | null, lastGitCommit: string | null, resolvedInDeploymentID: string | null, resolvedAt: string | null, mutedAt: string | null, regressedAt: string | null } };\n\nexport type SdkReopenErrorGroupMutationVariables = Exact<{\n input: AppErrorGroupInput;\n}>;\n\n\nexport type SdkReopenErrorGroupMutation = { reopenAppErrorGroup: { id: string, title: string, type: string | null, culprit: string | null, level: string, status: string, count: number, storedEvents: number, firstSeen: string, lastSeen: string, firstDeploymentID: string | null, firstGitCommit: string | null, lastDeploymentID: string | null, lastGitCommit: string | null, resolvedInDeploymentID: string | null, resolvedAt: string | null, mutedAt: string | null, regressedAt: string | null } };\n\nexport type SdkEventTypesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkEventTypesQuery = { platformEventTypes: Array<{ name: string, description: string, delivery: Array<string>, inputSchema: unknown, payloadSchema: unknown }> };\n\nexport type SdkPollEventsQueryVariables = Exact<{\n input?: PlatformEventsInput | null | undefined;\n}>;\n\n\nexport type SdkPollEventsQuery = { pollEvents: { cursor: string, truncated: boolean, hasMore: boolean, nextPollMs: number, timedOut: boolean, events: Array<{ eventID: string, name: string, timestamp: string, data: unknown }> } };\n\nexport type SdkWaitForEventsQueryVariables = Exact<{\n input?: PlatformEventsInput | null | undefined;\n timeoutSeconds?: number | null | undefined;\n}>;\n\n\nexport type SdkWaitForEventsQuery = { waitForEvents: { cursor: string, truncated: boolean, hasMore: boolean, nextPollMs: number, timedOut: boolean, events: Array<{ eventID: string, name: string, timestamp: string, data: unknown }> } };\n\nexport type SdkListFilesQueryVariables = Exact<{\n input: ListWorkspaceFilesInput;\n}>;\n\n\nexport type SdkListFilesQuery = { workspaceFilesPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string }> } };\n\nexport type SdkReadFileQueryVariables = Exact<{\n input: ReadWorkspaceFileInput;\n}>;\n\n\nexport type SdkReadFileQuery = { readWorkspaceFile: { text: string, offset: number, limit: number, totalBytes: number, truncated: boolean, nextOffset: number | null, file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } | null };\n\nexport type SdkDeleteFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n}>;\n\n\nexport type SdkDeleteFileMutation = { deleteWorkspaceFile: { ok: boolean } };\n\nexport type SdkCreateDeploymentMutationVariables = Exact<{\n input: CreateDeploymentInput;\n}>;\n\n\nexport type SdkCreateDeploymentMutation = { createDeployment: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkDeployWorkspaceMutationVariables = Exact<{\n input: DeployWorkspaceInput;\n}>;\n\n\nexport type SdkDeployWorkspaceMutation = { deployWorkspace: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkGetDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkGetDeploymentQuery = { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkPollDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkPollDeploymentQuery = { deployment: { id: string, status: DeploymentStatus, error: string | null, aliasHeld: boolean, url: string, previewUrl: string } | null };\n\nexport type SdkGetDeploymentByAliasQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkGetDeploymentByAliasQuery = { deploymentByAlias: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkListDeploymentsQueryVariables = Exact<{\n input?: ListDeploymentsInput | null | undefined;\n}>;\n\n\nexport type SdkListDeploymentsQuery = { deploymentsPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> } };\n\nexport type SdkListReleasesQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkListReleasesQuery = { deploymentReleases: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> };\n\nexport type SdkRollbackMutationVariables = Exact<{\n deploymentID: string | number;\n expectedCurrentDeploymentID: string | number;\n expectedCurrentAliasRevision: string;\n}>;\n\n\nexport type SdkRollbackMutation = { rollbackDeployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } };\n\nexport type SdkServiceStatusQueryVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkServiceStatusQuery = { serviceStatus: { deploymentID: string, alias: string | null, serviceMode: ServiceMode, running: boolean, health: string, vmID: string | null, inFlight: number, alwaysOn: boolean, memSizeMiB: number, startedAt: string | null, lastUsedAt: string | null, lastStoppedAt: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkServiceLogsQueryVariables = Exact<{\n deploymentID: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkServiceLogsQuery = { serviceLogs: { deploymentID: string, stdout: string, stderr: string, truncated: boolean, stdoutBytes: number, stderrBytes: number, tailBytes: number } };\n\nexport type DeploymentTimingsFieldsFragment = { totalMs: number | null, buildMs: number | null, promoteMs: number | null, phases: unknown, buildMode: string | null, artifactTransport: string | null, buildMemoryMiB: number | null };\n\nexport type SdkDeploymentEventsQueryVariables = Exact<{\n deploymentID: string | number;\n limit?: number | null | undefined;\n}>;\n\n\nexport type SdkDeploymentEventsQuery = { deploymentEvents: Array<{ id: string, deploymentID: string, type: DeploymentEventType, rawType: string, severity: DeploymentEventSeverity, message: string, vmID: string | null, metadata: unknown, createdAt: string, timings: { totalMs: number | null, buildMs: number | null, promoteMs: number | null, phases: unknown, buildMode: string | null, artifactTransport: string | null, buildMemoryMiB: number | null } | null }> };\n\nexport type SdkDeploymentTimingsQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkDeploymentTimingsQuery = { deployment: { id: string, timings: { totalMs: number | null, buildMs: number | null, promoteMs: number | null, phases: unknown, buildMode: string | null, artifactTransport: string | null, buildMemoryMiB: number | null } | null } | null };\n\nexport type SdkWaitForDeploymentQueryVariables = Exact<{\n id: string | number;\n timeoutSeconds?: number | null | undefined;\n}>;\n\n\nexport type SdkWaitForDeploymentQuery = { waitForDeployment: { timedOut: boolean, waitedMs: number, placement: unknown, deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null } };\n\nexport type SdkWaitForCommitDeploymentQueryVariables = Exact<{\n workspaceID: string | number;\n gitCommit: string;\n alias?: string | null | undefined;\n after?: number | null | undefined;\n timeoutSeconds?: number | null | undefined;\n}>;\n\n\nexport type SdkWaitForCommitDeploymentQuery = { waitForDeployment: { status: string, importStatus: string | null, importError: string | null, timedOut: boolean, waitedMs: number, deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null } };\n\nexport type SdkRestartServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkRestartServiceMutation = { restartService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkStopServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkStopServiceMutation = { stopService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkDeleteDeploymentMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkDeleteDeploymentMutation = { deleteDeployment: { ok: boolean } };\n\nexport type SdkSetWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceEnvMutation = { setWorkspaceEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetWorkspaceSecretMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceSecretMutation = { setWorkspaceSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkDeleteWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n}>;\n\n\nexport type SdkDeleteWorkspaceEnvMutation = { deleteWorkspaceEnv: { ok: boolean } };\n\nexport type SdkListWorkspaceEnvQueryVariables = Exact<{\n workspaceID: string | number;\n}>;\n\n\nexport type SdkListWorkspaceEnvQuery = { workspaceEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport type SdkSetAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppEnvMutation = { setAppEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetAppSecretMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppSecretMutation = { setAppSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkRemoveAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkRemoveAppEnvMutation = { removeAppEnv: { ok: boolean } };\n\nexport type SdkInheritAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkInheritAppEnvMutation = { inheritAppEnv: { ok: boolean } };\n\nexport type SdkListAppEnvQueryVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n}>;\n\n\nexport type SdkListAppEnvQuery = { appEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport type RunFieldsFragment = { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } };\n\nexport type SdkCreateRunMutationVariables = Exact<{\n input: CreateRunInput;\n}>;\n\n\nexport type SdkCreateRunMutation = { createRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkGetRunQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkGetRunQuery = { run: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkPollRunQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkPollRunQuery = { run: { id: string, status: RunStatus, error: string | null, exitCode: number | null } };\n\nexport type SdkListRunsQueryVariables = Exact<{\n input?: ListRunsInput | null | undefined;\n}>;\n\n\nexport type SdkListRunsQuery = { runs: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } }> } };\n\nexport type SdkCancelRunMutationVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkCancelRunMutation = { cancelRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkRunEventsQueryVariables = Exact<{\n runID: string | number;\n limit?: number | null | undefined;\n}>;\n\n\nexport type SdkRunEventsQuery = { runEvents: Array<{ id: string, runID: string, type: string, severity: DeploymentEventSeverity, message: string, metadata: unknown, createdAt: string }> };\n\nexport type SdkRunConsoleQueryVariables = Exact<{\n id: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkRunConsoleQuery = { runConsole: { runID: string, running: boolean, text: string } };\n\nexport type SdkRunTranscriptQueryVariables = Exact<{\n id: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkRunTranscriptQuery = { runTranscript: { runID: string, available: boolean, text: string, totalBytes: number, truncated: boolean } };\n\nexport type SdkAnswerRunMutationVariables = Exact<{\n id: string | number;\n answer: string;\n}>;\n\n\nexport type SdkAnswerRunMutation = { answerRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkFollowUpRunMutationVariables = Exact<{\n input: FollowUpRunInput;\n}>;\n\n\nexport type SdkFollowUpRunMutation = { followUpRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkRunHarnessesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkRunHarnessesQuery = { runHarnesses: Array<{ name: string, title: string, summary: string | null, requires: Array<string> }> };\n\nexport class TypedDocumentString<TResult, TVariables>\n extends String\n implements DocumentTypeDecoration<TResult, TVariables>\n{\n __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;\n private value: string;\n public __meta__?: Record<string, any> | undefined;\n\n constructor(value: string, __meta__?: Record<string, any> | undefined) {\n super(value);\n this.value = value;\n this.__meta__ = __meta__;\n }\n\n override toString(): string & DocumentTypeDecoration<TResult, TVariables> {\n return this.value;\n }\n}\nexport const DeploymentFieldsFragmentDoc = new TypedDocumentString(`\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}\n `, {\"fragmentName\":\"DeploymentFields\"}) as unknown as TypedDocumentString<DeploymentFieldsFragment, unknown>;\nexport const FileCommitFieldsFragmentDoc = new TypedDocumentString(`\n fragment FileCommitFields on FileCommit {\n sha\n branch\n message\n committed\n waiting\n waitingCount\n deploys\n conflicts\n writeSHA\n paused\n}\n `, {\"fragmentName\":\"FileCommitFields\"}) as unknown as TypedDocumentString<FileCommitFieldsFragment, unknown>;\nexport const AppErrorGroupFieldsFragmentDoc = new TypedDocumentString(`\n fragment AppErrorGroupFields on AppErrorGroup {\n id\n title\n type\n culprit\n level\n status\n count\n storedEvents\n firstSeen\n lastSeen\n firstDeploymentID\n firstGitCommit\n lastDeploymentID\n lastGitCommit\n resolvedInDeploymentID\n resolvedAt\n mutedAt\n regressedAt\n}\n `, {\"fragmentName\":\"AppErrorGroupFields\"}) as unknown as TypedDocumentString<AppErrorGroupFieldsFragment, unknown>;\nexport const DeploymentTimingsFieldsFragmentDoc = new TypedDocumentString(`\n fragment DeploymentTimingsFields on DeploymentTimings {\n totalMs\n buildMs\n promoteMs\n phases\n buildMode\n artifactTransport\n buildMemoryMiB\n}\n `, {\"fragmentName\":\"DeploymentTimingsFields\"}) as unknown as TypedDocumentString<DeploymentTimingsFieldsFragment, unknown>;\nexport const RunFieldsFragmentDoc = new TypedDocumentString(`\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}\n `, {\"fragmentName\":\"RunFields\"}) as unknown as TypedDocumentString<RunFieldsFragment, unknown>;\nexport const SdkWhoamiDocument = new TypedDocumentString(`\n query SdkWhoami {\n whoami {\n kind\n userID\n name\n agentID\n agentName\n claimed\n claimedBy\n scopes\n expiresAt\n usage {\n month\n requests\n limit\n }\n resources {\n workspaces\n workspaceLimit\n services\n serviceLimit\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWhoamiQuery, SdkWhoamiQueryVariables>;\nexport const SdkCreateWorkspaceDocument = new TypedDocumentString(`\n mutation SdkCreateWorkspace($name: String!) {\n createWorkspace(input: {name: $name}) {\n workspace {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkCreateWorkspaceMutation, SdkCreateWorkspaceMutationVariables>;\nexport const SdkListWorkspacesDocument = new TypedDocumentString(`\n query SdkListWorkspaces {\n workspaces {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspacesQuery, SdkListWorkspacesQueryVariables>;\nexport const SdkDeleteWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean, $confirmAliases: [String!]) {\n deleteWorkspace(\n input: {workspaceID: $workspaceID, withDeployments: $withDeployments, confirmAliases: $confirmAliases}\n ) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceMutation, SdkDeleteWorkspaceMutationVariables>;\nexport const SdkWorkspaceLiveAppsDocument = new TypedDocumentString(`\n query SdkWorkspaceLiveApps($id: ID!) {\n workspace(id: $id) {\n id\n liveApps {\n alias\n deploymentID\n domains\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWorkspaceLiveAppsQuery, SdkWorkspaceLiveAppsQueryVariables>;\nexport const SdkDeleteAppDocument = new TypedDocumentString(`\n mutation SdkDeleteApp($workspaceID: ID!, $alias: String!) {\n deleteApp(input: {workspaceID: $workspaceID, alias: $alias}) {\n ok\n alias\n deployments\n domains\n envEntries\n skippedOnSync\n otherApps\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteAppMutation, SdkDeleteAppMutationVariables>;\nexport const SdkWriteTextFileDocument = new TypedDocumentString(`\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\n writeWorkspaceTextFile(\n input: {workspaceID: $workspaceID, path: $path, text: $text}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteTextFileMutation, SdkWriteTextFileMutationVariables>;\nexport const SdkWriteBase64FileDocument = new TypedDocumentString(`\n mutation SdkWriteBase64File($workspaceID: ID!, $path: String!, $contentBase64: String!) {\n writeWorkspaceBase64File(\n input: {workspaceID: $workspaceID, path: $path, contentBase64: $contentBase64}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteBase64FileMutation, SdkWriteBase64FileMutationVariables>;\nexport const SdkWriteFilesDocument = new TypedDocumentString(`\n mutation SdkWriteFiles($workspaceID: ID!, $files: [WorkspaceFileWriteInput!]!, $commitMessage: String) {\n writeWorkspaceFiles(\n input: {workspaceID: $workspaceID, files: $files, commitMessage: $commitMessage}\n ) {\n workspaceID\n written\n failed\n totalBytes\n files {\n path\n ok\n error\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n commit {\n ...FileCommitFields\n }\n }\n}\n fragment FileCommitFields on FileCommit {\n sha\n branch\n message\n committed\n waiting\n waitingCount\n deploys\n conflicts\n writeSHA\n paused\n}`) as unknown as TypedDocumentString<SdkWriteFilesMutation, SdkWriteFilesMutationVariables>;\nexport const SdkAppCommitsDocument = new TypedDocumentString(`\n query SdkAppCommits($workspaceID: ID!, $limit: Int, $before: String) {\n appCommits(workspaceID: $workspaceID, limit: $limit, before: $before) {\n branch\n head\n nextBefore\n autoDeploy\n waitingCommits\n waitingSince\n commits {\n sha\n message\n authorName\n authorEmail\n authoredAt\n filesChanged\n deployedTo\n }\n deployed {\n alias\n sha\n deploymentID\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkAppCommitsQuery, SdkAppCommitsQueryVariables>;\nexport const SdkAppCommitsWaitingDocument = new TypedDocumentString(`\n query SdkAppCommitsWaiting($workspaceID: ID!) {\n appCommits(workspaceID: $workspaceID, limit: 1) {\n branch\n head\n waitingCommits\n waitingSince\n }\n}\n `) as unknown as TypedDocumentString<SdkAppCommitsWaitingQuery, SdkAppCommitsWaitingQueryVariables>;\nexport const SdkWorkspaceGitSourceDocument = new TypedDocumentString(`\n query SdkWorkspaceGitSource($id: ID!) {\n workspace(id: $id) {\n id\n gitSource {\n branch\n autoDeploy\n deployAlias\n lastImportedCommit\n lastImportedAt\n lastImportStatus\n lastImportError\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWorkspaceGitSourceQuery, SdkWorkspaceGitSourceQueryVariables>;\nexport const SdkAppCommitDocument = new TypedDocumentString(`\n query SdkAppCommit($workspaceID: ID!, $sha: String!) {\n appCommit(workspaceID: $workspaceID, sha: $sha) {\n commit {\n sha\n message\n authorName\n authorEmail\n authoredAt\n filesChanged\n deployedTo\n }\n files {\n path\n status\n }\n patch\n truncated\n additions\n deletions\n }\n}\n `) as unknown as TypedDocumentString<SdkAppCommitQuery, SdkAppCommitQueryVariables>;\nexport const SdkRestoreVersionDocument = new TypedDocumentString(`\n mutation SdkRestoreVersion($workspaceID: ID!, $sha: String!, $expectedHead: String, $message: String) {\n restoreAppVersion(\n input: {workspaceID: $workspaceID, sha: $sha, expectedHead: $expectedHead, message: $message}\n ) {\n sha\n committed\n deploys\n message\n workspaceID\n branch\n deployAlias\n restoredFrom\n parent\n waitAfter\n }\n}\n `) as unknown as TypedDocumentString<SdkRestoreVersionMutation, SdkRestoreVersionMutationVariables>;\nexport const SdkAppErrorsDocument = new TypedDocumentString(`\n query SdkAppErrors($workspaceID: ID!, $alias: String!, $status: String, $limit: Int, $cursor: String) {\n appErrors(\n workspaceID: $workspaceID\n alias: $alias\n status: $status\n limit: $limit\n cursor: $cursor\n ) {\n groups {\n ...AppErrorGroupFields\n }\n nextCursor\n note\n }\n}\n fragment AppErrorGroupFields on AppErrorGroup {\n id\n title\n type\n culprit\n level\n status\n count\n storedEvents\n firstSeen\n lastSeen\n firstDeploymentID\n firstGitCommit\n lastDeploymentID\n lastGitCommit\n resolvedInDeploymentID\n resolvedAt\n mutedAt\n regressedAt\n}`) as unknown as TypedDocumentString<SdkAppErrorsQuery, SdkAppErrorsQueryVariables>;\nexport const SdkAppErrorGroupDocument = new TypedDocumentString(`\n query SdkAppErrorGroup($workspaceID: ID!, $alias: String!, $groupID: ID!) {\n appErrorGroup(workspaceID: $workspaceID, alias: $alias, groupID: $groupID) {\n group {\n ...AppErrorGroupFields\n }\n latestEvent\n firstEvent {\n eventID\n at\n deploymentID\n level\n }\n recentEvents {\n eventID\n at\n deploymentID\n level\n }\n deployments {\n deploymentID\n gitCommit\n current\n count\n firstSeen\n lastSeen\n }\n fatal\n vmID\n }\n}\n fragment AppErrorGroupFields on AppErrorGroup {\n id\n title\n type\n culprit\n level\n status\n count\n storedEvents\n firstSeen\n lastSeen\n firstDeploymentID\n firstGitCommit\n lastDeploymentID\n lastGitCommit\n resolvedInDeploymentID\n resolvedAt\n mutedAt\n regressedAt\n}`) as unknown as TypedDocumentString<SdkAppErrorGroupQuery, SdkAppErrorGroupQueryVariables>;\nexport const SdkResolveErrorGroupDocument = new TypedDocumentString(`\n mutation SdkResolveErrorGroup($input: AppErrorGroupInput!) {\n resolveAppErrorGroup(input: $input) {\n ...AppErrorGroupFields\n }\n}\n fragment AppErrorGroupFields on AppErrorGroup {\n id\n title\n type\n culprit\n level\n status\n count\n storedEvents\n firstSeen\n lastSeen\n firstDeploymentID\n firstGitCommit\n lastDeploymentID\n lastGitCommit\n resolvedInDeploymentID\n resolvedAt\n mutedAt\n regressedAt\n}`) as unknown as TypedDocumentString<SdkResolveErrorGroupMutation, SdkResolveErrorGroupMutationVariables>;\nexport const SdkMuteErrorGroupDocument = new TypedDocumentString(`\n mutation SdkMuteErrorGroup($input: AppErrorGroupInput!) {\n muteAppErrorGroup(input: $input) {\n ...AppErrorGroupFields\n }\n}\n fragment AppErrorGroupFields on AppErrorGroup {\n id\n title\n type\n culprit\n level\n status\n count\n storedEvents\n firstSeen\n lastSeen\n firstDeploymentID\n firstGitCommit\n lastDeploymentID\n lastGitCommit\n resolvedInDeploymentID\n resolvedAt\n mutedAt\n regressedAt\n}`) as unknown as TypedDocumentString<SdkMuteErrorGroupMutation, SdkMuteErrorGroupMutationVariables>;\nexport const SdkReopenErrorGroupDocument = new TypedDocumentString(`\n mutation SdkReopenErrorGroup($input: AppErrorGroupInput!) {\n reopenAppErrorGroup(input: $input) {\n ...AppErrorGroupFields\n }\n}\n fragment AppErrorGroupFields on AppErrorGroup {\n id\n title\n type\n culprit\n level\n status\n count\n storedEvents\n firstSeen\n lastSeen\n firstDeploymentID\n firstGitCommit\n lastDeploymentID\n lastGitCommit\n resolvedInDeploymentID\n resolvedAt\n mutedAt\n regressedAt\n}`) as unknown as TypedDocumentString<SdkReopenErrorGroupMutation, SdkReopenErrorGroupMutationVariables>;\nexport const SdkEventTypesDocument = new TypedDocumentString(`\n query SdkEventTypes {\n platformEventTypes {\n name\n description\n delivery\n inputSchema\n payloadSchema\n }\n}\n `) as unknown as TypedDocumentString<SdkEventTypesQuery, SdkEventTypesQueryVariables>;\nexport const SdkPollEventsDocument = new TypedDocumentString(`\n query SdkPollEvents($input: PlatformEventsInput) {\n pollEvents(input: $input) {\n cursor\n truncated\n hasMore\n nextPollMs\n timedOut\n events {\n eventID\n name\n timestamp\n data\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkPollEventsQuery, SdkPollEventsQueryVariables>;\nexport const SdkWaitForEventsDocument = new TypedDocumentString(`\n query SdkWaitForEvents($input: PlatformEventsInput, $timeoutSeconds: Int) {\n waitForEvents(input: $input, timeoutSeconds: $timeoutSeconds) {\n cursor\n truncated\n hasMore\n nextPollMs\n timedOut\n events {\n eventID\n name\n timestamp\n data\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWaitForEventsQuery, SdkWaitForEventsQueryVariables>;\nexport const SdkListFilesDocument = new TypedDocumentString(`\n query SdkListFiles($input: ListWorkspaceFilesInput!) {\n workspaceFilesPage(input: $input) {\n items {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n `) as unknown as TypedDocumentString<SdkListFilesQuery, SdkListFilesQueryVariables>;\nexport const SdkReadFileDocument = new TypedDocumentString(`\n query SdkReadFile($input: ReadWorkspaceFileInput!) {\n readWorkspaceFile(input: $input) {\n text\n offset\n limit\n totalBytes\n truncated\n nextOffset\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkReadFileQuery, SdkReadFileQueryVariables>;\nexport const SdkDeleteFileDocument = new TypedDocumentString(`\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\n deleteWorkspaceFile(input: {workspaceID: $workspaceID, path: $path}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteFileMutation, SdkDeleteFileMutationVariables>;\nexport const SdkCreateDeploymentDocument = new TypedDocumentString(`\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\n createDeployment(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkCreateDeploymentMutation, SdkCreateDeploymentMutationVariables>;\nexport const SdkDeployWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\n deployWorkspace(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkDeployWorkspaceMutation, SdkDeployWorkspaceMutationVariables>;\nexport const SdkGetDeploymentDocument = new TypedDocumentString(`\n query SdkGetDeployment($id: ID!) {\n deployment(id: $id) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentQuery, SdkGetDeploymentQueryVariables>;\nexport const SdkPollDeploymentDocument = new TypedDocumentString(`\n query SdkPollDeployment($id: ID!) {\n deployment(id: $id) {\n id\n status\n error\n aliasHeld\n url\n previewUrl\n }\n}\n `) as unknown as TypedDocumentString<SdkPollDeploymentQuery, SdkPollDeploymentQueryVariables>;\nexport const SdkGetDeploymentByAliasDocument = new TypedDocumentString(`\n query SdkGetDeploymentByAlias($alias: String!) {\n deploymentByAlias(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentByAliasQuery, SdkGetDeploymentByAliasQueryVariables>;\nexport const SdkListDeploymentsDocument = new TypedDocumentString(`\n query SdkListDeployments($input: ListDeploymentsInput) {\n deploymentsPage(input: $input) {\n items {\n ...DeploymentFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListDeploymentsQuery, SdkListDeploymentsQueryVariables>;\nexport const SdkListReleasesDocument = new TypedDocumentString(`\n query SdkListReleases($alias: String!) {\n deploymentReleases(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListReleasesQuery, SdkListReleasesQueryVariables>;\nexport const SdkRollbackDocument = new TypedDocumentString(`\n mutation SdkRollback($deploymentID: ID!, $expectedCurrentDeploymentID: ID!, $expectedCurrentAliasRevision: String!) {\n rollbackDeployment(\n input: {deploymentID: $deploymentID, expectedCurrentDeploymentID: $expectedCurrentDeploymentID, expectedCurrentAliasRevision: $expectedCurrentAliasRevision}\n ) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkRollbackMutation, SdkRollbackMutationVariables>;\nexport const SdkServiceStatusDocument = new TypedDocumentString(`\n query SdkServiceStatus($deploymentID: ID!) {\n serviceStatus(deploymentID: $deploymentID) {\n deploymentID\n alias\n serviceMode\n running\n health\n vmID\n inFlight\n alwaysOn\n memSizeMiB\n startedAt\n lastUsedAt\n lastStoppedAt\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceStatusQuery, SdkServiceStatusQueryVariables>;\nexport const SdkServiceLogsDocument = new TypedDocumentString(`\n query SdkServiceLogs($deploymentID: ID!, $tailBytes: Int) {\n serviceLogs(deploymentID: $deploymentID, tailBytes: $tailBytes) {\n deploymentID\n stdout\n stderr\n truncated\n stdoutBytes\n stderrBytes\n tailBytes\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceLogsQuery, SdkServiceLogsQueryVariables>;\nexport const SdkDeploymentEventsDocument = new TypedDocumentString(`\n query SdkDeploymentEvents($deploymentID: ID!, $limit: Int) {\n deploymentEvents(deploymentID: $deploymentID, limit: $limit) {\n id\n deploymentID\n type\n rawType\n severity\n message\n vmID\n metadata\n timings {\n ...DeploymentTimingsFields\n }\n createdAt\n }\n}\n fragment DeploymentTimingsFields on DeploymentTimings {\n totalMs\n buildMs\n promoteMs\n phases\n buildMode\n artifactTransport\n buildMemoryMiB\n}`) as unknown as TypedDocumentString<SdkDeploymentEventsQuery, SdkDeploymentEventsQueryVariables>;\nexport const SdkDeploymentTimingsDocument = new TypedDocumentString(`\n query SdkDeploymentTimings($id: ID!) {\n deployment(id: $id) {\n id\n timings {\n ...DeploymentTimingsFields\n }\n }\n}\n fragment DeploymentTimingsFields on DeploymentTimings {\n totalMs\n buildMs\n promoteMs\n phases\n buildMode\n artifactTransport\n buildMemoryMiB\n}`) as unknown as TypedDocumentString<SdkDeploymentTimingsQuery, SdkDeploymentTimingsQueryVariables>;\nexport const SdkWaitForDeploymentDocument = new TypedDocumentString(`\n query SdkWaitForDeployment($id: ID!, $timeoutSeconds: Int) {\n waitForDeployment(id: $id, timeoutSeconds: $timeoutSeconds) {\n timedOut\n waitedMs\n placement\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkWaitForDeploymentQuery, SdkWaitForDeploymentQueryVariables>;\nexport const SdkWaitForCommitDeploymentDocument = new TypedDocumentString(`\n query SdkWaitForCommitDeployment($workspaceID: ID!, $gitCommit: String!, $alias: String, $after: Int, $timeoutSeconds: Int) {\n waitForDeployment(\n workspaceID: $workspaceID\n gitCommit: $gitCommit\n alias: $alias\n after: $after\n timeoutSeconds: $timeoutSeconds\n ) {\n status\n importStatus\n importError\n timedOut\n waitedMs\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkWaitForCommitDeploymentQuery, SdkWaitForCommitDeploymentQueryVariables>;\nexport const SdkRestartServiceDocument = new TypedDocumentString(`\n mutation SdkRestartService($deploymentID: ID!) {\n restartService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkRestartServiceMutation, SdkRestartServiceMutationVariables>;\nexport const SdkStopServiceDocument = new TypedDocumentString(`\n mutation SdkStopService($deploymentID: ID!) {\n stopService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkStopServiceMutation, SdkStopServiceMutationVariables>;\nexport const SdkDeleteDeploymentDocument = new TypedDocumentString(`\n mutation SdkDeleteDeployment($deploymentID: ID!) {\n deleteDeployment(input: {deploymentID: $deploymentID}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteDeploymentMutation, SdkDeleteDeploymentMutationVariables>;\nexport const SdkSetWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceEnv($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name, value: $value}) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceEnvMutation, SdkSetWorkspaceEnvMutationVariables>;\nexport const SdkSetWorkspaceSecretDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceSecret(\n input: {workspaceID: $workspaceID, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceSecretMutation, SdkSetWorkspaceSecretMutationVariables>;\nexport const SdkDeleteWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\n deleteWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceEnvMutation, SdkDeleteWorkspaceEnvMutationVariables>;\nexport const SdkListWorkspaceEnvDocument = new TypedDocumentString(`\n query SdkListWorkspaceEnv($workspaceID: ID!) {\n workspaceEnv(workspaceID: $workspaceID) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspaceEnvQuery, SdkListWorkspaceEnvQueryVariables>;\nexport const SdkSetAppEnvDocument = new TypedDocumentString(`\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppEnv(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppEnvMutation, SdkSetAppEnvMutationVariables>;\nexport const SdkSetAppSecretDocument = new TypedDocumentString(`\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppSecret(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppSecretMutation, SdkSetAppSecretMutationVariables>;\nexport const SdkRemoveAppEnvDocument = new TypedDocumentString(`\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n removeAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkRemoveAppEnvMutation, SdkRemoveAppEnvMutationVariables>;\nexport const SdkInheritAppEnvDocument = new TypedDocumentString(`\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n inheritAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkInheritAppEnvMutation, SdkInheritAppEnvMutationVariables>;\nexport const SdkListAppEnvDocument = new TypedDocumentString(`\n query SdkListAppEnv($workspaceID: ID!, $alias: String!) {\n appEnv(workspaceID: $workspaceID, alias: $alias) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListAppEnvQuery, SdkListAppEnvQueryVariables>;\nexport const SdkCreateRunDocument = new TypedDocumentString(`\n mutation SdkCreateRun($input: CreateRunInput!) {\n createRun(input: $input) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkCreateRunMutation, SdkCreateRunMutationVariables>;\nexport const SdkGetRunDocument = new TypedDocumentString(`\n query SdkGetRun($id: ID!) {\n run(id: $id) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkGetRunQuery, SdkGetRunQueryVariables>;\nexport const SdkPollRunDocument = new TypedDocumentString(`\n query SdkPollRun($id: ID!) {\n run(id: $id) {\n id\n status\n error\n exitCode\n }\n}\n `) as unknown as TypedDocumentString<SdkPollRunQuery, SdkPollRunQueryVariables>;\nexport const SdkListRunsDocument = new TypedDocumentString(`\n query SdkListRuns($input: ListRunsInput) {\n runs(input: $input) {\n items {\n ...RunFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkListRunsQuery, SdkListRunsQueryVariables>;\nexport const SdkCancelRunDocument = new TypedDocumentString(`\n mutation SdkCancelRun($id: ID!) {\n cancelRun(id: $id) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkCancelRunMutation, SdkCancelRunMutationVariables>;\nexport const SdkRunEventsDocument = new TypedDocumentString(`\n query SdkRunEvents($runID: ID!, $limit: Int) {\n runEvents(runID: $runID, limit: $limit) {\n id\n runID\n type\n severity\n message\n metadata\n createdAt\n }\n}\n `) as unknown as TypedDocumentString<SdkRunEventsQuery, SdkRunEventsQueryVariables>;\nexport const SdkRunConsoleDocument = new TypedDocumentString(`\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\n runConsole(id: $id, tailBytes: $tailBytes) {\n runID\n running\n text\n }\n}\n `) as unknown as TypedDocumentString<SdkRunConsoleQuery, SdkRunConsoleQueryVariables>;\nexport const SdkRunTranscriptDocument = new TypedDocumentString(`\n query SdkRunTranscript($id: ID!, $tailBytes: Int) {\n runTranscript(id: $id, tailBytes: $tailBytes) {\n runID\n available\n text\n totalBytes\n truncated\n }\n}\n `) as unknown as TypedDocumentString<SdkRunTranscriptQuery, SdkRunTranscriptQueryVariables>;\nexport const SdkAnswerRunDocument = new TypedDocumentString(`\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\n answerRun(id: $id, answer: $answer) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkAnswerRunMutation, SdkAnswerRunMutationVariables>;\nexport const SdkFollowUpRunDocument = new TypedDocumentString(`\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\n followUpRun(input: $input) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkFollowUpRunMutation, SdkFollowUpRunMutationVariables>;\nexport const SdkRunHarnessesDocument = new TypedDocumentString(`\n query SdkRunHarnesses {\n runHarnesses {\n name\n title\n summary\n requires\n }\n}\n `) as unknown as TypedDocumentString<SdkRunHarnessesQuery, SdkRunHarnessesQueryVariables>;"]}
package/dist/index.d.ts CHANGED
@@ -17,16 +17,25 @@
17
17
  * console.log(app.url);
18
18
  * ```
19
19
  *
20
+ * `help()` returns the reference: every method with its signature.
21
+ *
20
22
  * Two layers, both public:
21
- * - {@link Unfazed} — the workflow layer (deploy + wait, batch writes, one-call rollback).
23
+ * - {@link Unfazed} — the workflow layer (deploy + wait, one-commit batch
24
+ * writes, history and restore, errors, events, one-call rollback).
22
25
  * - {@link UnfazedClient} — the typed GraphQL transport, for anything not wrapped.
23
26
  */
24
27
  import type { RemoteWorld, RemoteWorldOptions } from "./remote/world.js";
25
- export { Unfazed } from "./unfazed.js";
26
- export type { CreateRunOptions, FollowUpRunOptions, DeleteDeploymentOptions, DeleteWorkspaceOptions, Deployment, DeployBoxOptions, DeployOptions, DeployServiceOptions, DeployStaticOptions, EnvVar, FileContent, FilesMap, ListRunsFilter, RollbackOptions, Run, UnfazedOptions, Workspace, WorkspaceFile, WriteFilesOptions, } from "./unfazed.js";
28
+ export { Unfazed, parseDeploymentTimings } from "./unfazed.js";
29
+ export type { AppRef, ClientTimings, CommitDeploymentTarget, CommitDetail, CommitPage, CommitsLanded, CreateRunOptions, FollowUpRunOptions, DeleteAppOptions, DeleteAppResult, DeleteDeploymentOptions, DeleteWorkspaceOptions, Deployment, DeploymentEvent, DeployBoxOptions, DeployOptions, DeployResult, DeployServiceOptions, DeployStaticOptions, DeployTimings, EnvVar, ErrorGroup, ErrorGroupDetail, ErrorGroupPage, ErrorGroupRef, EventPage, EventsInput, EventType, FileCommit, FileContent, FilesMap, FileWriteOutcome, ListErrorsOptions, ListRunsFilter, LiveApp, PlatformEvent, PlatformTimings, RestoreVersionOptions, RestoreVersionResult, RollbackOptions, Run, TimingEvent, UnfazedOptions, Workspace, WorkspaceFile, WriteFilesOptions, WriteFilesResult, WrittenFile, } from "./unfazed.js";
30
+ /**
31
+ * The SDK's reference — every method with its signature — as a string:
32
+ * `help()` for the page, `help("writeFiles")` for one entry. The same page
33
+ * ships as REFERENCE.md and is served at https://unfazed.dev/sdk.md.
34
+ */
35
+ export { help, REFERENCE } from "./reference.js";
27
36
  export { UnfazedClient, DEFAULT_BASE_URL, DEFAULT_ENDPOINT, ENDPOINT_ENV_VAR, GRAPHQL_PATH, TOKEN_ENV_VAR, VERSION, } from "./client.js";
28
37
  export type { ClientOptions, FetchLike, GraphQLDocument, RequestOptions, ResultOf, VariablesOf, } from "./client.js";
29
- export { DEPLOYMENT_NOT_FOUND, UnfazedAuthError, UnfazedConfigError, UnfazedConflictError, UnfazedDeployError, UnfazedError, UnfazedGraphQLError, UnfazedHTTPError, UnfazedNotFoundError, UnfazedRunError, UnfazedTimeoutError, WORKSPACE_NOT_FOUND, isDuplicateWorkspaceName, isNotFoundSentinel, } from "./errors.js";
38
+ export { DEPLOYMENT_NOT_FOUND, UnfazedAuthError, UnfazedConfigError, UnfazedConflictError, UnfazedDeployError, UnfazedError, UnfazedGraphQLError, UnfazedHTTPError, UnfazedNotFoundError, UnfazedRunError, UnfazedTimeoutError, UnfazedUnconfirmedAppsError, UnfazedWriteError, WORKSPACE_NOT_FOUND, isDuplicateWorkspaceName, isNotFoundSentinel, isTooManyWaits, } from "./errors.js";
30
39
  export type { GraphQLResponseError } from "./errors.js";
31
40
  export type { WaitOptions } from "./wait.js";
32
41
  /**
package/dist/index.js CHANGED
@@ -17,13 +17,22 @@
17
17
  * console.log(app.url);
18
18
  * ```
19
19
  *
20
+ * `help()` returns the reference: every method with its signature.
21
+ *
20
22
  * Two layers, both public:
21
- * - {@link Unfazed} — the workflow layer (deploy + wait, batch writes, one-call rollback).
23
+ * - {@link Unfazed} — the workflow layer (deploy + wait, one-commit batch
24
+ * writes, history and restore, errors, events, one-call rollback).
22
25
  * - {@link UnfazedClient} — the typed GraphQL transport, for anything not wrapped.
23
26
  */
24
- export { Unfazed } from "./unfazed.js";
27
+ export { Unfazed, parseDeploymentTimings } from "./unfazed.js";
28
+ /**
29
+ * The SDK's reference — every method with its signature — as a string:
30
+ * `help()` for the page, `help("writeFiles")` for one entry. The same page
31
+ * ships as REFERENCE.md and is served at https://unfazed.dev/sdk.md.
32
+ */
33
+ export { help, REFERENCE } from "./reference.js";
25
34
  export { UnfazedClient, DEFAULT_BASE_URL, DEFAULT_ENDPOINT, ENDPOINT_ENV_VAR, GRAPHQL_PATH, TOKEN_ENV_VAR, VERSION, } from "./client.js";
26
- export { DEPLOYMENT_NOT_FOUND, UnfazedAuthError, UnfazedConfigError, UnfazedConflictError, UnfazedDeployError, UnfazedError, UnfazedGraphQLError, UnfazedHTTPError, UnfazedNotFoundError, UnfazedRunError, UnfazedTimeoutError, WORKSPACE_NOT_FOUND, isDuplicateWorkspaceName, isNotFoundSentinel, } from "./errors.js";
35
+ export { DEPLOYMENT_NOT_FOUND, UnfazedAuthError, UnfazedConfigError, UnfazedConflictError, UnfazedDeployError, UnfazedError, UnfazedGraphQLError, UnfazedHTTPError, UnfazedNotFoundError, UnfazedRunError, UnfazedTimeoutError, UnfazedUnconfirmedAppsError, UnfazedWriteError, WORKSPACE_NOT_FOUND, isDuplicateWorkspaceName, isNotFoundSentinel, isTooManyWaits, } from "./errors.js";
27
36
  /**
28
37
  * The stored login of `npx unfazed login`, which {@link UnfazedClient} uses when
29
38
  * no token is passed and `UNFZ_API_TOKEN` is unset. The helpers that read,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAuBvC,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,OAAO,GACR,MAAM,aAAa,CAAC;AAUrB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAKrB;;;;GAIG;AACH,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,OAA4B;IAC5D,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAChE,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC;AAED;;;GAGG;AACH,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC","sourcesContent":["/**\n * unfazed — official TypeScript SDK.\n *\n * The code-mode companion to the unfazed MCP server: write one script that\n * deploys, waits, reads logs and filters them locally, instead of chaining a\n * dozen tool calls through a model's context.\n *\n * ```ts\n * import { Unfazed } from \"unfazed\";\n *\n * const unfazed = new Unfazed(); // UNFZ_API_TOKEN, else your `npx unfazed login`\n * const ws = await unfazed.createWorkspace(\"hello\");\n * await unfazed.writeFiles(ws.id, {\n * \"server.ts\": `export default { fetch: () => new Response(\"hi\") }`,\n * });\n * const app = await unfazed.deployService({ workspaceId: ws.id, alias: \"hello\", wait: true });\n * console.log(app.url);\n * ```\n *\n * Two layers, both public:\n * - {@link Unfazed} — the workflow layer (deploy + wait, batch writes, one-call rollback).\n * - {@link UnfazedClient} — the typed GraphQL transport, for anything not wrapped.\n */\n\nimport type { RemoteWorld, RemoteWorldOptions } from \"./remote/world.js\";\n\nexport { Unfazed } from \"./unfazed.js\";\nexport type {\n CreateRunOptions,\n FollowUpRunOptions,\n DeleteDeploymentOptions,\n DeleteWorkspaceOptions,\n Deployment,\n DeployBoxOptions,\n DeployOptions,\n DeployServiceOptions,\n DeployStaticOptions,\n EnvVar,\n FileContent,\n FilesMap,\n ListRunsFilter,\n RollbackOptions,\n Run,\n UnfazedOptions,\n Workspace,\n WorkspaceFile,\n WriteFilesOptions,\n} from \"./unfazed.js\";\n\nexport {\n UnfazedClient,\n DEFAULT_BASE_URL,\n DEFAULT_ENDPOINT,\n ENDPOINT_ENV_VAR,\n GRAPHQL_PATH,\n TOKEN_ENV_VAR,\n VERSION,\n} from \"./client.js\";\nexport type {\n ClientOptions,\n FetchLike,\n GraphQLDocument,\n RequestOptions,\n ResultOf,\n VariablesOf,\n} from \"./client.js\";\n\nexport {\n DEPLOYMENT_NOT_FOUND,\n UnfazedAuthError,\n UnfazedConfigError,\n UnfazedConflictError,\n UnfazedDeployError,\n UnfazedError,\n UnfazedGraphQLError,\n UnfazedHTTPError,\n UnfazedNotFoundError,\n UnfazedRunError,\n UnfazedTimeoutError,\n WORKSPACE_NOT_FOUND,\n isDuplicateWorkspaceName,\n isNotFoundSentinel,\n} from \"./errors.js\";\nexport type { GraphQLResponseError } from \"./errors.js\";\n\nexport type { WaitOptions } from \"./wait.js\";\n\n/**\n * The stored login of `npx unfazed login`, which {@link UnfazedClient} uses when\n * no token is passed and `UNFZ_API_TOKEN` is unset. The helpers that read,\n * write and refresh it are in `unfazed/credentials`.\n */\nexport { CREDENTIALS_FILE, LOGIN_COMMAND, credentialsPath } from \"./credentials.js\";\nexport type { StoredCredentials } from \"./credentials.js\";\n\nexport { UnfazedInspectError } from \"./errors.js\";\nexport { APP_ENV_VAR } from \"./remote/app.js\";\nexport type { RemoteWorld, RemoteWorldOptions } from \"./remote/world.js\";\n\n/**\n * The `unfazed` backend of Workflow SDK's CLI: a read-mostly World over the\n * platform's workflow inspection API, for one app.\n *\n * ```sh\n * npx unfazed login # once: signs you in, in the browser\n * UNFZ_APP=birthday-card npx workflow inspect runs --backend unfazed\n * ```\n *\n * The token is `UNFZ_API_TOKEN` when set, else the stored login of\n * `npx unfazed login`, refreshed as it expires.\n *\n * The CLI (and its `--web` UI) resolve `unfazed` from the project and call\n * this with no arguments. The app is `UNFZ_APP`, else the `alias` (or the\n * single `apps[]` entry) of `unfazed.json` in the current directory. Reads\n * and `workflow cancel` work; every other write throws, since an app's own\n * World is `unfazed/workflow`. The module behind it loads on first call, so\n * `import \"unfazed\"` stays as light as before.\n */\nexport async function createWorld(options?: RemoteWorldOptions): Promise<RemoteWorld> {\n const { createRemoteWorld } = await import(\"./remote/world.js\");\n return createRemoteWorld(options);\n}\n\n/**\n * Every operation document the workflow layer uses, for callers that want the\n * typed documents but not the wrapper methods.\n */\nexport * as operations from \"./operations.js\";\n\n/**\n * Schema types generated from the platform's `graph/schema.graphqls`: enums\n * (`DeploymentStatus`, `ServiceMode`, ...), input objects\n * (`CreateDeploymentInput`, ...) and every operation's result type.\n */\nexport type * from \"./generated/graphql.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAIH,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAoD/D;;;;GAIG;AACH,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,OAAO,GACR,MAAM,aAAa,CAAC;AAUrB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,2BAA2B,EAC3B,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,GACf,MAAM,aAAa,CAAC;AAKrB;;;;GAIG;AACH,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,OAA4B;IAC5D,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAChE,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC;AAED;;;GAGG;AACH,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC","sourcesContent":["/**\n * unfazed — official TypeScript SDK.\n *\n * The code-mode companion to the unfazed MCP server: write one script that\n * deploys, waits, reads logs and filters them locally, instead of chaining a\n * dozen tool calls through a model's context.\n *\n * ```ts\n * import { Unfazed } from \"unfazed\";\n *\n * const unfazed = new Unfazed(); // UNFZ_API_TOKEN, else your `npx unfazed login`\n * const ws = await unfazed.createWorkspace(\"hello\");\n * await unfazed.writeFiles(ws.id, {\n * \"server.ts\": `export default { fetch: () => new Response(\"hi\") }`,\n * });\n * const app = await unfazed.deployService({ workspaceId: ws.id, alias: \"hello\", wait: true });\n * console.log(app.url);\n * ```\n *\n * `help()` returns the reference: every method with its signature.\n *\n * Two layers, both public:\n * - {@link Unfazed} — the workflow layer (deploy + wait, one-commit batch\n * writes, history and restore, errors, events, one-call rollback).\n * - {@link UnfazedClient} — the typed GraphQL transport, for anything not wrapped.\n */\n\nimport type { RemoteWorld, RemoteWorldOptions } from \"./remote/world.js\";\n\nexport { Unfazed, parseDeploymentTimings } from \"./unfazed.js\";\nexport type {\n AppRef,\n ClientTimings,\n CommitDeploymentTarget,\n CommitDetail,\n CommitPage,\n CommitsLanded,\n CreateRunOptions,\n FollowUpRunOptions,\n DeleteAppOptions,\n DeleteAppResult,\n DeleteDeploymentOptions,\n DeleteWorkspaceOptions,\n Deployment,\n DeploymentEvent,\n DeployBoxOptions,\n DeployOptions,\n DeployResult,\n DeployServiceOptions,\n DeployStaticOptions,\n DeployTimings,\n EnvVar,\n ErrorGroup,\n ErrorGroupDetail,\n ErrorGroupPage,\n ErrorGroupRef,\n EventPage,\n EventsInput,\n EventType,\n FileCommit,\n FileContent,\n FilesMap,\n FileWriteOutcome,\n ListErrorsOptions,\n ListRunsFilter,\n LiveApp,\n PlatformEvent,\n PlatformTimings,\n RestoreVersionOptions,\n RestoreVersionResult,\n RollbackOptions,\n Run,\n TimingEvent,\n UnfazedOptions,\n Workspace,\n WorkspaceFile,\n WriteFilesOptions,\n WriteFilesResult,\n WrittenFile,\n} from \"./unfazed.js\";\n\n/**\n * The SDK's reference — every method with its signature — as a string:\n * `help()` for the page, `help(\"writeFiles\")` for one entry. The same page\n * ships as REFERENCE.md and is served at https://unfazed.dev/sdk.md.\n */\nexport { help, REFERENCE } from \"./reference.js\";\n\nexport {\n UnfazedClient,\n DEFAULT_BASE_URL,\n DEFAULT_ENDPOINT,\n ENDPOINT_ENV_VAR,\n GRAPHQL_PATH,\n TOKEN_ENV_VAR,\n VERSION,\n} from \"./client.js\";\nexport type {\n ClientOptions,\n FetchLike,\n GraphQLDocument,\n RequestOptions,\n ResultOf,\n VariablesOf,\n} from \"./client.js\";\n\nexport {\n DEPLOYMENT_NOT_FOUND,\n UnfazedAuthError,\n UnfazedConfigError,\n UnfazedConflictError,\n UnfazedDeployError,\n UnfazedError,\n UnfazedGraphQLError,\n UnfazedHTTPError,\n UnfazedNotFoundError,\n UnfazedRunError,\n UnfazedTimeoutError,\n UnfazedUnconfirmedAppsError,\n UnfazedWriteError,\n WORKSPACE_NOT_FOUND,\n isDuplicateWorkspaceName,\n isNotFoundSentinel,\n isTooManyWaits,\n} from \"./errors.js\";\nexport type { GraphQLResponseError } from \"./errors.js\";\n\nexport type { WaitOptions } from \"./wait.js\";\n\n/**\n * The stored login of `npx unfazed login`, which {@link UnfazedClient} uses when\n * no token is passed and `UNFZ_API_TOKEN` is unset. The helpers that read,\n * write and refresh it are in `unfazed/credentials`.\n */\nexport { CREDENTIALS_FILE, LOGIN_COMMAND, credentialsPath } from \"./credentials.js\";\nexport type { StoredCredentials } from \"./credentials.js\";\n\nexport { UnfazedInspectError } from \"./errors.js\";\nexport { APP_ENV_VAR } from \"./remote/app.js\";\nexport type { RemoteWorld, RemoteWorldOptions } from \"./remote/world.js\";\n\n/**\n * The `unfazed` backend of Workflow SDK's CLI: a read-mostly World over the\n * platform's workflow inspection API, for one app.\n *\n * ```sh\n * npx unfazed login # once: signs you in, in the browser\n * UNFZ_APP=birthday-card npx workflow inspect runs --backend unfazed\n * ```\n *\n * The token is `UNFZ_API_TOKEN` when set, else the stored login of\n * `npx unfazed login`, refreshed as it expires.\n *\n * The CLI (and its `--web` UI) resolve `unfazed` from the project and call\n * this with no arguments. The app is `UNFZ_APP`, else the `alias` (or the\n * single `apps[]` entry) of `unfazed.json` in the current directory. Reads\n * and `workflow cancel` work; every other write throws, since an app's own\n * World is `unfazed/workflow`. The module behind it loads on first call, so\n * `import \"unfazed\"` stays as light as before.\n */\nexport async function createWorld(options?: RemoteWorldOptions): Promise<RemoteWorld> {\n const { createRemoteWorld } = await import(\"./remote/world.js\");\n return createRemoteWorld(options);\n}\n\n/**\n * Every operation document the workflow layer uses, for callers that want the\n * typed documents but not the wrapper methods.\n */\nexport * as operations from \"./operations.js\";\n\n/**\n * Schema types generated from the platform's `graph/schema.graphqls`: enums\n * (`DeploymentStatus`, `ServiceMode`, ...), input objects\n * (`CreateDeploymentInput`, ...) and every operation's result type.\n */\nexport type * from \"./generated/graphql.js\";\n"]}