unfazed 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +80 -0
- package/README.md +93 -5
- package/REFERENCE.md +72 -13
- package/dist/cli/login.d.ts +1 -1
- package/dist/client.d.ts +21 -1
- package/dist/client.js +12 -4
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +49 -0
- package/dist/errors.js +25 -0
- package/dist/errors.js.map +1 -1
- package/dist/generated/gql.d.ts +14 -2
- package/dist/generated/gql.js +5 -2
- package/dist/generated/gql.js.map +1 -1
- package/dist/generated/graphql.d.ts +82 -1
- package/dist/generated/graphql.js +87 -1
- package/dist/generated/graphql.js.map +1 -1
- package/dist/index.d.ts +17 -3
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/oidc.d.ts +161 -0
- package/dist/oidc.js +391 -0
- package/dist/oidc.js.map +1 -0
- package/dist/operations.d.ts +29 -1
- package/dist/operations.js +70 -1
- package/dist/operations.js.map +1 -1
- package/dist/reference.generated.js +1 -1
- package/dist/reference.generated.js.map +1 -1
- package/dist/reference.js +3 -3
- package/dist/reference.js.map +1 -1
- package/dist/unfazed.d.ts +84 -19
- package/dist/unfazed.js +249 -54
- package/dist/unfazed.js.map +1 -1
- package/package.json +1 -1
- package/schema/SOURCE.json +3 -3
- package/schema/schema.graphqls +81 -5
package/dist/errors.js
CHANGED
|
@@ -193,6 +193,31 @@ export class UnfazedConflictError extends UnfazedError {
|
|
|
193
193
|
/** The requested alias, deployment or release does not exist (or was pruned). */
|
|
194
194
|
export class UnfazedNotFoundError extends UnfazedError {
|
|
195
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* `oidc.token()` (or `tokenResponse`, or a `fetchWithToken` fetch) got no
|
|
198
|
+
* token. `code` is the platform's `error` (`invalid_audience`, `rate_limited`,
|
|
199
|
+
* …), passed through as sent, or one of the SDK's own ({@link OIDCErrorCode});
|
|
200
|
+
* `description` is the platform's `error_description`.
|
|
201
|
+
*/
|
|
202
|
+
export class UnfazedOIDCError extends UnfazedError {
|
|
203
|
+
code;
|
|
204
|
+
/** HTTP status from the platform; undefined for a refusal made locally. */
|
|
205
|
+
status;
|
|
206
|
+
/** The platform's `error_description`. */
|
|
207
|
+
description;
|
|
208
|
+
/** Asking again later may succeed (`rate_limited`, `temporarily_unavailable`, `unreachable`). */
|
|
209
|
+
retryable;
|
|
210
|
+
/** The platform's `Retry-After`, in ms, when it sent one. */
|
|
211
|
+
retryAfterMs;
|
|
212
|
+
constructor(code, message, options = {}) {
|
|
213
|
+
super(message, options.cause === undefined ? undefined : { cause: options.cause });
|
|
214
|
+
this.code = code;
|
|
215
|
+
this.status = options.status;
|
|
216
|
+
this.description = options.description;
|
|
217
|
+
this.retryable = options.retryable ?? false;
|
|
218
|
+
this.retryAfterMs = options.retryAfterMs;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
196
221
|
/**
|
|
197
222
|
* What the `unfazed` CLI backend's World (`createWorld()`) throws.
|
|
198
223
|
*
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH,iDAAiD;AACjD,MAAM,OAAO,YAAa,SAAQ,KAAK;IACrC,YAAY,OAAe,EAAE,OAA6B;QACxD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;IAC9B,CAAC;CACF;AAED,qEAAqE;AACrE,MAAM,OAAO,gBAAiB,SAAQ,YAAY;CAAG;AAErD,+DAA+D;AAC/D,MAAM,OAAO,kBAAmB,SAAQ,YAAY;CAAG;AAEvD;;;;GAIG;AACH,MAAM,OAAO,gBAAiB,SAAQ,YAAY;IACvC,MAAM,CAAS;IACf,IAAI,CAAS;IAEtB,YAAY,MAAc,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;AACH,MAAM,wBAAwB,GAAG,6CAA6C,CAAC;AAE/E,kFAAkF;AAClF,MAAM,UAAU,wBAAwB,CAAC,KAAc;IACrD,OAAO,CACL,KAAK,YAAY,mBAAmB;QACpC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CACnE,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CAAC,CAAS,EAAE,GAAG,GAAG,GAAG;IACpC,OAAO,CAAC,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC;AACrD,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,YAAY,GAAa;IAC7B,wCAAwC;IACxC,mCAAmC;IACnC,yBAAyB;IACzB,uBAAuB;IACvB,gFAAgF;IAChF,gFAAgF;CACjF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAA8B;IACjE,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACrF,CAAC","sourcesContent":["/**\n * Error taxonomy.\n *\n * Everything the SDK throws is an {@link UnfazedError}, so a code-mode script\n * can `catch (e) { if (e instanceof UnfazedError) ... }` and still\n * discriminate on the subclass to decide whether to retry.\n */\n\n/** A single entry from a GraphQL response's `errors` array. */\nexport interface GraphQLResponseError {\n message: string;\n path?: (string | number)[];\n extensions?: Record<string, unknown>;\n}\n\n/** Base class for everything this SDK throws. */\nexport class UnfazedError extends Error {\n constructor(message: string, options?: { cause?: unknown }) {\n super(message, options);\n this.name = new.target.name;\n }\n}\n\n/** No token was passed and no token environment variable was set. */\nexport class UnfazedAuthError extends UnfazedError {}\n\n/** The runtime has no global `fetch` and none was injected. */\nexport class UnfazedConfigError extends UnfazedError {}\n\n/**\n * The endpoint answered with a non-2xx status. `status` is the HTTP status and\n * `body` the response text, which is where the platform reports non-GraphQL\n * failures such as an expired or wrong-scope bearer token.\n */\nexport class UnfazedHTTPError extends UnfazedError {\n readonly status: number;\n readonly body: string;\n\n constructor(status: number, body: string, url: string) {\n super(`unfazed: HTTP ${status} from ${url}${body ? `: ${truncate(body)}` : \"\"}`);\n this.status = status;\n this.body = body;\n }\n}\n\n/**\n * The endpoint answered 200 with a GraphQL `errors` array.\n *\n * Partial `data` is preserved deliberately: the batched writeFiles document\n * resolves each aliased field independently, so one path can fail while the\n * others commit, and the caller needs to see which landed.\n */\nexport class UnfazedGraphQLError extends UnfazedError {\n readonly errors: GraphQLResponseError[];\n readonly data: unknown;\n\n constructor(errors: GraphQLResponseError[], data: unknown) {\n const summary = errors.map((e) => e.message).join(\"; \") || \"unknown GraphQL error\";\n super(`unfazed: ${summary}`);\n this.errors = errors;\n this.data = data;\n }\n}\n\n/**\n * The server refused a delete that would take apps offline without the call\n * naming exactly those apps, and deleted nothing.\n *\n * `deleteWorkspace` with `withDeployments` takes down every app the workspace\n * serves, so its `confirmAliases` must equal the workspace's live apps — no\n * more, no fewer. A missing or extra alias, or an app that went live after the\n * check, is refused. The message is the server's, verbatim: it lists each live\n * app with its custom domains and says how to name them. Look the apps up\n * deliberately with `unfazed.liveApps(workspaceId)`, decide, and delete again,\n * or delete one app with `unfazed.deleteApp`.\n *\n * Still an {@link UnfazedGraphQLError}, so existing `catch` sites keep matching.\n */\nexport class UnfazedUnconfirmedAppsError extends UnfazedGraphQLError {\n /** The workspace whose delete was refused. */\n readonly workspaceId: string;\n /** The aliases the refused call named. */\n readonly confirmAliases: readonly string[];\n\n constructor(\n workspaceId: string,\n confirmAliases: readonly string[],\n errors: GraphQLResponseError[],\n data: unknown,\n ) {\n super(errors, data);\n this.workspaceId = workspaceId;\n this.confirmAliases = confirmAliases;\n }\n}\n\n/**\n * How the server opens every refusal of a delete whose named apps do not match\n * the live ones (usecases.UnconfirmedAppsError, and the race where an app went\n * live after the check). Anchored at the start, so a message that merely\n * mentions the phrase is not mistaken for one.\n */\nconst NOTHING_WAS_DELETED = /^nothing was deleted:/i;\n\n/** Did the server refuse a delete because the named apps are not exactly the live ones? */\nexport function isUnconfirmedAppsRefusal(error: unknown): error is UnfazedGraphQLError {\n return (\n error instanceof UnfazedGraphQLError &&\n error.errors.some((e) => NOTHING_WAS_DELETED.test(e.message.trim()))\n );\n}\n\n/** A request exceeded `timeoutMs`, or the caller's AbortSignal fired. */\nexport class UnfazedTimeoutError extends UnfazedError {}\n\n/**\n * `writeFiles` wrote some files and not others.\n *\n * Writes are not transactional, exactly as MCP `write_workspace_files`: the\n * files listed in `result.files` with `ok: true` ARE written (and, on an app\n * with platform git, committed), the others are not. `result` is the whole\n * answer, `failed` names the paths that did not land and why. Retry only\n * those paths. Pass `allowPartial: true` to get the result instead of this\n * error.\n */\nexport class UnfazedWriteError extends UnfazedError {\n /** What the call wrote: every file's outcome and the commit. */\n readonly result: unknown;\n /** The paths that were not written, with the server's reason. */\n readonly failed: { path: string; error: string }[];\n\n constructor(result: unknown, failed: { path: string; error: string }[]) {\n super(\n `unfazed: ${failed.length} file(s) were not written (the others were): ` +\n failed.map((f) => `${f.path}: ${f.error}`).join(\"; \"),\n );\n this.result = result;\n this.failed = failed;\n }\n}\n\n/**\n * Did the platform refuse a long wait because the caller (or the server) has\n * too many in progress? Nothing was waited on; polling is the way on.\n */\nexport function isTooManyWaits(error: unknown): boolean {\n return (\n error instanceof UnfazedGraphQLError &&\n error.errors.some((e) => /waits in progress|long wait per operation/i.test(e.message))\n );\n}\n\n/**\n * Did the server refuse the document because it does not know `field` (a\n * platform older than this SDK)? The SDK uses it to fall back to the older\n * way of doing the same thing, never to hide a real error.\n */\nexport function isUnsupportedField(error: unknown, field: string): boolean {\n if (!(error instanceof UnfazedGraphQLError)) return false;\n const quoted = `\"${field}\"`;\n return error.errors.some(\n (e) =>\n e.message.includes(quoted) &&\n /Cannot query field|is not defined by type|Unknown argument|Unknown type|not defined on/i.test(e.message),\n );\n}\n\n/**\n * Waiting on a deploy ended badly.\n *\n * `reason` separates the two outcomes because they need different handling:\n * FAILED means the build finished and is broken (read `deployment.error` and\n * fix the source — retrying will not help), TIMEOUT means it is still BUILDING\n * and polling longer may still succeed.\n */\nexport class UnfazedDeployError extends UnfazedError {\n readonly reason: \"FAILED\" | \"TIMEOUT\";\n readonly deploymentId: string;\n /** Last deployment snapshot observed before giving up. */\n readonly deployment: unknown;\n\n constructor(\n reason: \"FAILED\" | \"TIMEOUT\",\n deploymentId: string,\n deployment: unknown,\n message: string,\n ) {\n super(message);\n this.reason = reason;\n this.deploymentId = deploymentId;\n this.deployment = deployment;\n }\n}\n\n/**\n * Waiting on a run timed out.\n *\n * Unlike {@link UnfazedDeployError}, a run's FAILED status is never thrown\n * here: {@link import(\"./unfazed.js\").Unfazed.waitForRun} resolves on\n * SUCCEEDED, FAILED and CANCELLED alike, because a run that executed and\n * exited non-zero is a completed answer — read `run.error`/`run.exitCode` —\n * not a broken build the way a FAILED deployment is. TIMEOUT is the only\n * outcome still worth an exception: the run is, as far as the last poll\n * showed, still QUEUED or RUNNING, and waiting longer may yet succeed.\n */\nexport class UnfazedRunError extends UnfazedError {\n readonly reason: \"TIMEOUT\";\n readonly runId: string;\n /** Last run snapshot observed before giving up. */\n readonly run: unknown;\n\n constructor(reason: \"TIMEOUT\", runId: string, run: unknown, message: string) {\n super(message);\n this.reason = reason;\n this.runId = runId;\n this.run = run;\n }\n}\n\n/**\n * A rollback's compare-and-swap guard was rejected: the alias moved between\n * reading the current release and swapping it.\n *\n * Recovery is always \"re-list releases and rebuild the guard\" — never \"reuse\n * the old tuple\", because the server checks the holder id, epoch AND opaque\n * revision to close same-id ABA. `Unfazed.rollback` does that re-list for you\n * once by default.\n */\nexport class UnfazedConflictError extends UnfazedError {\n readonly errors: GraphQLResponseError[];\n\n constructor(message: string, errors: GraphQLResponseError[]) {\n super(message);\n this.errors = errors;\n }\n}\n\n/** The requested alias, deployment or release does not exist (or was pruned). */\nexport class UnfazedNotFoundError extends UnfazedError {}\n\n/**\n * What the `unfazed` CLI backend's World (`createWorld()`) throws.\n *\n * Its `name` is the Workflow SDK error a World would throw in its place\n * (`WorkflowWorldError`, `WorkflowRunNotFoundError`, `HookNotFoundError`),\n * because Workflow SDK's CLI and web UI pick their message by `name`,\n * `status` and `code`: a missing run reads as a 404 there, an argument the\n * backend cannot serve (`code: \"INVALID_ARGUMENT\"`) prints as given.\n * `instanceof UnfazedError` still holds.\n */\nexport class UnfazedInspectError extends UnfazedError {\n /** HTTP-like status: 404 for a missing run, step, event, hook or app; 401/403 for a refused token. */\n readonly status: number | undefined;\n /** `INVALID_ARGUMENT`, `READ_ONLY`, or undefined. */\n readonly code: string | undefined;\n /** The run, for `WorkflowRunNotFoundError`. */\n readonly runId: string | undefined;\n\n constructor(\n message: string,\n options: {\n name?: \"WorkflowWorldError\" | \"WorkflowRunNotFoundError\" | \"HookNotFoundError\";\n status?: number;\n code?: string;\n runId?: string;\n cause?: unknown;\n } = {},\n ) {\n super(message, options.cause === undefined ? undefined : { cause: options.cause });\n this.name = options.name ?? \"WorkflowWorldError\";\n this.status = options.status;\n this.code = options.code;\n this.runId = options.runId;\n }\n}\n\n/**\n * The server's exact \"no such workspace\" sentinel.\n *\n * A missing workspace and a workspace belonging to another tenant return the\n * SAME message on purpose, so the API cannot be used to probe for someone\n * else's ids. Treat it as \"not yours to see\", not strictly as \"absent\".\n */\nexport const WORKSPACE_NOT_FOUND = \"workspace was not found\";\n\n/** The server's exact \"no such deployment\" sentinel. See {@link WORKSPACE_NOT_FOUND}. */\nexport const DEPLOYMENT_NOT_FOUND = \"deployment was not found\";\n\n/**\n * Does this error carry EXACTLY the given not-found sentinel?\n *\n * Exact equality, deliberately. The tempting version — \"does any message\n * contain 'not found'\" — also swallows `release not found in history`,\n * `integration not found` and every future message that happens to use the\n * phrase, turning real failures into a silent `false` from a delete. These two\n * strings are stable authz sentinels with test coverage on the server side;\n * anything else is a genuine error and must keep throwing.\n */\nexport function isNotFoundSentinel(error: unknown, sentinel: string): boolean {\n return (\n error instanceof UnfazedGraphQLError &&\n error.errors.some((e) => e.message.trim() === sentinel)\n );\n}\n\n/**\n * The server's \"no such app here\" refusal of `deleteApp`:\n * `app \"<alias>\" was not found in workspace \"<workspace name>\"`. Anchored at\n * both ends, like the exact sentinels above.\n */\nconst APP_NOT_FOUND = /^app \"(.+)\" was not found in workspace \".*\"$/;\n\n/**\n * Does this error say that exactly `alias` is not an app of the workspace?\n *\n * The workspace name in the message varies, so this matches the shape, then\n * the alias itself: a refusal about a different alias still throws.\n */\nexport function isAppNotFound(error: unknown, alias: string): boolean {\n return (\n error instanceof UnfazedGraphQLError &&\n error.errors.some((e) => APP_NOT_FOUND.exec(e.message.trim())?.[1] === alias.trim())\n );\n}\n\n/**\n * Message shape of the server's per-owner duplicate workspace name error:\n * `a workspace named \"x\" already exists; reuse it (id <uuid>) or pick a\n * different name`.\n *\n * Used only to turn a lost `ensureWorkspace` race into a re-read. Requiring\n * both \"workspace\" and \"already exists\" in one clause keeps it off unrelated\n * conflicts (a duplicate ALIAS, say), and a false negative is safe: the\n * caller just gets the server's error verbatim.\n */\nconst DUPLICATE_WORKSPACE_NAME = /\\bworkspace\\b[^.;]{0,80}\\balready exists\\b/i;\n\n/** Did `createWorkspace` fail because the name is already taken by this owner? */\nexport function isDuplicateWorkspaceName(error: unknown): boolean {\n return (\n error instanceof UnfazedGraphQLError &&\n error.errors.some((e) => DUPLICATE_WORKSPACE_NAME.test(e.message))\n );\n}\n\nfunction truncate(s: string, max = 500): string {\n return s.length <= max ? s : `${s.slice(0, max)}…`;\n}\n\n/**\n * Message shapes that mean \"the alias moved under you\".\n *\n * The first two are the platform's ACTUAL strings. A rejected rollback guard\n * returns `store.ErrAliasMoved` verbatim — every guard point in the rollback\n * and adopt paths returns that one sentinel unwrapped — and the staged-service\n * rollback wraps the same guard with its own prefix. The rest are defensive:\n * the guard ARGUMENTS named back at you, or the alias-revision concept in any\n * spelling, or `alias` sitting in the same clause as a conflict verb, so a\n * rewording on the server side does not silently disable the retry.\n *\n * Deliberately NOT matched: a bare \"conflict\", \"changed\" or \"stale\" anywhere in\n * any message. Those fire on errors that have nothing to do with the alias\n * compare-and-swap, and a false positive is not free — it spends a pointless\n * re-list AND rewraps an unrelated failure as {@link UnfazedConflictError},\n * whose message would then blame concurrent deploys for, say, a permission\n * problem.\n */\nconst CAS_PATTERNS: RegExp[] = [\n /alias was repointed by another change/i,\n /became stale before alias change/i,\n /expected[\\s_-]*current/i,\n /alias[\\s_-]*revision/i,\n /\\balias\\b[^.;]{0,80}\\b(?:moved|repointed|changed|conflicts?|stale|mismatch)\\b/i,\n /\\b(?:moved|repointed|changed|conflicts?|stale|mismatch)\\b[^.;]{0,80}\\balias\\b/i,\n];\n\n/**\n * Heuristic: does this GraphQL error set look like a rejected compare-and-swap?\n *\n * The server carries no machine-readable code in `extensions` — its error\n * presenter returns gqlgen's default untouched — so this has to match message\n * text. It is used ONLY to decide whether to re-list and retry once: a false\n * negative costs a surfaced error the caller can retry by hand, a false\n * positive costs an extra read and a misleading error class. Neither can\n * promote the wrong release, because the retry rebuilds the guard from a fresh\n * read and the server re-validates it.\n */\nexport function looksLikeCASConflict(errors: GraphQLResponseError[]): boolean {\n return errors.some((e) => CAS_PATTERNS.some((pattern) => pattern.test(e.message)));\n}\n"]}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH,iDAAiD;AACjD,MAAM,OAAO,YAAa,SAAQ,KAAK;IACrC,YAAY,OAAe,EAAE,OAA6B;QACxD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,I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IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CACnE,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CAAC,CAAS,EAAE,GAAG,GAAG,GAAG;IACpC,OAAO,CAAC,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC;AACrD,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,YAAY,GAAa;IAC7B,wCAAwC;IACxC,mCAAmC;IACnC,yBAAyB;IACzB,uBAAuB;IACvB,gFAAgF;IAChF,gFAAgF;CACjF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAA8B;IACjE,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACrF,CAAC","sourcesContent":["/**\n * Error taxonomy.\n *\n * Everything the SDK throws is an {@link UnfazedError}, so a code-mode script\n * can `catch (e) { if (e instanceof UnfazedError) ... }` and still\n * discriminate on the subclass to decide whether to retry.\n */\n\n/** A single entry from a GraphQL response's `errors` array. */\nexport interface GraphQLResponseError {\n message: string;\n path?: (string | number)[];\n extensions?: Record<string, unknown>;\n}\n\n/** Base class for everything this SDK throws. */\nexport class UnfazedError extends Error {\n constructor(message: string, options?: { cause?: unknown }) {\n super(message, options);\n this.name = new.target.name;\n }\n}\n\n/** No token was passed and no token environment variable was set. */\nexport class UnfazedAuthError extends UnfazedError {}\n\n/** The runtime has no global `fetch` and none was injected. */\nexport class UnfazedConfigError extends UnfazedError {}\n\n/**\n * The endpoint answered with a non-2xx status. `status` is the HTTP status and\n * `body` the response text, which is where the platform reports non-GraphQL\n * failures such as an expired or wrong-scope bearer token.\n */\nexport class UnfazedHTTPError extends UnfazedError {\n readonly status: number;\n readonly body: string;\n\n constructor(status: number, body: string, url: string) {\n super(`unfazed: HTTP ${status} from ${url}${body ? `: ${truncate(body)}` : \"\"}`);\n this.status = status;\n this.body = body;\n }\n}\n\n/**\n * The endpoint answered 200 with a GraphQL `errors` array.\n *\n * Partial `data` is preserved deliberately: the batched writeFiles document\n * resolves each aliased field independently, so one path can fail while the\n * others commit, and the caller needs to see which landed.\n */\nexport class UnfazedGraphQLError extends UnfazedError {\n readonly errors: GraphQLResponseError[];\n readonly data: unknown;\n\n constructor(errors: GraphQLResponseError[], data: unknown) {\n const summary = errors.map((e) => e.message).join(\"; \") || \"unknown GraphQL error\";\n super(`unfazed: ${summary}`);\n this.errors = errors;\n this.data = data;\n }\n}\n\n/**\n * The server refused a delete that would take apps offline without the call\n * naming exactly those apps, and deleted nothing.\n *\n * `deleteWorkspace` with `withDeployments` takes down every app the workspace\n * serves, so its `confirmAliases` must equal the workspace's live apps — no\n * more, no fewer. A missing or extra alias, or an app that went live after the\n * check, is refused. The message is the server's, verbatim: it lists each live\n * app with its custom domains and says how to name them. Look the apps up\n * deliberately with `unfazed.liveApps(workspaceId)`, decide, and delete again,\n * or delete one app with `unfazed.deleteApp`.\n *\n * Still an {@link UnfazedGraphQLError}, so existing `catch` sites keep matching.\n */\nexport class UnfazedUnconfirmedAppsError extends UnfazedGraphQLError {\n /** The workspace whose delete was refused. */\n readonly workspaceId: string;\n /** The aliases the refused call named. */\n readonly confirmAliases: readonly string[];\n\n constructor(\n workspaceId: string,\n confirmAliases: readonly string[],\n errors: GraphQLResponseError[],\n data: unknown,\n ) {\n super(errors, data);\n this.workspaceId = workspaceId;\n this.confirmAliases = confirmAliases;\n }\n}\n\n/**\n * How the server opens every refusal of a delete whose named apps do not match\n * the live ones (usecases.UnconfirmedAppsError, and the race where an app went\n * live after the check). Anchored at the start, so a message that merely\n * mentions the phrase is not mistaken for one.\n */\nconst NOTHING_WAS_DELETED = /^nothing was deleted:/i;\n\n/** Did the server refuse a delete because the named apps are not exactly the live ones? */\nexport function isUnconfirmedAppsRefusal(error: unknown): error is UnfazedGraphQLError {\n return (\n error instanceof UnfazedGraphQLError &&\n error.errors.some((e) => NOTHING_WAS_DELETED.test(e.message.trim()))\n );\n}\n\n/** A request exceeded `timeoutMs`, or the caller's AbortSignal fired. */\nexport class UnfazedTimeoutError extends UnfazedError {}\n\n/**\n * `writeFiles` wrote some files and not others.\n *\n * Writes are not transactional, exactly as MCP `write_workspace_files`: the\n * files listed in `result.files` with `ok: true` ARE written (and, on an app\n * with platform git, committed), the others are not. `result` is the whole\n * answer, `failed` names the paths that did not land and why. Retry only\n * those paths. Pass `allowPartial: true` to get the result instead of this\n * error.\n */\nexport class UnfazedWriteError extends UnfazedError {\n /** What the call wrote: every file's outcome and the commit. */\n readonly result: unknown;\n /** The paths that were not written, with the server's reason. */\n readonly failed: { path: string; error: string }[];\n\n constructor(result: unknown, failed: { path: string; error: string }[]) {\n super(\n `unfazed: ${failed.length} file(s) were not written (the others were): ` +\n failed.map((f) => `${f.path}: ${f.error}`).join(\"; \"),\n );\n this.result = result;\n this.failed = failed;\n }\n}\n\n/**\n * Did the platform refuse a long wait because the caller (or the server) has\n * too many in progress? Nothing was waited on; polling is the way on.\n */\nexport function isTooManyWaits(error: unknown): boolean {\n return (\n error instanceof UnfazedGraphQLError &&\n error.errors.some((e) => /waits in progress|long wait per operation/i.test(e.message))\n );\n}\n\n/**\n * Did the server refuse the document because it does not know `field` (a\n * platform older than this SDK)? The SDK uses it to fall back to the older\n * way of doing the same thing, never to hide a real error.\n */\nexport function isUnsupportedField(error: unknown, field: string): boolean {\n if (!(error instanceof UnfazedGraphQLError)) return false;\n const quoted = `\"${field}\"`;\n return error.errors.some(\n (e) =>\n e.message.includes(quoted) &&\n /Cannot query field|is not defined by type|Unknown argument|Unknown type|not defined on/i.test(e.message),\n );\n}\n\n/**\n * Waiting on a deploy ended badly.\n *\n * `reason` separates the two outcomes because they need different handling:\n * FAILED means the build finished and is broken (read `deployment.error` and\n * fix the source — retrying will not help), TIMEOUT means it is still BUILDING\n * and polling longer may still succeed.\n */\nexport class UnfazedDeployError extends UnfazedError {\n readonly reason: \"FAILED\" | \"TIMEOUT\";\n readonly deploymentId: string;\n /** Last deployment snapshot observed before giving up. */\n readonly deployment: unknown;\n\n constructor(\n reason: \"FAILED\" | \"TIMEOUT\",\n deploymentId: string,\n deployment: unknown,\n message: string,\n ) {\n super(message);\n this.reason = reason;\n this.deploymentId = deploymentId;\n this.deployment = deployment;\n }\n}\n\n/**\n * Waiting on a run timed out.\n *\n * Unlike {@link UnfazedDeployError}, a run's FAILED status is never thrown\n * here: {@link import(\"./unfazed.js\").Unfazed.waitForRun} resolves on\n * SUCCEEDED, FAILED and CANCELLED alike, because a run that executed and\n * exited non-zero is a completed answer — read `run.error`/`run.exitCode` —\n * not a broken build the way a FAILED deployment is. TIMEOUT is the only\n * outcome still worth an exception: the run is, as far as the last poll\n * showed, still QUEUED or RUNNING, and waiting longer may yet succeed.\n */\nexport class UnfazedRunError extends UnfazedError {\n readonly reason: \"TIMEOUT\";\n readonly runId: string;\n /** Last run snapshot observed before giving up. */\n readonly run: unknown;\n\n constructor(reason: \"TIMEOUT\", runId: string, run: unknown, message: string) {\n super(message);\n this.reason = reason;\n this.runId = runId;\n this.run = run;\n }\n}\n\n/**\n * A rollback's compare-and-swap guard was rejected: the alias moved between\n * reading the current release and swapping it.\n *\n * Recovery is always \"re-list releases and rebuild the guard\" — never \"reuse\n * the old tuple\", because the server checks the holder id, epoch AND opaque\n * revision to close same-id ABA. `Unfazed.rollback` does that re-list for you\n * once by default.\n */\nexport class UnfazedConflictError extends UnfazedError {\n readonly errors: GraphQLResponseError[];\n\n constructor(message: string, errors: GraphQLResponseError[]) {\n super(message);\n this.errors = errors;\n }\n}\n\n/** The requested alias, deployment or release does not exist (or was pruned). */\nexport class UnfazedNotFoundError extends UnfazedError {}\n\n/**\n * Why `oidc.token()` gave no token. The first six are the platform's own\n * `error` codes (`POST /oidc/token`); the rest are the SDK's.\n */\nexport type OIDCErrorCode =\n /** 401: the platform refused the app's `UNFZ_STATE_TOKEN`. */\n | \"invalid_token\"\n /** 400, or refused locally: not 1–256 printable ASCII characters without whitespace. */\n | \"invalid_audience\"\n /** 400, or refused locally: `ttlSeconds` is not a whole number from 60 to 3600. */\n | \"invalid_request\"\n /** 429, after the retries (or with a `Retry-After` longer than the SDK waits). */\n | \"rate_limited\"\n /** 404: the platform issues no OIDC tokens to this app. */\n | \"oidc_disabled\"\n /** 503 (or a gateway's 502/504), after the retries. */\n | \"temporarily_unavailable\"\n /** `UNFZ_STATE_TOKEN` is not set: not running inside an unfazed app. */\n | \"not_in_app\"\n /** Network failures (or attempts past `timeoutMs`) outlasted the retries. */\n | \"unreachable\"\n /** A 200 without a usable `token` and `expires_at`. */\n | \"invalid_response\"\n /** Any other status, without a code. */\n | \"http_error\";\n\n/**\n * `oidc.token()` (or `tokenResponse`, or a `fetchWithToken` fetch) got no\n * token. `code` is the platform's `error` (`invalid_audience`, `rate_limited`,\n * …), passed through as sent, or one of the SDK's own ({@link OIDCErrorCode});\n * `description` is the platform's `error_description`.\n */\nexport class UnfazedOIDCError extends UnfazedError {\n readonly code: OIDCErrorCode | (string & {});\n /** HTTP status from the platform; undefined for a refusal made locally. */\n readonly status: number | undefined;\n /** The platform's `error_description`. */\n readonly description: string | undefined;\n /** Asking again later may succeed (`rate_limited`, `temporarily_unavailable`, `unreachable`). */\n readonly retryable: boolean;\n /** The platform's `Retry-After`, in ms, when it sent one. */\n readonly retryAfterMs: number | undefined;\n\n constructor(\n code: OIDCErrorCode | (string & {}),\n message: string,\n options: {\n status?: number;\n description?: string;\n retryable?: boolean;\n retryAfterMs?: number;\n cause?: unknown;\n } = {},\n ) {\n super(message, options.cause === undefined ? undefined : { cause: options.cause });\n this.code = code;\n this.status = options.status;\n this.description = options.description;\n this.retryable = options.retryable ?? false;\n this.retryAfterMs = options.retryAfterMs;\n }\n}\n\n/**\n * What the `unfazed` CLI backend's World (`createWorld()`) throws.\n *\n * Its `name` is the Workflow SDK error a World would throw in its place\n * (`WorkflowWorldError`, `WorkflowRunNotFoundError`, `HookNotFoundError`),\n * because Workflow SDK's CLI and web UI pick their message by `name`,\n * `status` and `code`: a missing run reads as a 404 there, an argument the\n * backend cannot serve (`code: \"INVALID_ARGUMENT\"`) prints as given.\n * `instanceof UnfazedError` still holds.\n */\nexport class UnfazedInspectError extends UnfazedError {\n /** HTTP-like status: 404 for a missing run, step, event, hook or app; 401/403 for a refused token. */\n readonly status: number | undefined;\n /** `INVALID_ARGUMENT`, `READ_ONLY`, or undefined. */\n readonly code: string | undefined;\n /** The run, for `WorkflowRunNotFoundError`. */\n readonly runId: string | undefined;\n\n constructor(\n message: string,\n options: {\n name?: \"WorkflowWorldError\" | \"WorkflowRunNotFoundError\" | \"HookNotFoundError\";\n status?: number;\n code?: string;\n runId?: string;\n cause?: unknown;\n } = {},\n ) {\n super(message, options.cause === undefined ? undefined : { cause: options.cause });\n this.name = options.name ?? \"WorkflowWorldError\";\n this.status = options.status;\n this.code = options.code;\n this.runId = options.runId;\n }\n}\n\n/**\n * The server's exact \"no such workspace\" sentinel.\n *\n * A missing workspace and a workspace belonging to another tenant return the\n * SAME message on purpose, so the API cannot be used to probe for someone\n * else's ids. Treat it as \"not yours to see\", not strictly as \"absent\".\n */\nexport const WORKSPACE_NOT_FOUND = \"workspace was not found\";\n\n/** The server's exact \"no such deployment\" sentinel. See {@link WORKSPACE_NOT_FOUND}. */\nexport const DEPLOYMENT_NOT_FOUND = \"deployment was not found\";\n\n/**\n * Does this error carry EXACTLY the given not-found sentinel?\n *\n * Exact equality, deliberately. The tempting version — \"does any message\n * contain 'not found'\" — also swallows `release not found in history`,\n * `integration not found` and every future message that happens to use the\n * phrase, turning real failures into a silent `false` from a delete. These two\n * strings are stable authz sentinels with test coverage on the server side;\n * anything else is a genuine error and must keep throwing.\n */\nexport function isNotFoundSentinel(error: unknown, sentinel: string): boolean {\n return (\n error instanceof UnfazedGraphQLError &&\n error.errors.some((e) => e.message.trim() === sentinel)\n );\n}\n\n/**\n * The server's \"no such app here\" refusal of `deleteApp`:\n * `app \"<alias>\" was not found in workspace \"<workspace name>\"`. Anchored at\n * both ends, like the exact sentinels above.\n */\nconst APP_NOT_FOUND = /^app \"(.+)\" was not found in workspace \".*\"$/;\n\n/**\n * Does this error say that exactly `alias` is not an app of the workspace?\n *\n * The workspace name in the message varies, so this matches the shape, then\n * the alias itself: a refusal about a different alias still throws.\n */\nexport function isAppNotFound(error: unknown, alias: string): boolean {\n return (\n error instanceof UnfazedGraphQLError &&\n error.errors.some((e) => APP_NOT_FOUND.exec(e.message.trim())?.[1] === alias.trim())\n );\n}\n\n/**\n * Message shape of the server's per-owner duplicate workspace name error:\n * `a workspace named \"x\" already exists; reuse it (id <uuid>) or pick a\n * different name`.\n *\n * Used only to turn a lost `ensureWorkspace` race into a re-read. Requiring\n * both \"workspace\" and \"already exists\" in one clause keeps it off unrelated\n * conflicts (a duplicate ALIAS, say), and a false negative is safe: the\n * caller just gets the server's error verbatim.\n */\nconst DUPLICATE_WORKSPACE_NAME = /\\bworkspace\\b[^.;]{0,80}\\balready exists\\b/i;\n\n/** Did `createWorkspace` fail because the name is already taken by this owner? */\nexport function isDuplicateWorkspaceName(error: unknown): boolean {\n return (\n error instanceof UnfazedGraphQLError &&\n error.errors.some((e) => DUPLICATE_WORKSPACE_NAME.test(e.message))\n );\n}\n\nfunction truncate(s: string, max = 500): string {\n return s.length <= max ? s : `${s.slice(0, max)}…`;\n}\n\n/**\n * Message shapes that mean \"the alias moved under you\".\n *\n * The first two are the platform's ACTUAL strings. A rejected rollback guard\n * returns `store.ErrAliasMoved` verbatim — every guard point in the rollback\n * and adopt paths returns that one sentinel unwrapped — and the staged-service\n * rollback wraps the same guard with its own prefix. The rest are defensive:\n * the guard ARGUMENTS named back at you, or the alias-revision concept in any\n * spelling, or `alias` sitting in the same clause as a conflict verb, so a\n * rewording on the server side does not silently disable the retry.\n *\n * Deliberately NOT matched: a bare \"conflict\", \"changed\" or \"stale\" anywhere in\n * any message. Those fire on errors that have nothing to do with the alias\n * compare-and-swap, and a false positive is not free — it spends a pointless\n * re-list AND rewraps an unrelated failure as {@link UnfazedConflictError},\n * whose message would then blame concurrent deploys for, say, a permission\n * problem.\n */\nconst CAS_PATTERNS: RegExp[] = [\n /alias was repointed by another change/i,\n /became stale before alias change/i,\n /expected[\\s_-]*current/i,\n /alias[\\s_-]*revision/i,\n /\\balias\\b[^.;]{0,80}\\b(?:moved|repointed|changed|conflicts?|stale|mismatch)\\b/i,\n /\\b(?:moved|repointed|changed|conflicts?|stale|mismatch)\\b[^.;]{0,80}\\balias\\b/i,\n];\n\n/**\n * Heuristic: does this GraphQL error set look like a rejected compare-and-swap?\n *\n * The server carries no machine-readable code in `extensions` — its error\n * presenter returns gqlgen's default untouched — so this has to match message\n * text. It is used ONLY to decide whether to re-list and retry once: a false\n * negative costs a surfaced error the caller can retry by hand, a false\n * positive costs an extra read and a misleading error class. Neither can\n * promote the wrong release, because the retry rebuilds the guard from a fresh\n * read and the server re-validates it.\n */\nexport function looksLikeCASConflict(errors: GraphQLResponseError[]): boolean {\n return errors.some((e) => CAS_PATTERNS.some((pattern) => pattern.test(e.message)));\n}\n"]}
|
package/dist/generated/gql.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export declare function graphql(source: "\n query SdkAppCommit($workspaceID: ID
|
|
|
61
61
|
/**
|
|
62
62
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
63
63
|
*/
|
|
64
|
-
export declare function graphql(source: "\n mutation SdkRestoreVersion(\n $workspaceID: ID!\n $sha: String!\n $expectedHead: String\n $message: String\n ) {\n restoreAppVersion(\n input: { workspaceID: $workspaceID, sha: $sha, expectedHead: $expectedHead, message: $message }\n ) {\n sha\n committed\n deploys\n message\n branch\n deployAlias\n restoredFrom\n parent\n }\n }\n"): typeof import('./graphql.js').SdkRestoreVersionDocument;
|
|
64
|
+
export declare function graphql(source: "\n mutation SdkRestoreVersion(\n $workspaceID: ID!\n $sha: String!\n $expectedHead: String\n $message: String\n ) {\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"): typeof import('./graphql.js').SdkRestoreVersionDocument;
|
|
65
65
|
/**
|
|
66
66
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
67
67
|
*/
|
|
@@ -153,11 +153,23 @@ export declare function graphql(source: "\n query SdkServiceLogs($deploymentID:
|
|
|
153
153
|
/**
|
|
154
154
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
155
155
|
*/
|
|
156
|
-
export declare function graphql(source: "\n
|
|
156
|
+
export declare function graphql(source: "\n fragment DeploymentTimingsFields on DeploymentTimings {\n totalMs\n buildMs\n promoteMs\n phases\n buildMode\n artifactTransport\n buildMemoryMiB\n }\n"): typeof import('./graphql.js').DeploymentTimingsFieldsFragmentDoc;
|
|
157
|
+
/**
|
|
158
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
159
|
+
*/
|
|
160
|
+
export declare function graphql(source: "\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"): typeof import('./graphql.js').SdkDeploymentEventsDocument;
|
|
161
|
+
/**
|
|
162
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
163
|
+
*/
|
|
164
|
+
export declare function graphql(source: "\n query SdkDeploymentTimings($id: ID!) {\n deployment(id: $id) {\n id\n timings {\n ...DeploymentTimingsFields\n }\n }\n }\n"): typeof import('./graphql.js').SdkDeploymentTimingsDocument;
|
|
157
165
|
/**
|
|
158
166
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
159
167
|
*/
|
|
160
168
|
export declare function graphql(source: "\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"): typeof import('./graphql.js').SdkWaitForDeploymentDocument;
|
|
169
|
+
/**
|
|
170
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
171
|
+
*/
|
|
172
|
+
export declare function graphql(source: "\n query SdkWaitForCommitDeployment(\n $workspaceID: ID!\n $gitCommit: String!\n $alias: String\n $after: Int\n $timeoutSeconds: Int\n ) {\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"): typeof import('./graphql.js').SdkWaitForCommitDeploymentDocument;
|
|
161
173
|
/**
|
|
162
174
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
163
175
|
*/
|
package/dist/generated/gql.js
CHANGED
|
@@ -16,7 +16,7 @@ const documents = {
|
|
|
16
16
|
"\n query SdkAppCommitsWaiting($workspaceID: ID!) {\n appCommits(workspaceID: $workspaceID, limit: 1) {\n branch\n head\n waitingCommits\n waitingSince\n }\n }\n": types.SdkAppCommitsWaitingDocument,
|
|
17
17
|
"\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": types.SdkWorkspaceGitSourceDocument,
|
|
18
18
|
"\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": types.SdkAppCommitDocument,
|
|
19
|
-
"\n mutation SdkRestoreVersion(\n $workspaceID: ID!\n $sha: String!\n $expectedHead: String\n $message: String\n ) {\n restoreAppVersion(\n input: { workspaceID: $workspaceID, sha: $sha, expectedHead: $expectedHead, message: $message }\n ) {\n sha\n committed\n deploys\n message\n branch\n deployAlias\n restoredFrom\n parent\n }\n }\n": types.SdkRestoreVersionDocument,
|
|
19
|
+
"\n mutation SdkRestoreVersion(\n $workspaceID: ID!\n $sha: String!\n $expectedHead: String\n $message: String\n ) {\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": types.SdkRestoreVersionDocument,
|
|
20
20
|
"\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": types.AppErrorGroupFieldsFragmentDoc,
|
|
21
21
|
"\n query SdkAppErrors(\n $workspaceID: ID!\n $alias: String!\n $status: String\n $limit: Int\n $cursor: String\n ) {\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": types.SdkAppErrorsDocument,
|
|
22
22
|
"\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": types.SdkAppErrorGroupDocument,
|
|
@@ -39,8 +39,11 @@ const documents = {
|
|
|
39
39
|
"\n mutation SdkRollback(\n $deploymentID: ID!\n $expectedCurrentDeploymentID: ID!\n $expectedCurrentAliasRevision: String!\n ) {\n rollbackDeployment(\n input: {\n deploymentID: $deploymentID\n expectedCurrentDeploymentID: $expectedCurrentDeploymentID\n expectedCurrentAliasRevision: $expectedCurrentAliasRevision\n }\n ) {\n ...DeploymentFields\n }\n }\n": types.SdkRollbackDocument,
|
|
40
40
|
"\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": types.SdkServiceStatusDocument,
|
|
41
41
|
"\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": types.SdkServiceLogsDocument,
|
|
42
|
-
"\n
|
|
42
|
+
"\n fragment DeploymentTimingsFields on DeploymentTimings {\n totalMs\n buildMs\n promoteMs\n phases\n buildMode\n artifactTransport\n buildMemoryMiB\n }\n": types.DeploymentTimingsFieldsFragmentDoc,
|
|
43
|
+
"\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": types.SdkDeploymentEventsDocument,
|
|
44
|
+
"\n query SdkDeploymentTimings($id: ID!) {\n deployment(id: $id) {\n id\n timings {\n ...DeploymentTimingsFields\n }\n }\n }\n": types.SdkDeploymentTimingsDocument,
|
|
43
45
|
"\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": types.SdkWaitForDeploymentDocument,
|
|
46
|
+
"\n query SdkWaitForCommitDeployment(\n $workspaceID: ID!\n $gitCommit: String!\n $alias: String\n $after: Int\n $timeoutSeconds: Int\n ) {\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": types.SdkWaitForCommitDeploymentDocument,
|
|
44
47
|
"\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": types.SdkRestartServiceDocument,
|
|
45
48
|
"\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": types.SdkStopServiceDocument,
|
|
46
49
|
"\n mutation SdkDeleteDeployment($deploymentID: ID!) {\n deleteDeployment(input: { deploymentID: $deploymentID }) {\n ok\n }\n }\n": types.SdkDeleteDeploymentDocument,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../src/generated/gql.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAiFtC,MAAM,SAAS,GAAc;IACzB,qXAAqX,EAAE,KAAK,CAAC,2BAA2B;IACxZ,gXAAgX,EAAE,KAAK,CAAC,iBAAiB;IACzY,gPAAgP,EAAE,KAAK,CAAC,0BAA0B;IAClR,uJAAuJ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,EAAE,KAAK,CAAC,sBAAsB;IAC5J,uHAAuH,EAAE,KAAK,CAAC,uBAAuB;CACzJ,CAAC;AAoQF,MAAM,UAAU,OAAO,CAAC,MAAc;IACpC,OAAQ,SAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1C,CAAC","sourcesContent":["/* eslint-disable */\nimport * as types from './graphql.js';\n\n\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size\n */\ntype Documents = {\n \"\\n 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\": typeof types.DeploymentFieldsFragmentDoc,\n \"\\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\": typeof types.SdkWhoamiDocument,\n \"\\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\": typeof types.SdkCreateWorkspaceDocument,\n \"\\n query SdkListWorkspaces {\\n workspaces {\\n id\\n name\\n ownerId\\n projectId\\n createdAt\\n updatedAt\\n }\\n }\\n\": typeof types.SdkListWorkspacesDocument,\n \"\\n mutation SdkDeleteWorkspace(\\n $workspaceID: ID!\\n $withDeployments: Boolean\\n $confirmAliases: [String!]\\n ) {\\n deleteWorkspace(\\n input: {\\n workspaceID: $workspaceID\\n withDeployments: $withDeployments\\n confirmAliases: $confirmAliases\\n }\\n ) {\\n ok\\n }\\n }\\n\": typeof types.SdkDeleteWorkspaceDocument,\n \"\\n query SdkWorkspaceLiveApps($id: ID!) {\\n workspace(id: $id) {\\n id\\n liveApps {\\n alias\\n deploymentID\\n domains\\n }\\n }\\n }\\n\": typeof types.SdkWorkspaceLiveAppsDocument,\n \"\\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\": typeof types.SdkDeleteAppDocument,\n \"\\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\\n writeWorkspaceTextFile(input: { workspaceID: $workspaceID, path: $path, text: $text }) {\\n file {\\n path\\n sizeBytes\\n size\\n sha256\\n updatedAt\\n }\\n }\\n }\\n\": typeof types.SdkWriteTextFileDocument,\n \"\\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\": typeof types.SdkWriteBase64FileDocument,\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 }\\n\": typeof types.FileCommitFieldsFragmentDoc,\n \"\\n mutation SdkWriteFiles(\\n $workspaceID: ID!\\n $files: [WorkspaceFileWriteInput!]!\\n $commitMessage: String\\n ) {\\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\": typeof types.SdkWriteFilesDocument,\n \"\\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\": typeof types.SdkAppCommitsDocument,\n \"\\n query SdkAppCommitsWaiting($workspaceID: ID!) {\\n appCommits(workspaceID: $workspaceID, limit: 1) {\\n branch\\n head\\n waitingCommits\\n waitingSince\\n }\\n }\\n\": typeof types.SdkAppCommitsWaitingDocument,\n \"\\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\": typeof types.SdkWorkspaceGitSourceDocument,\n \"\\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\": typeof types.SdkAppCommitDocument,\n \"\\n mutation SdkRestoreVersion(\\n $workspaceID: ID!\\n $sha: String!\\n $expectedHead: String\\n $message: String\\n ) {\\n restoreAppVersion(\\n input: { workspaceID: $workspaceID, sha: $sha, expectedHead: $expectedHead, message: $message }\\n ) {\\n sha\\n committed\\n deploys\\n message\\n branch\\n deployAlias\\n restoredFrom\\n parent\\n }\\n }\\n\": typeof types.SdkRestoreVersionDocument,\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 }\\n\": typeof types.AppErrorGroupFieldsFragmentDoc,\n \"\\n query SdkAppErrors(\\n $workspaceID: ID!\\n $alias: String!\\n $status: String\\n $limit: Int\\n $cursor: String\\n ) {\\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\": typeof types.SdkAppErrorsDocument,\n \"\\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\": typeof types.SdkAppErrorGroupDocument,\n \"\\n mutation SdkResolveErrorGroup($input: AppErrorGroupInput!) {\\n resolveAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\": typeof types.SdkResolveErrorGroupDocument,\n \"\\n mutation SdkMuteErrorGroup($input: AppErrorGroupInput!) {\\n muteAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\": typeof types.SdkMuteErrorGroupDocument,\n \"\\n mutation SdkReopenErrorGroup($input: AppErrorGroupInput!) {\\n reopenAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\": typeof types.SdkReopenErrorGroupDocument,\n \"\\n query SdkEventTypes {\\n platformEventTypes {\\n name\\n description\\n delivery\\n inputSchema\\n payloadSchema\\n }\\n }\\n\": typeof types.SdkEventTypesDocument,\n \"\\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\": typeof types.SdkPollEventsDocument,\n \"\\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\": typeof types.SdkWaitForEventsDocument,\n \"\\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\": typeof types.SdkListFilesDocument,\n \"\\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\": typeof types.SdkReadFileDocument,\n \"\\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\\n deleteWorkspaceFile(input: { workspaceID: $workspaceID, path: $path }) {\\n ok\\n }\\n }\\n\": typeof types.SdkDeleteFileDocument,\n \"\\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\\n createDeployment(input: $input) {\\n deployment {\\n ...DeploymentFields\\n }\\n }\\n }\\n\": typeof types.SdkCreateDeploymentDocument,\n \"\\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\\n deployWorkspace(input: $input) {\\n deployment {\\n ...DeploymentFields\\n }\\n }\\n }\\n\": typeof types.SdkDeployWorkspaceDocument,\n \"\\n query SdkGetDeployment($id: ID!) {\\n deployment(id: $id) {\\n ...DeploymentFields\\n }\\n }\\n\": typeof types.SdkGetDeploymentDocument,\n \"\\n query SdkPollDeployment($id: ID!) {\\n deployment(id: $id) {\\n id\\n status\\n error\\n aliasHeld\\n url\\n previewUrl\\n }\\n }\\n\": typeof types.SdkPollDeploymentDocument,\n \"\\n query SdkGetDeploymentByAlias($alias: String!) {\\n deploymentByAlias(alias: $alias) {\\n ...DeploymentFields\\n }\\n }\\n\": typeof types.SdkGetDeploymentByAliasDocument,\n \"\\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\": typeof types.SdkListDeploymentsDocument,\n \"\\n query SdkListReleases($alias: String!) {\\n deploymentReleases(alias: $alias) {\\n ...DeploymentFields\\n }\\n }\\n\": typeof types.SdkListReleasesDocument,\n \"\\n mutation SdkRollback(\\n $deploymentID: ID!\\n $expectedCurrentDeploymentID: ID!\\n $expectedCurrentAliasRevision: String!\\n ) {\\n rollbackDeployment(\\n input: {\\n deploymentID: $deploymentID\\n expectedCurrentDeploymentID: $expectedCurrentDeploymentID\\n expectedCurrentAliasRevision: $expectedCurrentAliasRevision\\n }\\n ) {\\n ...DeploymentFields\\n }\\n }\\n\": typeof types.SdkRollbackDocument,\n \"\\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\": typeof types.SdkServiceStatusDocument,\n \"\\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\": typeof types.SdkServiceLogsDocument,\n \"\\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 createdAt\\n }\\n }\\n\": typeof types.SdkDeploymentEventsDocument,\n \"\\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\": typeof types.SdkWaitForDeploymentDocument,\n \"\\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\": typeof types.SdkRestartServiceDocument,\n \"\\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\": typeof types.SdkStopServiceDocument,\n \"\\n mutation SdkDeleteDeployment($deploymentID: ID!) {\\n deleteDeployment(input: { deploymentID: $deploymentID }) {\\n ok\\n }\\n }\\n\": typeof types.SdkDeleteDeploymentDocument,\n \"\\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\": typeof types.SdkSetWorkspaceEnvDocument,\n \"\\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\\n setWorkspaceSecret(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\": typeof types.SdkSetWorkspaceSecretDocument,\n \"\\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\\n deleteWorkspaceEnv(input: { workspaceID: $workspaceID, name: $name }) {\\n ok\\n }\\n }\\n\": typeof types.SdkDeleteWorkspaceEnvDocument,\n \"\\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\": typeof types.SdkListWorkspaceEnvDocument,\n \"\\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\\n setAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\\n env {\\n name\\n value\\n secret\\n alias\\n inherited\\n masked\\n updatedAt\\n }\\n }\\n }\\n\": typeof types.SdkSetAppEnvDocument,\n \"\\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\\n setAppSecret(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\\n env {\\n name\\n value\\n secret\\n alias\\n inherited\\n masked\\n updatedAt\\n }\\n }\\n }\\n\": typeof types.SdkSetAppSecretDocument,\n \"\\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\\n removeAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\\n ok\\n }\\n }\\n\": typeof types.SdkRemoveAppEnvDocument,\n \"\\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\\n inheritAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\\n ok\\n }\\n }\\n\": typeof types.SdkInheritAppEnvDocument,\n \"\\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\": typeof types.SdkListAppEnvDocument,\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 }\\n\": typeof types.RunFieldsFragmentDoc,\n \"\\n mutation SdkCreateRun($input: CreateRunInput!) {\\n createRun(input: $input) {\\n ...RunFields\\n }\\n }\\n\": typeof types.SdkCreateRunDocument,\n \"\\n query SdkGetRun($id: ID!) {\\n run(id: $id) {\\n ...RunFields\\n }\\n }\\n\": typeof types.SdkGetRunDocument,\n \"\\n query SdkPollRun($id: ID!) {\\n run(id: $id) {\\n id\\n status\\n error\\n exitCode\\n }\\n }\\n\": typeof types.SdkPollRunDocument,\n \"\\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\": typeof types.SdkListRunsDocument,\n \"\\n mutation SdkCancelRun($id: ID!) {\\n cancelRun(id: $id) {\\n ...RunFields\\n }\\n }\\n\": typeof types.SdkCancelRunDocument,\n \"\\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\": typeof types.SdkRunEventsDocument,\n \"\\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\\n runConsole(id: $id, tailBytes: $tailBytes) {\\n runID\\n running\\n text\\n }\\n }\\n\": typeof types.SdkRunConsoleDocument,\n \"\\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\": typeof types.SdkRunTranscriptDocument,\n \"\\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\\n answerRun(id: $id, answer: $answer) {\\n ...RunFields\\n }\\n }\\n\": typeof types.SdkAnswerRunDocument,\n \"\\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\\n followUpRun(input: $input) {\\n ...RunFields\\n }\\n }\\n\": typeof types.SdkFollowUpRunDocument,\n \"\\n query SdkRunHarnesses {\\n runHarnesses {\\n name\\n title\\n summary\\n requires\\n }\\n }\\n\": typeof types.SdkRunHarnessesDocument,\n};\nconst documents: Documents = {\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 }\\n\": types.DeploymentFieldsFragmentDoc,\n \"\\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\": types.SdkWhoamiDocument,\n \"\\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\": types.SdkCreateWorkspaceDocument,\n \"\\n query SdkListWorkspaces {\\n workspaces {\\n id\\n name\\n ownerId\\n projectId\\n createdAt\\n updatedAt\\n }\\n }\\n\": types.SdkListWorkspacesDocument,\n \"\\n mutation SdkDeleteWorkspace(\\n $workspaceID: ID!\\n $withDeployments: Boolean\\n $confirmAliases: [String!]\\n ) {\\n deleteWorkspace(\\n input: {\\n workspaceID: $workspaceID\\n withDeployments: $withDeployments\\n confirmAliases: $confirmAliases\\n }\\n ) {\\n ok\\n }\\n }\\n\": types.SdkDeleteWorkspaceDocument,\n \"\\n query SdkWorkspaceLiveApps($id: ID!) {\\n workspace(id: $id) {\\n id\\n liveApps {\\n alias\\n deploymentID\\n domains\\n }\\n }\\n }\\n\": types.SdkWorkspaceLiveAppsDocument,\n \"\\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\": types.SdkDeleteAppDocument,\n \"\\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\\n writeWorkspaceTextFile(input: { workspaceID: $workspaceID, path: $path, text: $text }) {\\n file {\\n path\\n sizeBytes\\n size\\n sha256\\n updatedAt\\n }\\n }\\n }\\n\": types.SdkWriteTextFileDocument,\n \"\\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\": types.SdkWriteBase64FileDocument,\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 }\\n\": types.FileCommitFieldsFragmentDoc,\n \"\\n mutation SdkWriteFiles(\\n $workspaceID: ID!\\n $files: [WorkspaceFileWriteInput!]!\\n $commitMessage: String\\n ) {\\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\": types.SdkWriteFilesDocument,\n \"\\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\": types.SdkAppCommitsDocument,\n \"\\n query SdkAppCommitsWaiting($workspaceID: ID!) {\\n appCommits(workspaceID: $workspaceID, limit: 1) {\\n branch\\n head\\n waitingCommits\\n waitingSince\\n }\\n }\\n\": types.SdkAppCommitsWaitingDocument,\n \"\\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\": types.SdkWorkspaceGitSourceDocument,\n \"\\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\": types.SdkAppCommitDocument,\n \"\\n mutation SdkRestoreVersion(\\n $workspaceID: ID!\\n $sha: String!\\n $expectedHead: String\\n $message: String\\n ) {\\n restoreAppVersion(\\n input: { workspaceID: $workspaceID, sha: $sha, expectedHead: $expectedHead, message: $message }\\n ) {\\n sha\\n committed\\n deploys\\n message\\n branch\\n deployAlias\\n restoredFrom\\n parent\\n }\\n }\\n\": types.SdkRestoreVersionDocument,\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 }\\n\": types.AppErrorGroupFieldsFragmentDoc,\n \"\\n query SdkAppErrors(\\n $workspaceID: ID!\\n $alias: String!\\n $status: String\\n $limit: Int\\n $cursor: String\\n ) {\\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\": types.SdkAppErrorsDocument,\n \"\\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\": types.SdkAppErrorGroupDocument,\n \"\\n mutation SdkResolveErrorGroup($input: AppErrorGroupInput!) {\\n resolveAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\": types.SdkResolveErrorGroupDocument,\n \"\\n mutation SdkMuteErrorGroup($input: AppErrorGroupInput!) {\\n muteAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\": types.SdkMuteErrorGroupDocument,\n \"\\n mutation SdkReopenErrorGroup($input: AppErrorGroupInput!) {\\n reopenAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\": types.SdkReopenErrorGroupDocument,\n \"\\n query SdkEventTypes {\\n platformEventTypes {\\n name\\n description\\n delivery\\n inputSchema\\n payloadSchema\\n }\\n }\\n\": types.SdkEventTypesDocument,\n \"\\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\": types.SdkPollEventsDocument,\n \"\\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\": types.SdkWaitForEventsDocument,\n \"\\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\": types.SdkListFilesDocument,\n \"\\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\": types.SdkReadFileDocument,\n \"\\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\\n deleteWorkspaceFile(input: { workspaceID: $workspaceID, path: $path }) {\\n ok\\n }\\n }\\n\": types.SdkDeleteFileDocument,\n \"\\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\\n createDeployment(input: $input) {\\n deployment {\\n ...DeploymentFields\\n }\\n }\\n }\\n\": types.SdkCreateDeploymentDocument,\n \"\\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\\n deployWorkspace(input: $input) {\\n deployment {\\n ...DeploymentFields\\n }\\n }\\n }\\n\": types.SdkDeployWorkspaceDocument,\n \"\\n query SdkGetDeployment($id: ID!) {\\n deployment(id: $id) {\\n ...DeploymentFields\\n }\\n }\\n\": types.SdkGetDeploymentDocument,\n \"\\n query SdkPollDeployment($id: ID!) {\\n deployment(id: $id) {\\n id\\n status\\n error\\n aliasHeld\\n url\\n previewUrl\\n }\\n }\\n\": types.SdkPollDeploymentDocument,\n \"\\n query SdkGetDeploymentByAlias($alias: String!) {\\n deploymentByAlias(alias: $alias) {\\n ...DeploymentFields\\n }\\n }\\n\": types.SdkGetDeploymentByAliasDocument,\n \"\\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\": types.SdkListDeploymentsDocument,\n \"\\n query SdkListReleases($alias: String!) {\\n deploymentReleases(alias: $alias) {\\n ...DeploymentFields\\n }\\n }\\n\": types.SdkListReleasesDocument,\n \"\\n mutation SdkRollback(\\n $deploymentID: ID!\\n $expectedCurrentDeploymentID: ID!\\n $expectedCurrentAliasRevision: String!\\n ) {\\n rollbackDeployment(\\n input: {\\n deploymentID: $deploymentID\\n expectedCurrentDeploymentID: $expectedCurrentDeploymentID\\n expectedCurrentAliasRevision: $expectedCurrentAliasRevision\\n }\\n ) {\\n ...DeploymentFields\\n }\\n }\\n\": types.SdkRollbackDocument,\n \"\\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\": types.SdkServiceStatusDocument,\n \"\\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\": types.SdkServiceLogsDocument,\n \"\\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 createdAt\\n }\\n }\\n\": types.SdkDeploymentEventsDocument,\n \"\\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\": types.SdkWaitForDeploymentDocument,\n \"\\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\": types.SdkRestartServiceDocument,\n \"\\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\": types.SdkStopServiceDocument,\n \"\\n mutation SdkDeleteDeployment($deploymentID: ID!) {\\n deleteDeployment(input: { deploymentID: $deploymentID }) {\\n ok\\n }\\n }\\n\": types.SdkDeleteDeploymentDocument,\n \"\\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\": types.SdkSetWorkspaceEnvDocument,\n \"\\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\\n setWorkspaceSecret(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\": types.SdkSetWorkspaceSecretDocument,\n \"\\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\\n deleteWorkspaceEnv(input: { workspaceID: $workspaceID, name: $name }) {\\n ok\\n }\\n }\\n\": types.SdkDeleteWorkspaceEnvDocument,\n \"\\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\": types.SdkListWorkspaceEnvDocument,\n \"\\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\\n setAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\\n env {\\n name\\n value\\n secret\\n alias\\n inherited\\n masked\\n updatedAt\\n }\\n }\\n }\\n\": types.SdkSetAppEnvDocument,\n \"\\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\\n setAppSecret(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\\n env {\\n name\\n value\\n secret\\n alias\\n inherited\\n masked\\n updatedAt\\n }\\n }\\n }\\n\": types.SdkSetAppSecretDocument,\n \"\\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\\n removeAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\\n ok\\n }\\n }\\n\": types.SdkRemoveAppEnvDocument,\n \"\\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\\n inheritAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\\n ok\\n }\\n }\\n\": types.SdkInheritAppEnvDocument,\n \"\\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\": types.SdkListAppEnvDocument,\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 }\\n\": types.RunFieldsFragmentDoc,\n \"\\n mutation SdkCreateRun($input: CreateRunInput!) {\\n createRun(input: $input) {\\n ...RunFields\\n }\\n }\\n\": types.SdkCreateRunDocument,\n \"\\n query SdkGetRun($id: ID!) {\\n run(id: $id) {\\n ...RunFields\\n }\\n }\\n\": types.SdkGetRunDocument,\n \"\\n query SdkPollRun($id: ID!) {\\n run(id: $id) {\\n id\\n status\\n error\\n exitCode\\n }\\n }\\n\": types.SdkPollRunDocument,\n \"\\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\": types.SdkListRunsDocument,\n \"\\n mutation SdkCancelRun($id: ID!) {\\n cancelRun(id: $id) {\\n ...RunFields\\n }\\n }\\n\": types.SdkCancelRunDocument,\n \"\\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\": types.SdkRunEventsDocument,\n \"\\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\\n runConsole(id: $id, tailBytes: $tailBytes) {\\n runID\\n running\\n text\\n }\\n }\\n\": types.SdkRunConsoleDocument,\n \"\\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\": types.SdkRunTranscriptDocument,\n \"\\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\\n answerRun(id: $id, answer: $answer) {\\n ...RunFields\\n }\\n }\\n\": types.SdkAnswerRunDocument,\n \"\\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\\n followUpRun(input: $input) {\\n ...RunFields\\n }\\n }\\n\": types.SdkFollowUpRunDocument,\n \"\\n query SdkRunHarnesses {\\n runHarnesses {\\n name\\n title\\n summary\\n requires\\n }\\n }\\n\": types.SdkRunHarnessesDocument,\n};\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').DeploymentFieldsFragmentDoc;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkWhoamiDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkCreateWorkspaceDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkListWorkspaces {\\n workspaces {\\n id\\n name\\n ownerId\\n projectId\\n createdAt\\n updatedAt\\n }\\n }\\n\"): typeof import('./graphql.js').SdkListWorkspacesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkDeleteWorkspace(\\n $workspaceID: ID!\\n $withDeployments: Boolean\\n $confirmAliases: [String!]\\n ) {\\n deleteWorkspace(\\n input: {\\n workspaceID: $workspaceID\\n withDeployments: $withDeployments\\n confirmAliases: $confirmAliases\\n }\\n ) {\\n ok\\n }\\n }\\n\"): typeof import('./graphql.js').SdkDeleteWorkspaceDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkWorkspaceLiveApps($id: ID!) {\\n workspace(id: $id) {\\n id\\n liveApps {\\n alias\\n deploymentID\\n domains\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkWorkspaceLiveAppsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkDeleteAppDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\\n writeWorkspaceTextFile(input: { workspaceID: $workspaceID, path: $path, text: $text }) {\\n file {\\n path\\n sizeBytes\\n size\\n sha256\\n updatedAt\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkWriteTextFileDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkWriteBase64FileDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').FileCommitFieldsFragmentDoc;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkWriteFiles(\\n $workspaceID: ID!\\n $files: [WorkspaceFileWriteInput!]!\\n $commitMessage: String\\n ) {\\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\"): typeof import('./graphql.js').SdkWriteFilesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkAppCommitsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkAppCommitsWaiting($workspaceID: ID!) {\\n appCommits(workspaceID: $workspaceID, limit: 1) {\\n branch\\n head\\n waitingCommits\\n waitingSince\\n }\\n }\\n\"): typeof import('./graphql.js').SdkAppCommitsWaitingDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkWorkspaceGitSourceDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkAppCommitDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkRestoreVersion(\\n $workspaceID: ID!\\n $sha: String!\\n $expectedHead: String\\n $message: String\\n ) {\\n restoreAppVersion(\\n input: { workspaceID: $workspaceID, sha: $sha, expectedHead: $expectedHead, message: $message }\\n ) {\\n sha\\n committed\\n deploys\\n message\\n branch\\n deployAlias\\n restoredFrom\\n parent\\n }\\n }\\n\"): typeof import('./graphql.js').SdkRestoreVersionDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').AppErrorGroupFieldsFragmentDoc;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkAppErrors(\\n $workspaceID: ID!\\n $alias: String!\\n $status: String\\n $limit: Int\\n $cursor: String\\n ) {\\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\"): typeof import('./graphql.js').SdkAppErrorsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkAppErrorGroupDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkResolveErrorGroup($input: AppErrorGroupInput!) {\\n resolveAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkResolveErrorGroupDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkMuteErrorGroup($input: AppErrorGroupInput!) {\\n muteAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkMuteErrorGroupDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkReopenErrorGroup($input: AppErrorGroupInput!) {\\n reopenAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkReopenErrorGroupDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkEventTypes {\\n platformEventTypes {\\n name\\n description\\n delivery\\n inputSchema\\n payloadSchema\\n }\\n }\\n\"): typeof import('./graphql.js').SdkEventTypesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkPollEventsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkWaitForEventsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkListFilesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkReadFileDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\\n deleteWorkspaceFile(input: { workspaceID: $workspaceID, path: $path }) {\\n ok\\n }\\n }\\n\"): typeof import('./graphql.js').SdkDeleteFileDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\\n createDeployment(input: $input) {\\n deployment {\\n ...DeploymentFields\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkCreateDeploymentDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\\n deployWorkspace(input: $input) {\\n deployment {\\n ...DeploymentFields\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkDeployWorkspaceDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkGetDeployment($id: ID!) {\\n deployment(id: $id) {\\n ...DeploymentFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkGetDeploymentDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkPollDeployment($id: ID!) {\\n deployment(id: $id) {\\n id\\n status\\n error\\n aliasHeld\\n url\\n previewUrl\\n }\\n }\\n\"): typeof import('./graphql.js').SdkPollDeploymentDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkGetDeploymentByAlias($alias: String!) {\\n deploymentByAlias(alias: $alias) {\\n ...DeploymentFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkGetDeploymentByAliasDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkListDeploymentsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkListReleases($alias: String!) {\\n deploymentReleases(alias: $alias) {\\n ...DeploymentFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkListReleasesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkRollback(\\n $deploymentID: ID!\\n $expectedCurrentDeploymentID: ID!\\n $expectedCurrentAliasRevision: String!\\n ) {\\n rollbackDeployment(\\n input: {\\n deploymentID: $deploymentID\\n expectedCurrentDeploymentID: $expectedCurrentDeploymentID\\n expectedCurrentAliasRevision: $expectedCurrentAliasRevision\\n }\\n ) {\\n ...DeploymentFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkRollbackDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkServiceStatusDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkServiceLogsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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 createdAt\\n }\\n }\\n\"): typeof import('./graphql.js').SdkDeploymentEventsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkWaitForDeploymentDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkRestartServiceDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkStopServiceDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkDeleteDeployment($deploymentID: ID!) {\\n deleteDeployment(input: { deploymentID: $deploymentID }) {\\n ok\\n }\\n }\\n\"): typeof import('./graphql.js').SdkDeleteDeploymentDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkSetWorkspaceEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\\n setWorkspaceSecret(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\"): typeof import('./graphql.js').SdkSetWorkspaceSecretDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\\n deleteWorkspaceEnv(input: { workspaceID: $workspaceID, name: $name }) {\\n ok\\n }\\n }\\n\"): typeof import('./graphql.js').SdkDeleteWorkspaceEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkListWorkspaceEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\\n setAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\\n env {\\n name\\n value\\n secret\\n alias\\n inherited\\n masked\\n updatedAt\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkSetAppEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\\n setAppSecret(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\\n env {\\n name\\n value\\n secret\\n alias\\n inherited\\n masked\\n updatedAt\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkSetAppSecretDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\\n removeAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\\n ok\\n }\\n }\\n\"): typeof import('./graphql.js').SdkRemoveAppEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\\n inheritAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\\n ok\\n }\\n }\\n\"): typeof import('./graphql.js').SdkInheritAppEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkListAppEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').RunFieldsFragmentDoc;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkCreateRun($input: CreateRunInput!) {\\n createRun(input: $input) {\\n ...RunFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkCreateRunDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkGetRun($id: ID!) {\\n run(id: $id) {\\n ...RunFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkGetRunDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkPollRun($id: ID!) {\\n run(id: $id) {\\n id\\n status\\n error\\n exitCode\\n }\\n }\\n\"): typeof import('./graphql.js').SdkPollRunDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkListRunsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkCancelRun($id: ID!) {\\n cancelRun(id: $id) {\\n ...RunFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkCancelRunDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkRunEventsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\\n runConsole(id: $id, tailBytes: $tailBytes) {\\n runID\\n running\\n text\\n }\\n }\\n\"): typeof import('./graphql.js').SdkRunConsoleDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkRunTranscriptDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\\n answerRun(id: $id, answer: $answer) {\\n ...RunFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkAnswerRunDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\\n followUpRun(input: $input) {\\n ...RunFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkFollowUpRunDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkRunHarnesses {\\n runHarnesses {\\n name\\n title\\n summary\\n requires\\n }\\n }\\n\"): typeof import('./graphql.js').SdkRunHarnessesDocument;\n\n\nexport function graphql(source: string) {\n return (documents as any)[source] ?? {};\n}\n"]}
|
|
1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AAE,KAAK,CAAC,oBAAoB;IACpzB,wHAAwH,EAAE,KAAK,CAAC,oBAAoB;IACpJ,uFAAuF,EAAE,KAAK,CAAC,iBAAiB;IAChH,yHAAyH,EAAE,KAAK,CAAC,kBAAkB;IACnJ,gNAAgN,EAAE,KAAK,CAAC,mBAAmB;IAC3O,mGAAmG,EAAE,KAAK,CAAC,oBAAoB;IAC/H,oNAAoN,EAAE,KAAK,CAAC,oBAAoB;IAChP,8JAA8J,EAAE,KAAK,CAAC,qBAAqB;IAC3L,yMAAyM,EAAE,KAAK,CAAC,wBAAwB;IACzO,sIAAsI,EAAE,KAAK,CAAC,oBAAoB;IAClK,8HAA8H,EAAE,KAAK,CAAC,sBAAsB;IAC5J,uHAAuH,EAAE,KAAK,CAAC,uBAAuB;CACzJ,CAAC;AAgRF,MAAM,UAAU,OAAO,CAAC,MAAc;IACpC,OAAQ,SAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1C,CAAC","sourcesContent":["/* eslint-disable */\nimport * as types from './graphql.js';\n\n\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size\n */\ntype Documents = {\n \"\\n 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\": typeof types.DeploymentFieldsFragmentDoc,\n \"\\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\": typeof types.SdkWhoamiDocument,\n \"\\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\": typeof types.SdkCreateWorkspaceDocument,\n \"\\n query SdkListWorkspaces {\\n workspaces {\\n id\\n name\\n ownerId\\n projectId\\n createdAt\\n updatedAt\\n }\\n }\\n\": typeof types.SdkListWorkspacesDocument,\n \"\\n mutation SdkDeleteWorkspace(\\n $workspaceID: ID!\\n $withDeployments: Boolean\\n $confirmAliases: [String!]\\n ) {\\n deleteWorkspace(\\n input: {\\n workspaceID: $workspaceID\\n withDeployments: $withDeployments\\n confirmAliases: $confirmAliases\\n }\\n ) {\\n ok\\n }\\n }\\n\": typeof types.SdkDeleteWorkspaceDocument,\n \"\\n query SdkWorkspaceLiveApps($id: ID!) {\\n workspace(id: $id) {\\n id\\n liveApps {\\n alias\\n deploymentID\\n domains\\n }\\n }\\n }\\n\": typeof types.SdkWorkspaceLiveAppsDocument,\n \"\\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\": typeof types.SdkDeleteAppDocument,\n \"\\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\\n writeWorkspaceTextFile(input: { workspaceID: $workspaceID, path: $path, text: $text }) {\\n file {\\n path\\n sizeBytes\\n size\\n sha256\\n updatedAt\\n }\\n }\\n }\\n\": typeof types.SdkWriteTextFileDocument,\n \"\\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\": typeof types.SdkWriteBase64FileDocument,\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 }\\n\": typeof types.FileCommitFieldsFragmentDoc,\n \"\\n mutation SdkWriteFiles(\\n $workspaceID: ID!\\n $files: [WorkspaceFileWriteInput!]!\\n $commitMessage: String\\n ) {\\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\": typeof types.SdkWriteFilesDocument,\n \"\\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\": typeof types.SdkAppCommitsDocument,\n \"\\n query SdkAppCommitsWaiting($workspaceID: ID!) {\\n appCommits(workspaceID: $workspaceID, limit: 1) {\\n branch\\n head\\n waitingCommits\\n waitingSince\\n }\\n }\\n\": typeof types.SdkAppCommitsWaitingDocument,\n \"\\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\": typeof types.SdkWorkspaceGitSourceDocument,\n \"\\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\": typeof types.SdkAppCommitDocument,\n \"\\n mutation SdkRestoreVersion(\\n $workspaceID: ID!\\n $sha: String!\\n $expectedHead: String\\n $message: String\\n ) {\\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\": typeof types.SdkRestoreVersionDocument,\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 }\\n\": typeof types.AppErrorGroupFieldsFragmentDoc,\n \"\\n query SdkAppErrors(\\n $workspaceID: ID!\\n $alias: String!\\n $status: String\\n $limit: Int\\n $cursor: String\\n ) {\\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\": typeof types.SdkAppErrorsDocument,\n \"\\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\": typeof types.SdkAppErrorGroupDocument,\n \"\\n mutation SdkResolveErrorGroup($input: AppErrorGroupInput!) {\\n resolveAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\": typeof types.SdkResolveErrorGroupDocument,\n \"\\n mutation SdkMuteErrorGroup($input: AppErrorGroupInput!) {\\n muteAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\": typeof types.SdkMuteErrorGroupDocument,\n \"\\n mutation SdkReopenErrorGroup($input: AppErrorGroupInput!) {\\n reopenAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\": typeof types.SdkReopenErrorGroupDocument,\n \"\\n query SdkEventTypes {\\n platformEventTypes {\\n name\\n description\\n delivery\\n inputSchema\\n payloadSchema\\n }\\n }\\n\": typeof types.SdkEventTypesDocument,\n \"\\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\": typeof types.SdkPollEventsDocument,\n \"\\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\": typeof types.SdkWaitForEventsDocument,\n \"\\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\": typeof types.SdkListFilesDocument,\n \"\\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\": typeof types.SdkReadFileDocument,\n \"\\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\\n deleteWorkspaceFile(input: { workspaceID: $workspaceID, path: $path }) {\\n ok\\n }\\n }\\n\": typeof types.SdkDeleteFileDocument,\n \"\\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\\n createDeployment(input: $input) {\\n deployment {\\n ...DeploymentFields\\n }\\n }\\n }\\n\": typeof types.SdkCreateDeploymentDocument,\n \"\\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\\n deployWorkspace(input: $input) {\\n deployment {\\n ...DeploymentFields\\n }\\n }\\n }\\n\": typeof types.SdkDeployWorkspaceDocument,\n \"\\n query SdkGetDeployment($id: ID!) {\\n deployment(id: $id) {\\n ...DeploymentFields\\n }\\n }\\n\": typeof types.SdkGetDeploymentDocument,\n \"\\n query SdkPollDeployment($id: ID!) {\\n deployment(id: $id) {\\n id\\n status\\n error\\n aliasHeld\\n url\\n previewUrl\\n }\\n }\\n\": typeof types.SdkPollDeploymentDocument,\n \"\\n query SdkGetDeploymentByAlias($alias: String!) {\\n deploymentByAlias(alias: $alias) {\\n ...DeploymentFields\\n }\\n }\\n\": typeof types.SdkGetDeploymentByAliasDocument,\n \"\\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\": typeof types.SdkListDeploymentsDocument,\n \"\\n query SdkListReleases($alias: String!) {\\n deploymentReleases(alias: $alias) {\\n ...DeploymentFields\\n }\\n }\\n\": typeof types.SdkListReleasesDocument,\n \"\\n mutation SdkRollback(\\n $deploymentID: ID!\\n $expectedCurrentDeploymentID: ID!\\n $expectedCurrentAliasRevision: String!\\n ) {\\n rollbackDeployment(\\n input: {\\n deploymentID: $deploymentID\\n expectedCurrentDeploymentID: $expectedCurrentDeploymentID\\n expectedCurrentAliasRevision: $expectedCurrentAliasRevision\\n }\\n ) {\\n ...DeploymentFields\\n }\\n }\\n\": typeof types.SdkRollbackDocument,\n \"\\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\": typeof types.SdkServiceStatusDocument,\n \"\\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\": typeof types.SdkServiceLogsDocument,\n \"\\n fragment DeploymentTimingsFields on DeploymentTimings {\\n totalMs\\n buildMs\\n promoteMs\\n phases\\n buildMode\\n artifactTransport\\n buildMemoryMiB\\n }\\n\": typeof types.DeploymentTimingsFieldsFragmentDoc,\n \"\\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\": typeof types.SdkDeploymentEventsDocument,\n \"\\n query SdkDeploymentTimings($id: ID!) {\\n deployment(id: $id) {\\n id\\n timings {\\n ...DeploymentTimingsFields\\n }\\n }\\n }\\n\": typeof types.SdkDeploymentTimingsDocument,\n \"\\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\": typeof types.SdkWaitForDeploymentDocument,\n \"\\n query SdkWaitForCommitDeployment(\\n $workspaceID: ID!\\n $gitCommit: String!\\n $alias: String\\n $after: Int\\n $timeoutSeconds: Int\\n ) {\\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\": typeof types.SdkWaitForCommitDeploymentDocument,\n \"\\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\": typeof types.SdkRestartServiceDocument,\n \"\\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\": typeof types.SdkStopServiceDocument,\n \"\\n mutation SdkDeleteDeployment($deploymentID: ID!) {\\n deleteDeployment(input: { deploymentID: $deploymentID }) {\\n ok\\n }\\n }\\n\": typeof types.SdkDeleteDeploymentDocument,\n \"\\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\": typeof types.SdkSetWorkspaceEnvDocument,\n \"\\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\\n setWorkspaceSecret(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\": typeof types.SdkSetWorkspaceSecretDocument,\n \"\\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\\n deleteWorkspaceEnv(input: { workspaceID: $workspaceID, name: $name }) {\\n ok\\n }\\n }\\n\": typeof types.SdkDeleteWorkspaceEnvDocument,\n \"\\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\": typeof types.SdkListWorkspaceEnvDocument,\n \"\\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\\n setAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\\n env {\\n name\\n value\\n secret\\n alias\\n inherited\\n masked\\n updatedAt\\n }\\n }\\n }\\n\": typeof types.SdkSetAppEnvDocument,\n \"\\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\\n setAppSecret(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\\n env {\\n name\\n value\\n secret\\n alias\\n inherited\\n masked\\n updatedAt\\n }\\n }\\n }\\n\": typeof types.SdkSetAppSecretDocument,\n \"\\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\\n removeAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\\n ok\\n }\\n }\\n\": typeof types.SdkRemoveAppEnvDocument,\n \"\\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\\n inheritAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\\n ok\\n }\\n }\\n\": typeof types.SdkInheritAppEnvDocument,\n \"\\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\": typeof types.SdkListAppEnvDocument,\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 }\\n\": typeof types.RunFieldsFragmentDoc,\n \"\\n mutation SdkCreateRun($input: CreateRunInput!) {\\n createRun(input: $input) {\\n ...RunFields\\n }\\n }\\n\": typeof types.SdkCreateRunDocument,\n \"\\n query SdkGetRun($id: ID!) {\\n run(id: $id) {\\n ...RunFields\\n }\\n }\\n\": typeof types.SdkGetRunDocument,\n \"\\n query SdkPollRun($id: ID!) {\\n run(id: $id) {\\n id\\n status\\n error\\n exitCode\\n }\\n }\\n\": typeof types.SdkPollRunDocument,\n \"\\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\": typeof types.SdkListRunsDocument,\n \"\\n mutation SdkCancelRun($id: ID!) {\\n cancelRun(id: $id) {\\n ...RunFields\\n }\\n }\\n\": typeof types.SdkCancelRunDocument,\n \"\\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\": typeof types.SdkRunEventsDocument,\n \"\\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\\n runConsole(id: $id, tailBytes: $tailBytes) {\\n runID\\n running\\n text\\n }\\n }\\n\": typeof types.SdkRunConsoleDocument,\n \"\\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\": typeof types.SdkRunTranscriptDocument,\n \"\\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\\n answerRun(id: $id, answer: $answer) {\\n ...RunFields\\n }\\n }\\n\": typeof types.SdkAnswerRunDocument,\n \"\\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\\n followUpRun(input: $input) {\\n ...RunFields\\n }\\n }\\n\": typeof types.SdkFollowUpRunDocument,\n \"\\n query SdkRunHarnesses {\\n runHarnesses {\\n name\\n title\\n summary\\n requires\\n }\\n }\\n\": typeof types.SdkRunHarnessesDocument,\n};\nconst documents: Documents = {\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 }\\n\": types.DeploymentFieldsFragmentDoc,\n \"\\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\": types.SdkWhoamiDocument,\n \"\\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\": types.SdkCreateWorkspaceDocument,\n \"\\n query SdkListWorkspaces {\\n workspaces {\\n id\\n name\\n ownerId\\n projectId\\n createdAt\\n updatedAt\\n }\\n }\\n\": types.SdkListWorkspacesDocument,\n \"\\n mutation SdkDeleteWorkspace(\\n $workspaceID: ID!\\n $withDeployments: Boolean\\n $confirmAliases: [String!]\\n ) {\\n deleteWorkspace(\\n input: {\\n workspaceID: $workspaceID\\n withDeployments: $withDeployments\\n confirmAliases: $confirmAliases\\n }\\n ) {\\n ok\\n }\\n }\\n\": types.SdkDeleteWorkspaceDocument,\n \"\\n query SdkWorkspaceLiveApps($id: ID!) {\\n workspace(id: $id) {\\n id\\n liveApps {\\n alias\\n deploymentID\\n domains\\n }\\n }\\n }\\n\": types.SdkWorkspaceLiveAppsDocument,\n \"\\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\": types.SdkDeleteAppDocument,\n \"\\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\\n writeWorkspaceTextFile(input: { workspaceID: $workspaceID, path: $path, text: $text }) {\\n file {\\n path\\n sizeBytes\\n size\\n sha256\\n updatedAt\\n }\\n }\\n }\\n\": types.SdkWriteTextFileDocument,\n \"\\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\": types.SdkWriteBase64FileDocument,\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 }\\n\": types.FileCommitFieldsFragmentDoc,\n \"\\n mutation SdkWriteFiles(\\n $workspaceID: ID!\\n $files: [WorkspaceFileWriteInput!]!\\n $commitMessage: String\\n ) {\\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\": types.SdkWriteFilesDocument,\n \"\\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\": types.SdkAppCommitsDocument,\n \"\\n query SdkAppCommitsWaiting($workspaceID: ID!) {\\n appCommits(workspaceID: $workspaceID, limit: 1) {\\n branch\\n head\\n waitingCommits\\n waitingSince\\n }\\n }\\n\": types.SdkAppCommitsWaitingDocument,\n \"\\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\": types.SdkWorkspaceGitSourceDocument,\n \"\\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\": types.SdkAppCommitDocument,\n \"\\n mutation SdkRestoreVersion(\\n $workspaceID: ID!\\n $sha: String!\\n $expectedHead: String\\n $message: String\\n ) {\\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\": types.SdkRestoreVersionDocument,\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 }\\n\": types.AppErrorGroupFieldsFragmentDoc,\n \"\\n query SdkAppErrors(\\n $workspaceID: ID!\\n $alias: String!\\n $status: String\\n $limit: Int\\n $cursor: String\\n ) {\\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\": types.SdkAppErrorsDocument,\n \"\\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\": types.SdkAppErrorGroupDocument,\n \"\\n mutation SdkResolveErrorGroup($input: AppErrorGroupInput!) {\\n resolveAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\": types.SdkResolveErrorGroupDocument,\n \"\\n mutation SdkMuteErrorGroup($input: AppErrorGroupInput!) {\\n muteAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\": types.SdkMuteErrorGroupDocument,\n \"\\n mutation SdkReopenErrorGroup($input: AppErrorGroupInput!) {\\n reopenAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\": types.SdkReopenErrorGroupDocument,\n \"\\n query SdkEventTypes {\\n platformEventTypes {\\n name\\n description\\n delivery\\n inputSchema\\n payloadSchema\\n }\\n }\\n\": types.SdkEventTypesDocument,\n \"\\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\": types.SdkPollEventsDocument,\n \"\\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\": types.SdkWaitForEventsDocument,\n \"\\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\": types.SdkListFilesDocument,\n \"\\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\": types.SdkReadFileDocument,\n \"\\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\\n deleteWorkspaceFile(input: { workspaceID: $workspaceID, path: $path }) {\\n ok\\n }\\n }\\n\": types.SdkDeleteFileDocument,\n \"\\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\\n createDeployment(input: $input) {\\n deployment {\\n ...DeploymentFields\\n }\\n }\\n }\\n\": types.SdkCreateDeploymentDocument,\n \"\\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\\n deployWorkspace(input: $input) {\\n deployment {\\n ...DeploymentFields\\n }\\n }\\n }\\n\": types.SdkDeployWorkspaceDocument,\n \"\\n query SdkGetDeployment($id: ID!) {\\n deployment(id: $id) {\\n ...DeploymentFields\\n }\\n }\\n\": types.SdkGetDeploymentDocument,\n \"\\n query SdkPollDeployment($id: ID!) {\\n deployment(id: $id) {\\n id\\n status\\n error\\n aliasHeld\\n url\\n previewUrl\\n }\\n }\\n\": types.SdkPollDeploymentDocument,\n \"\\n query SdkGetDeploymentByAlias($alias: String!) {\\n deploymentByAlias(alias: $alias) {\\n ...DeploymentFields\\n }\\n }\\n\": types.SdkGetDeploymentByAliasDocument,\n \"\\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\": types.SdkListDeploymentsDocument,\n \"\\n query SdkListReleases($alias: String!) {\\n deploymentReleases(alias: $alias) {\\n ...DeploymentFields\\n }\\n }\\n\": types.SdkListReleasesDocument,\n \"\\n mutation SdkRollback(\\n $deploymentID: ID!\\n $expectedCurrentDeploymentID: ID!\\n $expectedCurrentAliasRevision: String!\\n ) {\\n rollbackDeployment(\\n input: {\\n deploymentID: $deploymentID\\n expectedCurrentDeploymentID: $expectedCurrentDeploymentID\\n expectedCurrentAliasRevision: $expectedCurrentAliasRevision\\n }\\n ) {\\n ...DeploymentFields\\n }\\n }\\n\": types.SdkRollbackDocument,\n \"\\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\": types.SdkServiceStatusDocument,\n \"\\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\": types.SdkServiceLogsDocument,\n \"\\n fragment DeploymentTimingsFields on DeploymentTimings {\\n totalMs\\n buildMs\\n promoteMs\\n phases\\n buildMode\\n artifactTransport\\n buildMemoryMiB\\n }\\n\": types.DeploymentTimingsFieldsFragmentDoc,\n \"\\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\": types.SdkDeploymentEventsDocument,\n \"\\n query SdkDeploymentTimings($id: ID!) {\\n deployment(id: $id) {\\n id\\n timings {\\n ...DeploymentTimingsFields\\n }\\n }\\n }\\n\": types.SdkDeploymentTimingsDocument,\n \"\\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\": types.SdkWaitForDeploymentDocument,\n \"\\n query SdkWaitForCommitDeployment(\\n $workspaceID: ID!\\n $gitCommit: String!\\n $alias: String\\n $after: Int\\n $timeoutSeconds: Int\\n ) {\\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\": types.SdkWaitForCommitDeploymentDocument,\n \"\\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\": types.SdkRestartServiceDocument,\n \"\\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\": types.SdkStopServiceDocument,\n \"\\n mutation SdkDeleteDeployment($deploymentID: ID!) {\\n deleteDeployment(input: { deploymentID: $deploymentID }) {\\n ok\\n }\\n }\\n\": types.SdkDeleteDeploymentDocument,\n \"\\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\": types.SdkSetWorkspaceEnvDocument,\n \"\\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\\n setWorkspaceSecret(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\": types.SdkSetWorkspaceSecretDocument,\n \"\\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\\n deleteWorkspaceEnv(input: { workspaceID: $workspaceID, name: $name }) {\\n ok\\n }\\n }\\n\": types.SdkDeleteWorkspaceEnvDocument,\n \"\\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\": types.SdkListWorkspaceEnvDocument,\n \"\\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\\n setAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\\n env {\\n name\\n value\\n secret\\n alias\\n inherited\\n masked\\n updatedAt\\n }\\n }\\n }\\n\": types.SdkSetAppEnvDocument,\n \"\\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\\n setAppSecret(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\\n env {\\n name\\n value\\n secret\\n alias\\n inherited\\n masked\\n updatedAt\\n }\\n }\\n }\\n\": types.SdkSetAppSecretDocument,\n \"\\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\\n removeAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\\n ok\\n }\\n }\\n\": types.SdkRemoveAppEnvDocument,\n \"\\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\\n inheritAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\\n ok\\n }\\n }\\n\": types.SdkInheritAppEnvDocument,\n \"\\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\": types.SdkListAppEnvDocument,\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 }\\n\": types.RunFieldsFragmentDoc,\n \"\\n mutation SdkCreateRun($input: CreateRunInput!) {\\n createRun(input: $input) {\\n ...RunFields\\n }\\n }\\n\": types.SdkCreateRunDocument,\n \"\\n query SdkGetRun($id: ID!) {\\n run(id: $id) {\\n ...RunFields\\n }\\n }\\n\": types.SdkGetRunDocument,\n \"\\n query SdkPollRun($id: ID!) {\\n run(id: $id) {\\n id\\n status\\n error\\n exitCode\\n }\\n }\\n\": types.SdkPollRunDocument,\n \"\\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\": types.SdkListRunsDocument,\n \"\\n mutation SdkCancelRun($id: ID!) {\\n cancelRun(id: $id) {\\n ...RunFields\\n }\\n }\\n\": types.SdkCancelRunDocument,\n \"\\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\": types.SdkRunEventsDocument,\n \"\\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\\n runConsole(id: $id, tailBytes: $tailBytes) {\\n runID\\n running\\n text\\n }\\n }\\n\": types.SdkRunConsoleDocument,\n \"\\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\": types.SdkRunTranscriptDocument,\n \"\\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\\n answerRun(id: $id, answer: $answer) {\\n ...RunFields\\n }\\n }\\n\": types.SdkAnswerRunDocument,\n \"\\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\\n followUpRun(input: $input) {\\n ...RunFields\\n }\\n }\\n\": types.SdkFollowUpRunDocument,\n \"\\n query SdkRunHarnesses {\\n runHarnesses {\\n name\\n title\\n summary\\n requires\\n }\\n }\\n\": types.SdkRunHarnessesDocument,\n};\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').DeploymentFieldsFragmentDoc;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkWhoamiDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkCreateWorkspaceDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkListWorkspaces {\\n workspaces {\\n id\\n name\\n ownerId\\n projectId\\n createdAt\\n updatedAt\\n }\\n }\\n\"): typeof import('./graphql.js').SdkListWorkspacesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkDeleteWorkspace(\\n $workspaceID: ID!\\n $withDeployments: Boolean\\n $confirmAliases: [String!]\\n ) {\\n deleteWorkspace(\\n input: {\\n workspaceID: $workspaceID\\n withDeployments: $withDeployments\\n confirmAliases: $confirmAliases\\n }\\n ) {\\n ok\\n }\\n }\\n\"): typeof import('./graphql.js').SdkDeleteWorkspaceDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkWorkspaceLiveApps($id: ID!) {\\n workspace(id: $id) {\\n id\\n liveApps {\\n alias\\n deploymentID\\n domains\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkWorkspaceLiveAppsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkDeleteAppDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\\n writeWorkspaceTextFile(input: { workspaceID: $workspaceID, path: $path, text: $text }) {\\n file {\\n path\\n sizeBytes\\n size\\n sha256\\n updatedAt\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkWriteTextFileDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkWriteBase64FileDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').FileCommitFieldsFragmentDoc;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkWriteFiles(\\n $workspaceID: ID!\\n $files: [WorkspaceFileWriteInput!]!\\n $commitMessage: String\\n ) {\\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\"): typeof import('./graphql.js').SdkWriteFilesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkAppCommitsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkAppCommitsWaiting($workspaceID: ID!) {\\n appCommits(workspaceID: $workspaceID, limit: 1) {\\n branch\\n head\\n waitingCommits\\n waitingSince\\n }\\n }\\n\"): typeof import('./graphql.js').SdkAppCommitsWaitingDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkWorkspaceGitSourceDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkAppCommitDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkRestoreVersion(\\n $workspaceID: ID!\\n $sha: String!\\n $expectedHead: String\\n $message: String\\n ) {\\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\"): typeof import('./graphql.js').SdkRestoreVersionDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').AppErrorGroupFieldsFragmentDoc;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkAppErrors(\\n $workspaceID: ID!\\n $alias: String!\\n $status: String\\n $limit: Int\\n $cursor: String\\n ) {\\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\"): typeof import('./graphql.js').SdkAppErrorsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkAppErrorGroupDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkResolveErrorGroup($input: AppErrorGroupInput!) {\\n resolveAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkResolveErrorGroupDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkMuteErrorGroup($input: AppErrorGroupInput!) {\\n muteAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkMuteErrorGroupDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkReopenErrorGroup($input: AppErrorGroupInput!) {\\n reopenAppErrorGroup(input: $input) {\\n ...AppErrorGroupFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkReopenErrorGroupDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkEventTypes {\\n platformEventTypes {\\n name\\n description\\n delivery\\n inputSchema\\n payloadSchema\\n }\\n }\\n\"): typeof import('./graphql.js').SdkEventTypesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkPollEventsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkWaitForEventsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkListFilesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkReadFileDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\\n deleteWorkspaceFile(input: { workspaceID: $workspaceID, path: $path }) {\\n ok\\n }\\n }\\n\"): typeof import('./graphql.js').SdkDeleteFileDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\\n createDeployment(input: $input) {\\n deployment {\\n ...DeploymentFields\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkCreateDeploymentDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\\n deployWorkspace(input: $input) {\\n deployment {\\n ...DeploymentFields\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkDeployWorkspaceDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkGetDeployment($id: ID!) {\\n deployment(id: $id) {\\n ...DeploymentFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkGetDeploymentDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkPollDeployment($id: ID!) {\\n deployment(id: $id) {\\n id\\n status\\n error\\n aliasHeld\\n url\\n previewUrl\\n }\\n }\\n\"): typeof import('./graphql.js').SdkPollDeploymentDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkGetDeploymentByAlias($alias: String!) {\\n deploymentByAlias(alias: $alias) {\\n ...DeploymentFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkGetDeploymentByAliasDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkListDeploymentsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkListReleases($alias: String!) {\\n deploymentReleases(alias: $alias) {\\n ...DeploymentFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkListReleasesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkRollback(\\n $deploymentID: ID!\\n $expectedCurrentDeploymentID: ID!\\n $expectedCurrentAliasRevision: String!\\n ) {\\n rollbackDeployment(\\n input: {\\n deploymentID: $deploymentID\\n expectedCurrentDeploymentID: $expectedCurrentDeploymentID\\n expectedCurrentAliasRevision: $expectedCurrentAliasRevision\\n }\\n ) {\\n ...DeploymentFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkRollbackDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkServiceStatusDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkServiceLogsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n fragment DeploymentTimingsFields on DeploymentTimings {\\n totalMs\\n buildMs\\n promoteMs\\n phases\\n buildMode\\n artifactTransport\\n buildMemoryMiB\\n }\\n\"): typeof import('./graphql.js').DeploymentTimingsFieldsFragmentDoc;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkDeploymentEventsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkDeploymentTimings($id: ID!) {\\n deployment(id: $id) {\\n id\\n timings {\\n ...DeploymentTimingsFields\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkDeploymentTimingsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkWaitForDeploymentDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkWaitForCommitDeployment(\\n $workspaceID: ID!\\n $gitCommit: String!\\n $alias: String\\n $after: Int\\n $timeoutSeconds: Int\\n ) {\\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\"): typeof import('./graphql.js').SdkWaitForCommitDeploymentDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkRestartServiceDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkStopServiceDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkDeleteDeployment($deploymentID: ID!) {\\n deleteDeployment(input: { deploymentID: $deploymentID }) {\\n ok\\n }\\n }\\n\"): typeof import('./graphql.js').SdkDeleteDeploymentDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkSetWorkspaceEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\\n setWorkspaceSecret(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\"): typeof import('./graphql.js').SdkSetWorkspaceSecretDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\\n deleteWorkspaceEnv(input: { workspaceID: $workspaceID, name: $name }) {\\n ok\\n }\\n }\\n\"): typeof import('./graphql.js').SdkDeleteWorkspaceEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkListWorkspaceEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\\n setAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\\n env {\\n name\\n value\\n secret\\n alias\\n inherited\\n masked\\n updatedAt\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkSetAppEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\\n setAppSecret(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\\n env {\\n name\\n value\\n secret\\n alias\\n inherited\\n masked\\n updatedAt\\n }\\n }\\n }\\n\"): typeof import('./graphql.js').SdkSetAppSecretDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\\n removeAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\\n ok\\n }\\n }\\n\"): typeof import('./graphql.js').SdkRemoveAppEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\\n inheritAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\\n ok\\n }\\n }\\n\"): typeof import('./graphql.js').SdkInheritAppEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkListAppEnvDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').RunFieldsFragmentDoc;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkCreateRun($input: CreateRunInput!) {\\n createRun(input: $input) {\\n ...RunFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkCreateRunDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkGetRun($id: ID!) {\\n run(id: $id) {\\n ...RunFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkGetRunDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkPollRun($id: ID!) {\\n run(id: $id) {\\n id\\n status\\n error\\n exitCode\\n }\\n }\\n\"): typeof import('./graphql.js').SdkPollRunDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkListRunsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkCancelRun($id: ID!) {\\n cancelRun(id: $id) {\\n ...RunFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkCancelRunDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkRunEventsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\\n runConsole(id: $id, tailBytes: $tailBytes) {\\n runID\\n running\\n text\\n }\\n }\\n\"): typeof import('./graphql.js').SdkRunConsoleDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\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\"): typeof import('./graphql.js').SdkRunTranscriptDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\\n answerRun(id: $id, answer: $answer) {\\n ...RunFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkAnswerRunDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\\n followUpRun(input: $input) {\\n ...RunFields\\n }\\n }\\n\"): typeof import('./graphql.js').SdkFollowUpRunDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query SdkRunHarnesses {\\n runHarnesses {\\n name\\n title\\n summary\\n requires\\n }\\n }\\n\"): typeof import('./graphql.js').SdkRunHarnessesDocument;\n\n\nexport function graphql(source: string) {\n return (documents as any)[source] ?? {};\n}\n"]}
|