unfazed 0.1.0 → 0.3.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.
@@ -38,6 +38,45 @@ export const DeploymentFieldsFragmentDoc = new TypedDocumentString(`
38
38
  createdAt
39
39
  }
40
40
  `, { "fragmentName": "DeploymentFields" });
41
+ export const RunFieldsFragmentDoc = new TypedDocumentString(`
42
+ fragment RunFields on Run {
43
+ id
44
+ workspaceID
45
+ ownerId
46
+ status
47
+ rawStatus
48
+ command
49
+ harness
50
+ prompt
51
+ setup
52
+ skills
53
+ approval
54
+ mode
55
+ parentRunID
56
+ depth
57
+ question {
58
+ id
59
+ text
60
+ options
61
+ askedAt
62
+ }
63
+ memoryMiB
64
+ maxSeconds
65
+ metadata
66
+ error
67
+ exitCode
68
+ vmID
69
+ transcriptAvailable
70
+ usage {
71
+ vmSeconds
72
+ memoryMiB
73
+ mibSeconds
74
+ }
75
+ createdAt
76
+ startedAt
77
+ settledAt
78
+ }
79
+ `, { "fragmentName": "RunFields" });
41
80
  export const SdkWhoamiDocument = new TypedDocumentString(`
42
81
  query SdkWhoami {
43
82
  whoami {
@@ -91,8 +130,10 @@ export const SdkListWorkspacesDocument = new TypedDocumentString(`
91
130
  }
92
131
  `);
93
132
  export const SdkDeleteWorkspaceDocument = new TypedDocumentString(`
94
- mutation SdkDeleteWorkspace($workspaceID: ID!) {
95
- deleteWorkspace(input: {workspaceID: $workspaceID}) {
133
+ mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean) {
134
+ deleteWorkspace(
135
+ input: {workspaceID: $workspaceID, withDeployments: $withDeployments}
136
+ ) {
96
137
  ok
97
138
  }
98
139
  }
@@ -604,4 +645,312 @@ export const SdkListAppEnvDocument = new TypedDocumentString(`
604
645
  }
605
646
  }
606
647
  `);
648
+ export const SdkCreateRunDocument = new TypedDocumentString(`
649
+ mutation SdkCreateRun($input: CreateRunInput!) {
650
+ createRun(input: $input) {
651
+ ...RunFields
652
+ }
653
+ }
654
+ fragment RunFields on Run {
655
+ id
656
+ workspaceID
657
+ ownerId
658
+ status
659
+ rawStatus
660
+ command
661
+ harness
662
+ prompt
663
+ setup
664
+ skills
665
+ approval
666
+ mode
667
+ parentRunID
668
+ depth
669
+ question {
670
+ id
671
+ text
672
+ options
673
+ askedAt
674
+ }
675
+ memoryMiB
676
+ maxSeconds
677
+ metadata
678
+ error
679
+ exitCode
680
+ vmID
681
+ transcriptAvailable
682
+ usage {
683
+ vmSeconds
684
+ memoryMiB
685
+ mibSeconds
686
+ }
687
+ createdAt
688
+ startedAt
689
+ settledAt
690
+ }`);
691
+ export const SdkGetRunDocument = new TypedDocumentString(`
692
+ query SdkGetRun($id: ID!) {
693
+ run(id: $id) {
694
+ ...RunFields
695
+ }
696
+ }
697
+ fragment RunFields on Run {
698
+ id
699
+ workspaceID
700
+ ownerId
701
+ status
702
+ rawStatus
703
+ command
704
+ harness
705
+ prompt
706
+ setup
707
+ skills
708
+ approval
709
+ mode
710
+ parentRunID
711
+ depth
712
+ question {
713
+ id
714
+ text
715
+ options
716
+ askedAt
717
+ }
718
+ memoryMiB
719
+ maxSeconds
720
+ metadata
721
+ error
722
+ exitCode
723
+ vmID
724
+ transcriptAvailable
725
+ usage {
726
+ vmSeconds
727
+ memoryMiB
728
+ mibSeconds
729
+ }
730
+ createdAt
731
+ startedAt
732
+ settledAt
733
+ }`);
734
+ export const SdkPollRunDocument = new TypedDocumentString(`
735
+ query SdkPollRun($id: ID!) {
736
+ run(id: $id) {
737
+ id
738
+ status
739
+ error
740
+ exitCode
741
+ }
742
+ }
743
+ `);
744
+ export const SdkListRunsDocument = new TypedDocumentString(`
745
+ query SdkListRuns($input: ListRunsInput) {
746
+ runs(input: $input) {
747
+ items {
748
+ ...RunFields
749
+ }
750
+ total
751
+ limit
752
+ offset
753
+ hasMore
754
+ nextOffset
755
+ }
756
+ }
757
+ fragment RunFields on Run {
758
+ id
759
+ workspaceID
760
+ ownerId
761
+ status
762
+ rawStatus
763
+ command
764
+ harness
765
+ prompt
766
+ setup
767
+ skills
768
+ approval
769
+ mode
770
+ parentRunID
771
+ depth
772
+ question {
773
+ id
774
+ text
775
+ options
776
+ askedAt
777
+ }
778
+ memoryMiB
779
+ maxSeconds
780
+ metadata
781
+ error
782
+ exitCode
783
+ vmID
784
+ transcriptAvailable
785
+ usage {
786
+ vmSeconds
787
+ memoryMiB
788
+ mibSeconds
789
+ }
790
+ createdAt
791
+ startedAt
792
+ settledAt
793
+ }`);
794
+ export const SdkCancelRunDocument = new TypedDocumentString(`
795
+ mutation SdkCancelRun($id: ID!) {
796
+ cancelRun(id: $id) {
797
+ ...RunFields
798
+ }
799
+ }
800
+ fragment RunFields on Run {
801
+ id
802
+ workspaceID
803
+ ownerId
804
+ status
805
+ rawStatus
806
+ command
807
+ harness
808
+ prompt
809
+ setup
810
+ skills
811
+ approval
812
+ mode
813
+ parentRunID
814
+ depth
815
+ question {
816
+ id
817
+ text
818
+ options
819
+ askedAt
820
+ }
821
+ memoryMiB
822
+ maxSeconds
823
+ metadata
824
+ error
825
+ exitCode
826
+ vmID
827
+ transcriptAvailable
828
+ usage {
829
+ vmSeconds
830
+ memoryMiB
831
+ mibSeconds
832
+ }
833
+ createdAt
834
+ startedAt
835
+ settledAt
836
+ }`);
837
+ export const SdkRunEventsDocument = new TypedDocumentString(`
838
+ query SdkRunEvents($runID: ID!, $limit: Int) {
839
+ runEvents(runID: $runID, limit: $limit) {
840
+ id
841
+ runID
842
+ type
843
+ severity
844
+ message
845
+ metadata
846
+ createdAt
847
+ }
848
+ }
849
+ `);
850
+ export const SdkRunConsoleDocument = new TypedDocumentString(`
851
+ query SdkRunConsole($id: ID!, $tailBytes: Int) {
852
+ runConsole(id: $id, tailBytes: $tailBytes) {
853
+ runID
854
+ running
855
+ text
856
+ }
857
+ }
858
+ `);
859
+ export const SdkRunTranscriptDocument = new TypedDocumentString(`
860
+ query SdkRunTranscript($id: ID!, $tailBytes: Int) {
861
+ runTranscript(id: $id, tailBytes: $tailBytes) {
862
+ runID
863
+ available
864
+ text
865
+ totalBytes
866
+ truncated
867
+ }
868
+ }
869
+ `);
870
+ export const SdkAnswerRunDocument = new TypedDocumentString(`
871
+ mutation SdkAnswerRun($id: ID!, $answer: String!) {
872
+ answerRun(id: $id, answer: $answer) {
873
+ ...RunFields
874
+ }
875
+ }
876
+ fragment RunFields on Run {
877
+ id
878
+ workspaceID
879
+ ownerId
880
+ status
881
+ rawStatus
882
+ command
883
+ harness
884
+ prompt
885
+ setup
886
+ skills
887
+ approval
888
+ mode
889
+ parentRunID
890
+ depth
891
+ question {
892
+ id
893
+ text
894
+ options
895
+ askedAt
896
+ }
897
+ memoryMiB
898
+ maxSeconds
899
+ metadata
900
+ error
901
+ exitCode
902
+ vmID
903
+ transcriptAvailable
904
+ usage {
905
+ vmSeconds
906
+ memoryMiB
907
+ mibSeconds
908
+ }
909
+ createdAt
910
+ startedAt
911
+ settledAt
912
+ }`);
913
+ export const SdkFollowUpRunDocument = new TypedDocumentString(`
914
+ mutation SdkFollowUpRun($input: FollowUpRunInput!) {
915
+ followUpRun(input: $input) {
916
+ ...RunFields
917
+ }
918
+ }
919
+ fragment RunFields on Run {
920
+ id
921
+ workspaceID
922
+ ownerId
923
+ status
924
+ rawStatus
925
+ command
926
+ harness
927
+ prompt
928
+ setup
929
+ skills
930
+ approval
931
+ mode
932
+ parentRunID
933
+ depth
934
+ question {
935
+ id
936
+ text
937
+ options
938
+ askedAt
939
+ }
940
+ memoryMiB
941
+ maxSeconds
942
+ metadata
943
+ error
944
+ exitCode
945
+ vmID
946
+ transcriptAvailable
947
+ usage {
948
+ vmSeconds
949
+ memoryMiB
950
+ mibSeconds
951
+ }
952
+ createdAt
953
+ startedAt
954
+ settledAt
955
+ }`);
607
956
  //# sourceMappingURL=graphql.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/generated/graphql.ts"],"names":[],"mappings":"AAyYA,MAAM,OAAO,mB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]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/**\n * Inlined from @graphql-typed-document-node/core by scripts/postcodegen.ts so\n * this package ships with zero dependencies, type-only ones included.\n * Structurally identical to the upstream interface.\n */\ninterface DocumentTypeDecoration<TResult, TVariables> {\n __apiType?: (variables: TVariables) => TResult;\n}\n/** A box's requested VM size. Omitted fields use the platform default. */\nexport type BoxResourcesInput = {\n /** Persistent disk in GiB (default 8, max 64). Applies only when the disk is first created; an existing disk keeps its size. */\n diskGiB?: number | null | undefined;\n /** RAM in MiB (default 2048, min 512, max 16384). */\n memMiB?: number | null | undefined;\n /** vCPU count (default 2, max 8). */\n vcpus?: number | null | undefined;\n};\n\n/**\n * Creates a deployment from the workspace's current files. The build is driven by\n * an optional root unfazed.json: STATIC serves the files as-is unless unfazed.json\n * sets build (a command run in the build VM) + output (publish dir, default \"dist\"\n * when build is set; output with no build republishes a committed dir like dist/ as\n * is); SERVICE bundles server.ts by default, or the entry set in unfazed.json.\n * install defaults to \"bun install\" (--frozen-lockfile when a bun lockfile exists).\n */\nexport type CreateDeploymentInput = {\n alias?: string | null | undefined;\n /** BOX only: optional VM size. Omit for the platform defaults. */\n boxResources?: BoxResourcesInput | null | undefined;\n /** Absolute HTTP path the cron tick POSTs to; defaults to /cron when cronSchedule is set. */\n cronPath?: string | null | undefined;\n /**\n * Standard 5-field cron spec (minute hour day-of-month month day-of-week). When\n * set, the platform wakes the SERVICE on each tick with a POST to cronPath\n * (default /cron) carrying header X-Unfz-Trigger: cron and a signed\n * X-Unfz-Cron-Token equal to the service's UNFZ_STATE_TOKEN.\n */\n cronSchedule?: string | null | undefined;\n healthPath?: string | null | undefined;\n /** STATIC (serve files) or SERVICE (run an HTTP server). Classify it yourself: SERVICE if the workspace has server.ts, a go.mod+main.go, or an unfazed.json entry, else STATIC. */\n kind: DeploymentKind;\n /** SERVICE runtime. Omit to auto-detect (a go.mod+main.go is GO, otherwise BUN). Ignored for STATIC. */\n runtime?: ServiceRuntime | null | undefined;\n /** SERVICE only. Omit for ON_DEMAND (the default — sleeps and cold-starts on first request, right for most services). Set ALWAYS_ON only to keep the VM warm. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only: when true, missing paths serve index.html (single-page apps). Ignored for SERVICE. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type CurrentActorKind =\n /** An automated caller using a self-registered bearer token. Subject to free-tier usage/resource limits; a user can claim it to link it to their account. */\n | 'AGENT'\n /** The operator of this Unfazed instance, authenticated with the owner token. Full access, no free-tier limits. */\n | 'OWNER'\n /** A human signed in via GitHub OAuth, who manages their linked agents and apps. */\n | 'USER';\n\nexport type DeployWorkspaceInput = {\n /** Optional public alias; defaults to the workspace's git deploy alias when it was imported. */\n alias?: string | null | undefined;\n /** SERVICE only; defaults to the git source's mode, otherwise ON_DEMAND. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only; overrides the detected SPA fallback. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type DeploymentEventSeverity =\n | 'ERROR'\n | 'INFO'\n | 'WARN';\n\nexport type DeploymentEventType =\n | 'DEPLOYMENT_CREATED'\n | 'DEPLOYMENT_PROMOTION_REJECTED'\n | 'DEPLOYMENT_ROLLED_BACK'\n | 'SERVICE_BOOT_FAILED'\n | 'SERVICE_BUILD_FAILED'\n | 'SERVICE_BUILD_SUCCEEDED'\n | 'SERVICE_CRON_TRIGGERED'\n | 'SERVICE_HEALTH_PROBE_FAILED'\n | 'SERVICE_PROXY_ERROR'\n | 'SERVICE_RESTART_REQUESTED'\n | 'SERVICE_STOP_REQUESTED'\n | 'SERVICE_SUPERVISOR_STARTED'\n | 'SERVICE_SUPERVISOR_STOPPED'\n | 'SERVICE_VM_STARTED'\n | 'SERVICE_VM_START_FAILED'\n | 'SERVICE_VM_STOPPED'\n | 'SERVICE_WATCHDOG_PROBE_FAILED'\n | 'SERVICE_WATCHDOG_RESTART'\n | 'UNKNOWN';\n\nexport type DeploymentKind =\n /** A persistent always-on Linux VM with a per-workspace data disk (docs/agent-box.md). */\n | 'BOX'\n | 'SERVICE'\n | 'STATIC';\n\nexport type DeploymentStatus =\n | 'BUILDING'\n | 'FAILED'\n | 'READY';\n\nexport type ListDeploymentsInput = {\n alias?: string | null | undefined;\n kind?: DeploymentKind | null | undefined;\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID?: string | number | null | undefined;\n};\n\nexport type ListWorkspaceFilesInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID: string | number;\n};\n\nexport type ReadWorkspaceFileInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n path: string;\n workspaceID: string | number;\n};\n\nexport type ServiceMode =\n /** Keeps a supervised VM running 24/7 (resource-expensive). Reserve for services that must stay warm (low first-request latency), do background work between requests, or run a frequent cron. */\n | 'ALWAYS_ON'\n /** Default. Sleeps and cold-starts a VM on the first request, then parks it after a short idle period — cheap and right for most services. Use on_demand + cronSchedule for periodic work. */\n | 'ON_DEMAND';\n\nexport type ServiceRuntime =\n /** Default. Bundles a TypeScript/JavaScript entry (server.ts) into a Bun HTTP server. */\n | 'BUN'\n /** Compiles a Go module (go.mod) into a static binary that starts its own HTTP server on $PORT. */\n | 'GO';\n\nexport type DeploymentFieldsFragment = { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string };\n\nexport type SdkWhoamiQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkWhoamiQuery = { whoami: { kind: CurrentActorKind, userID: string, name: string, agentID: string | null, agentName: string | null, claimed: boolean, claimedBy: string | null, scopes: Array<string>, expiresAt: string | null, usage: { month: string, requests: number, limit: number } | null, resources: { workspaces: number, workspaceLimit: number, services: number, serviceLimit: number } | null } };\n\nexport type SdkCreateWorkspaceMutationVariables = Exact<{\n name: string;\n}>;\n\n\nexport type SdkCreateWorkspaceMutation = { createWorkspace: { workspace: { id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string } } };\n\nexport type SdkListWorkspacesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkListWorkspacesQuery = { workspaces: Array<{ id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string }> };\n\nexport type SdkDeleteWorkspaceMutationVariables = Exact<{\n workspaceID: string | number;\n}>;\n\n\nexport type SdkDeleteWorkspaceMutation = { deleteWorkspace: { ok: boolean } };\n\nexport type SdkWriteTextFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n text: string;\n}>;\n\n\nexport type SdkWriteTextFileMutation = { writeWorkspaceTextFile: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkWriteBase64FileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n contentBase64: string;\n}>;\n\n\nexport type SdkWriteBase64FileMutation = { writeWorkspaceBase64File: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkListFilesQueryVariables = Exact<{\n input: ListWorkspaceFilesInput;\n}>;\n\n\nexport type SdkListFilesQuery = { workspaceFilesPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string }> } };\n\nexport type SdkReadFileQueryVariables = Exact<{\n input: ReadWorkspaceFileInput;\n}>;\n\n\nexport type SdkReadFileQuery = { readWorkspaceFile: { text: string, offset: number, limit: number, totalBytes: number, truncated: boolean, nextOffset: number | null, file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } | null };\n\nexport type SdkDeleteFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n}>;\n\n\nexport type SdkDeleteFileMutation = { deleteWorkspaceFile: { ok: boolean } };\n\nexport type SdkCreateDeploymentMutationVariables = Exact<{\n input: CreateDeploymentInput;\n}>;\n\n\nexport type SdkCreateDeploymentMutation = { createDeployment: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkDeployWorkspaceMutationVariables = Exact<{\n input: DeployWorkspaceInput;\n}>;\n\n\nexport type SdkDeployWorkspaceMutation = { deployWorkspace: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkGetDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkGetDeploymentQuery = { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkPollDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkPollDeploymentQuery = { deployment: { id: string, status: DeploymentStatus, error: string | null, aliasHeld: boolean, url: string, previewUrl: string } | null };\n\nexport type SdkGetDeploymentByAliasQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkGetDeploymentByAliasQuery = { deploymentByAlias: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkListDeploymentsQueryVariables = Exact<{\n input?: ListDeploymentsInput | null | undefined;\n}>;\n\n\nexport type SdkListDeploymentsQuery = { deploymentsPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> } };\n\nexport type SdkListReleasesQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkListReleasesQuery = { deploymentReleases: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> };\n\nexport type SdkRollbackMutationVariables = Exact<{\n deploymentID: string | number;\n expectedCurrentDeploymentID: string | number;\n expectedCurrentAliasRevision: string;\n}>;\n\n\nexport type SdkRollbackMutation = { rollbackDeployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } };\n\nexport type SdkServiceStatusQueryVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkServiceStatusQuery = { serviceStatus: { deploymentID: string, alias: string | null, serviceMode: ServiceMode, running: boolean, health: string, vmID: string | null, inFlight: number, alwaysOn: boolean, memSizeMiB: number, startedAt: string | null, lastUsedAt: string | null, lastStoppedAt: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkServiceLogsQueryVariables = Exact<{\n deploymentID: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkServiceLogsQuery = { serviceLogs: { deploymentID: string, stdout: string, stderr: string, truncated: boolean, stdoutBytes: number, stderrBytes: number, tailBytes: number } };\n\nexport type SdkDeploymentEventsQueryVariables = Exact<{\n deploymentID: string | number;\n limit?: number | null | undefined;\n}>;\n\n\nexport type SdkDeploymentEventsQuery = { deploymentEvents: Array<{ id: string, deploymentID: string, type: DeploymentEventType, rawType: string, severity: DeploymentEventSeverity, message: string, vmID: string | null, createdAt: string }> };\n\nexport type SdkRestartServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkRestartServiceMutation = { restartService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkStopServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkStopServiceMutation = { stopService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkDeleteDeploymentMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkDeleteDeploymentMutation = { deleteDeployment: { ok: boolean } };\n\nexport type SdkSetWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceEnvMutation = { setWorkspaceEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetWorkspaceSecretMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceSecretMutation = { setWorkspaceSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkDeleteWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n}>;\n\n\nexport type SdkDeleteWorkspaceEnvMutation = { deleteWorkspaceEnv: { ok: boolean } };\n\nexport type SdkListWorkspaceEnvQueryVariables = Exact<{\n workspaceID: string | number;\n}>;\n\n\nexport type SdkListWorkspaceEnvQuery = { workspaceEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport type SdkSetAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppEnvMutation = { setAppEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetAppSecretMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppSecretMutation = { setAppSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkRemoveAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkRemoveAppEnvMutation = { removeAppEnv: { ok: boolean } };\n\nexport type SdkInheritAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkInheritAppEnvMutation = { inheritAppEnv: { ok: boolean } };\n\nexport type SdkListAppEnvQueryVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n}>;\n\n\nexport type SdkListAppEnvQuery = { appEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport class TypedDocumentString<TResult, TVariables>\n extends String\n implements DocumentTypeDecoration<TResult, TVariables>\n{\n __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;\n private value: string;\n public __meta__?: Record<string, any> | undefined;\n\n constructor(value: string, __meta__?: Record<string, any> | undefined) {\n super(value);\n this.value = value;\n this.__meta__ = __meta__;\n }\n\n override toString(): string & DocumentTypeDecoration<TResult, TVariables> {\n return this.value;\n }\n}\nexport const DeploymentFieldsFragmentDoc = new TypedDocumentString(`\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}\n `, {\"fragmentName\":\"DeploymentFields\"}) as unknown as TypedDocumentString<DeploymentFieldsFragment, unknown>;\nexport const SdkWhoamiDocument = new TypedDocumentString(`\n query SdkWhoami {\n whoami {\n kind\n userID\n name\n agentID\n agentName\n claimed\n claimedBy\n scopes\n expiresAt\n usage {\n month\n requests\n limit\n }\n resources {\n workspaces\n workspaceLimit\n services\n serviceLimit\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWhoamiQuery, SdkWhoamiQueryVariables>;\nexport const SdkCreateWorkspaceDocument = new TypedDocumentString(`\n mutation SdkCreateWorkspace($name: String!) {\n createWorkspace(input: {name: $name}) {\n workspace {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkCreateWorkspaceMutation, SdkCreateWorkspaceMutationVariables>;\nexport const SdkListWorkspacesDocument = new TypedDocumentString(`\n query SdkListWorkspaces {\n workspaces {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspacesQuery, SdkListWorkspacesQueryVariables>;\nexport const SdkDeleteWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspace($workspaceID: ID!) {\n deleteWorkspace(input: {workspaceID: $workspaceID}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceMutation, SdkDeleteWorkspaceMutationVariables>;\nexport const SdkWriteTextFileDocument = new TypedDocumentString(`\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\n writeWorkspaceTextFile(\n input: {workspaceID: $workspaceID, path: $path, text: $text}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteTextFileMutation, SdkWriteTextFileMutationVariables>;\nexport const SdkWriteBase64FileDocument = new TypedDocumentString(`\n mutation SdkWriteBase64File($workspaceID: ID!, $path: String!, $contentBase64: String!) {\n writeWorkspaceBase64File(\n input: {workspaceID: $workspaceID, path: $path, contentBase64: $contentBase64}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteBase64FileMutation, SdkWriteBase64FileMutationVariables>;\nexport const SdkListFilesDocument = new TypedDocumentString(`\n query SdkListFiles($input: ListWorkspaceFilesInput!) {\n workspaceFilesPage(input: $input) {\n items {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n `) as unknown as TypedDocumentString<SdkListFilesQuery, SdkListFilesQueryVariables>;\nexport const SdkReadFileDocument = new TypedDocumentString(`\n query SdkReadFile($input: ReadWorkspaceFileInput!) {\n readWorkspaceFile(input: $input) {\n text\n offset\n limit\n totalBytes\n truncated\n nextOffset\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkReadFileQuery, SdkReadFileQueryVariables>;\nexport const SdkDeleteFileDocument = new TypedDocumentString(`\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\n deleteWorkspaceFile(input: {workspaceID: $workspaceID, path: $path}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteFileMutation, SdkDeleteFileMutationVariables>;\nexport const SdkCreateDeploymentDocument = new TypedDocumentString(`\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\n createDeployment(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkCreateDeploymentMutation, SdkCreateDeploymentMutationVariables>;\nexport const SdkDeployWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\n deployWorkspace(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkDeployWorkspaceMutation, SdkDeployWorkspaceMutationVariables>;\nexport const SdkGetDeploymentDocument = new TypedDocumentString(`\n query SdkGetDeployment($id: ID!) {\n deployment(id: $id) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentQuery, SdkGetDeploymentQueryVariables>;\nexport const SdkPollDeploymentDocument = new TypedDocumentString(`\n query SdkPollDeployment($id: ID!) {\n deployment(id: $id) {\n id\n status\n error\n aliasHeld\n url\n previewUrl\n }\n}\n `) as unknown as TypedDocumentString<SdkPollDeploymentQuery, SdkPollDeploymentQueryVariables>;\nexport const SdkGetDeploymentByAliasDocument = new TypedDocumentString(`\n query SdkGetDeploymentByAlias($alias: String!) {\n deploymentByAlias(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentByAliasQuery, SdkGetDeploymentByAliasQueryVariables>;\nexport const SdkListDeploymentsDocument = new TypedDocumentString(`\n query SdkListDeployments($input: ListDeploymentsInput) {\n deploymentsPage(input: $input) {\n items {\n ...DeploymentFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListDeploymentsQuery, SdkListDeploymentsQueryVariables>;\nexport const SdkListReleasesDocument = new TypedDocumentString(`\n query SdkListReleases($alias: String!) {\n deploymentReleases(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListReleasesQuery, SdkListReleasesQueryVariables>;\nexport const SdkRollbackDocument = new TypedDocumentString(`\n mutation SdkRollback($deploymentID: ID!, $expectedCurrentDeploymentID: ID!, $expectedCurrentAliasRevision: String!) {\n rollbackDeployment(\n input: {deploymentID: $deploymentID, expectedCurrentDeploymentID: $expectedCurrentDeploymentID, expectedCurrentAliasRevision: $expectedCurrentAliasRevision}\n ) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkRollbackMutation, SdkRollbackMutationVariables>;\nexport const SdkServiceStatusDocument = new TypedDocumentString(`\n query SdkServiceStatus($deploymentID: ID!) {\n serviceStatus(deploymentID: $deploymentID) {\n deploymentID\n alias\n serviceMode\n running\n health\n vmID\n inFlight\n alwaysOn\n memSizeMiB\n startedAt\n lastUsedAt\n lastStoppedAt\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceStatusQuery, SdkServiceStatusQueryVariables>;\nexport const SdkServiceLogsDocument = new TypedDocumentString(`\n query SdkServiceLogs($deploymentID: ID!, $tailBytes: Int) {\n serviceLogs(deploymentID: $deploymentID, tailBytes: $tailBytes) {\n deploymentID\n stdout\n stderr\n truncated\n stdoutBytes\n stderrBytes\n tailBytes\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceLogsQuery, SdkServiceLogsQueryVariables>;\nexport const SdkDeploymentEventsDocument = new TypedDocumentString(`\n query SdkDeploymentEvents($deploymentID: ID!, $limit: Int) {\n deploymentEvents(deploymentID: $deploymentID, limit: $limit) {\n id\n deploymentID\n type\n rawType\n severity\n message\n vmID\n createdAt\n }\n}\n `) as unknown as TypedDocumentString<SdkDeploymentEventsQuery, SdkDeploymentEventsQueryVariables>;\nexport const SdkRestartServiceDocument = new TypedDocumentString(`\n mutation SdkRestartService($deploymentID: ID!) {\n restartService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkRestartServiceMutation, SdkRestartServiceMutationVariables>;\nexport const SdkStopServiceDocument = new TypedDocumentString(`\n mutation SdkStopService($deploymentID: ID!) {\n stopService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkStopServiceMutation, SdkStopServiceMutationVariables>;\nexport const SdkDeleteDeploymentDocument = new TypedDocumentString(`\n mutation SdkDeleteDeployment($deploymentID: ID!) {\n deleteDeployment(input: {deploymentID: $deploymentID}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteDeploymentMutation, SdkDeleteDeploymentMutationVariables>;\nexport const SdkSetWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceEnv($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name, value: $value}) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceEnvMutation, SdkSetWorkspaceEnvMutationVariables>;\nexport const SdkSetWorkspaceSecretDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceSecret(\n input: {workspaceID: $workspaceID, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceSecretMutation, SdkSetWorkspaceSecretMutationVariables>;\nexport const SdkDeleteWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\n deleteWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceEnvMutation, SdkDeleteWorkspaceEnvMutationVariables>;\nexport const SdkListWorkspaceEnvDocument = new TypedDocumentString(`\n query SdkListWorkspaceEnv($workspaceID: ID!) {\n workspaceEnv(workspaceID: $workspaceID) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspaceEnvQuery, SdkListWorkspaceEnvQueryVariables>;\nexport const SdkSetAppEnvDocument = new TypedDocumentString(`\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppEnv(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppEnvMutation, SdkSetAppEnvMutationVariables>;\nexport const SdkSetAppSecretDocument = new TypedDocumentString(`\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppSecret(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppSecretMutation, SdkSetAppSecretMutationVariables>;\nexport const SdkRemoveAppEnvDocument = new TypedDocumentString(`\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n removeAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkRemoveAppEnvMutation, SdkRemoveAppEnvMutationVariables>;\nexport const SdkInheritAppEnvDocument = new TypedDocumentString(`\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n inheritAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkInheritAppEnvMutation, SdkInheritAppEnvMutationVariables>;\nexport const SdkListAppEnvDocument = new TypedDocumentString(`\n query SdkListAppEnv($workspaceID: ID!, $alias: String!) {\n appEnv(workspaceID: $workspaceID, alias: $alias) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListAppEnvQuery, SdkListAppEnvQueryVariables>;"]}
1
+ {"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/generated/graphql.ts"],"names":[],"mappings":"AAogBA,MAAM,OAAO,mBACX,SAAQ,MAAM;IAGd,SAAS,CAAyE;IAC1E,KAAK,CAAS;IACf,QAAQ,CAAmC;IAElD,YAAY,KAAa,EAAE,QAA0C;QACnE,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEQ,QAAQ;QACf,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AACD,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;KA0B9D,EAAE,EAAC,cAAc,EAAC,kBAAkB,EAAC,CAAsE,CAAC;AACjH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsCvD,EAAE,EAAC,cAAc,EAAC,WAAW,EAAC,CAA+D,CAAC;AACnG,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;KAyB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CAAC;AAC3F,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;KAYvD,CAAkF,CAAC;AACxF,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;KAQxD,CAAoF,CAAC;AAC1F,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;KAU3D,CAA0F,CAAC;AAChG,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0C1D,CAAwF,CAAC;AAC3F,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0C5D,CAA4F,CAAC","sourcesContent":["/* eslint-disable */\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/**\n * Inlined from @graphql-typed-document-node/core by scripts/postcodegen.ts so\n * this package ships with zero dependencies, type-only ones included.\n * Structurally identical to the upstream interface.\n */\ninterface DocumentTypeDecoration<TResult, TVariables> {\n __apiType?: (variables: TVariables) => TResult;\n}\n/** A box's requested VM size. Omitted fields use the platform default. */\nexport type BoxResourcesInput = {\n /** Persistent disk in GiB (default 8, max 64). Applies only when the disk is first created; an existing disk keeps its size. */\n diskGiB?: number | null | undefined;\n /** RAM in MiB (default 2048, min 512, max 16384). */\n memMiB?: number | null | undefined;\n /** vCPU count (default 2, max 8). */\n vcpus?: number | null | undefined;\n};\n\n/**\n * Creates a deployment from the workspace's current files. The build is driven by\n * an optional root unfazed.json: STATIC serves the files as-is unless unfazed.json\n * sets build (a command run in the build VM) + output (publish dir, default \"dist\"\n * when build is set; output with no build republishes a committed dir like dist/ as\n * is); SERVICE bundles server.ts by default, or the entry set in unfazed.json.\n * install defaults to \"bun install\" (--frozen-lockfile when a bun lockfile exists).\n */\nexport type CreateDeploymentInput = {\n alias?: string | null | undefined;\n /** BOX only: optional VM size. Omit for the platform defaults. */\n boxResources?: BoxResourcesInput | null | undefined;\n /** Absolute HTTP path the cron tick POSTs to; defaults to /cron when cronSchedule is set. */\n cronPath?: string | null | undefined;\n /**\n * Standard 5-field cron spec (minute hour day-of-month month day-of-week). When\n * set, the platform wakes the SERVICE on each tick with a POST to cronPath\n * (default /cron) carrying header X-Unfz-Trigger: cron and a signed\n * X-Unfz-Cron-Token equal to the service's UNFZ_STATE_TOKEN.\n */\n cronSchedule?: string | null | undefined;\n healthPath?: string | null | undefined;\n /** STATIC (serve files) or SERVICE (run an HTTP server). Classify it yourself: SERVICE if the workspace has server.ts, a go.mod+main.go, or an unfazed.json entry, else STATIC. */\n kind: DeploymentKind;\n /** SERVICE runtime. Omit to auto-detect (a go.mod+main.go is GO, otherwise BUN). Ignored for STATIC. */\n runtime?: ServiceRuntime | null | undefined;\n /** SERVICE only. Omit for ON_DEMAND (the default — sleeps and cold-starts on first request, right for most services). Set ALWAYS_ON only to keep the VM warm. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only: when true, missing paths serve index.html (single-page apps). Ignored for SERVICE. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type CreateRunInput = {\n /** \"human\" routes the harness's permission prompts to you (the run BLOCKS until you answer); empty keeps the harness's own defaults. */\n approval?: string | null | undefined;\n command?: string | null | undefined;\n harness?: string | null | undefined;\n includeFiles?: boolean | null | undefined;\n maxSeconds?: number | null | undefined;\n memoryMiB?: number | null | undefined;\n metadata?: unknown;\n /** \"plan\" asks the harness to write a plan without acting; empty does the task. */\n mode?: string | null | undefined;\n /** The run this one continues; usually set through followUpRun. */\n parentRunID?: string | number | null | undefined;\n prompt?: string | null | undefined;\n /** Shell commands run in /work before the harness; the first failure fails the run. */\n setup?: Array<string> | null | undefined;\n /** Skills fetched into .claude/skills before the harness, as owner/repo:path. */\n skills?: Array<string> | null | undefined;\n workspaceID: string | number;\n};\n\nexport type CurrentActorKind =\n /** An automated caller using a self-registered bearer token. Subject to free-tier usage/resource limits; a user can claim it to link it to their account. */\n | 'AGENT'\n /** The operator of this Unfazed instance, authenticated with the owner token. Full access, no free-tier limits. */\n | 'OWNER'\n /** A human signed in via GitHub OAuth, who manages their linked agents and apps. */\n | 'USER';\n\nexport type DeployWorkspaceInput = {\n /** Optional public alias; defaults to the workspace's git deploy alias when it was imported. */\n alias?: string | null | undefined;\n /** SERVICE only; defaults to the git source's mode, otherwise ON_DEMAND. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only; overrides the detected SPA fallback. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type DeploymentEventSeverity =\n | 'ERROR'\n | 'INFO'\n | 'WARN';\n\nexport type DeploymentEventType =\n | 'DEPLOYMENT_CREATED'\n | 'DEPLOYMENT_PROMOTION_REJECTED'\n | 'DEPLOYMENT_ROLLED_BACK'\n | 'SERVICE_BOOT_FAILED'\n | 'SERVICE_BUILD_FAILED'\n | 'SERVICE_BUILD_SUCCEEDED'\n | 'SERVICE_CRON_TRIGGERED'\n | 'SERVICE_HEALTH_PROBE_FAILED'\n | 'SERVICE_PROXY_ERROR'\n | 'SERVICE_RESTART_REQUESTED'\n | 'SERVICE_STOP_REQUESTED'\n | 'SERVICE_SUPERVISOR_STARTED'\n | 'SERVICE_SUPERVISOR_STOPPED'\n | 'SERVICE_VM_STARTED'\n | 'SERVICE_VM_START_FAILED'\n | 'SERVICE_VM_STOPPED'\n | 'SERVICE_WATCHDOG_PROBE_FAILED'\n | 'SERVICE_WATCHDOG_RESTART'\n | 'UNKNOWN';\n\nexport type DeploymentKind =\n /** A persistent always-on Linux VM with a per-workspace data disk (docs/agent-box.md). */\n | 'BOX'\n | 'SERVICE'\n | 'STATIC';\n\nexport type DeploymentStatus =\n | 'BUILDING'\n | 'FAILED'\n | 'READY';\n\nexport type FollowUpRunInput = {\n approval?: string | null | undefined;\n maxSeconds?: number | null | undefined;\n metadata?: unknown;\n mode?: string | null | undefined;\n prompt: string;\n runID: string | number;\n};\n\nexport type ListDeploymentsInput = {\n alias?: string | null | undefined;\n kind?: DeploymentKind | null | undefined;\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID?: string | number | null | undefined;\n};\n\nexport type ListRunsInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n status?: RunStatus | null | undefined;\n workspaceID?: string | number | null | undefined;\n};\n\nexport type ListWorkspaceFilesInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID: string | number;\n};\n\nexport type ReadWorkspaceFileInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n path: string;\n workspaceID: string | number;\n};\n\nexport type RunStatus =\n /** Waiting for a human's answer (see Run.question); the VM stays up and the wall clock keeps running. */\n | 'BLOCKED'\n | 'CANCELLED'\n | 'FAILED'\n | 'QUEUED'\n | 'RUNNING'\n | 'SUCCEEDED';\n\nexport type ServiceMode =\n /** Keeps a supervised VM running 24/7 (resource-expensive). Reserve for services that must stay warm (low first-request latency), do background work between requests, or run a frequent cron. */\n | 'ALWAYS_ON'\n /** Default. Sleeps and cold-starts a VM on the first request, then parks it after a short idle period — cheap and right for most services. Use on_demand + cronSchedule for periodic work. */\n | 'ON_DEMAND';\n\nexport type ServiceRuntime =\n /** Default. Bundles a TypeScript/JavaScript entry (server.ts) into a Bun HTTP server. */\n | 'BUN'\n /** Compiles a Go module (go.mod) into a static binary that starts its own HTTP server on $PORT. */\n | 'GO';\n\nexport type DeploymentFieldsFragment = { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string };\n\nexport type SdkWhoamiQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkWhoamiQuery = { whoami: { kind: CurrentActorKind, userID: string, name: string, agentID: string | null, agentName: string | null, claimed: boolean, claimedBy: string | null, scopes: Array<string>, expiresAt: string | null, usage: { month: string, requests: number, limit: number } | null, resources: { workspaces: number, workspaceLimit: number, services: number, serviceLimit: number } | null } };\n\nexport type SdkCreateWorkspaceMutationVariables = Exact<{\n name: string;\n}>;\n\n\nexport type SdkCreateWorkspaceMutation = { createWorkspace: { workspace: { id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string } } };\n\nexport type SdkListWorkspacesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkListWorkspacesQuery = { workspaces: Array<{ id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string }> };\n\nexport type SdkDeleteWorkspaceMutationVariables = Exact<{\n workspaceID: string | number;\n withDeployments?: boolean | null | undefined;\n}>;\n\n\nexport type SdkDeleteWorkspaceMutation = { deleteWorkspace: { ok: boolean } };\n\nexport type SdkWriteTextFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n text: string;\n}>;\n\n\nexport type SdkWriteTextFileMutation = { writeWorkspaceTextFile: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkWriteBase64FileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n contentBase64: string;\n}>;\n\n\nexport type SdkWriteBase64FileMutation = { writeWorkspaceBase64File: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkListFilesQueryVariables = Exact<{\n input: ListWorkspaceFilesInput;\n}>;\n\n\nexport type SdkListFilesQuery = { workspaceFilesPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string }> } };\n\nexport type SdkReadFileQueryVariables = Exact<{\n input: ReadWorkspaceFileInput;\n}>;\n\n\nexport type SdkReadFileQuery = { readWorkspaceFile: { text: string, offset: number, limit: number, totalBytes: number, truncated: boolean, nextOffset: number | null, file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } | null };\n\nexport type SdkDeleteFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n}>;\n\n\nexport type SdkDeleteFileMutation = { deleteWorkspaceFile: { ok: boolean } };\n\nexport type SdkCreateDeploymentMutationVariables = Exact<{\n input: CreateDeploymentInput;\n}>;\n\n\nexport type SdkCreateDeploymentMutation = { createDeployment: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkDeployWorkspaceMutationVariables = Exact<{\n input: DeployWorkspaceInput;\n}>;\n\n\nexport type SdkDeployWorkspaceMutation = { deployWorkspace: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkGetDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkGetDeploymentQuery = { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkPollDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkPollDeploymentQuery = { deployment: { id: string, status: DeploymentStatus, error: string | null, aliasHeld: boolean, url: string, previewUrl: string } | null };\n\nexport type SdkGetDeploymentByAliasQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkGetDeploymentByAliasQuery = { deploymentByAlias: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkListDeploymentsQueryVariables = Exact<{\n input?: ListDeploymentsInput | null | undefined;\n}>;\n\n\nexport type SdkListDeploymentsQuery = { deploymentsPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> } };\n\nexport type SdkListReleasesQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkListReleasesQuery = { deploymentReleases: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> };\n\nexport type SdkRollbackMutationVariables = Exact<{\n deploymentID: string | number;\n expectedCurrentDeploymentID: string | number;\n expectedCurrentAliasRevision: string;\n}>;\n\n\nexport type SdkRollbackMutation = { rollbackDeployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } };\n\nexport type SdkServiceStatusQueryVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkServiceStatusQuery = { serviceStatus: { deploymentID: string, alias: string | null, serviceMode: ServiceMode, running: boolean, health: string, vmID: string | null, inFlight: number, alwaysOn: boolean, memSizeMiB: number, startedAt: string | null, lastUsedAt: string | null, lastStoppedAt: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkServiceLogsQueryVariables = Exact<{\n deploymentID: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkServiceLogsQuery = { serviceLogs: { deploymentID: string, stdout: string, stderr: string, truncated: boolean, stdoutBytes: number, stderrBytes: number, tailBytes: number } };\n\nexport type SdkDeploymentEventsQueryVariables = Exact<{\n deploymentID: string | number;\n limit?: number | null | undefined;\n}>;\n\n\nexport type SdkDeploymentEventsQuery = { deploymentEvents: Array<{ id: string, deploymentID: string, type: DeploymentEventType, rawType: string, severity: DeploymentEventSeverity, message: string, vmID: string | null, createdAt: string }> };\n\nexport type SdkRestartServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkRestartServiceMutation = { restartService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkStopServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkStopServiceMutation = { stopService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkDeleteDeploymentMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkDeleteDeploymentMutation = { deleteDeployment: { ok: boolean } };\n\nexport type SdkSetWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceEnvMutation = { setWorkspaceEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetWorkspaceSecretMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceSecretMutation = { setWorkspaceSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkDeleteWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n}>;\n\n\nexport type SdkDeleteWorkspaceEnvMutation = { deleteWorkspaceEnv: { ok: boolean } };\n\nexport type SdkListWorkspaceEnvQueryVariables = Exact<{\n workspaceID: string | number;\n}>;\n\n\nexport type SdkListWorkspaceEnvQuery = { workspaceEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport type SdkSetAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppEnvMutation = { setAppEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetAppSecretMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppSecretMutation = { setAppSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkRemoveAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkRemoveAppEnvMutation = { removeAppEnv: { ok: boolean } };\n\nexport type SdkInheritAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkInheritAppEnvMutation = { inheritAppEnv: { ok: boolean } };\n\nexport type SdkListAppEnvQueryVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n}>;\n\n\nexport type SdkListAppEnvQuery = { appEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport type RunFieldsFragment = { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } };\n\nexport type SdkCreateRunMutationVariables = Exact<{\n input: CreateRunInput;\n}>;\n\n\nexport type SdkCreateRunMutation = { createRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkGetRunQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkGetRunQuery = { run: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkPollRunQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkPollRunQuery = { run: { id: string, status: RunStatus, error: string | null, exitCode: number | null } };\n\nexport type SdkListRunsQueryVariables = Exact<{\n input?: ListRunsInput | null | undefined;\n}>;\n\n\nexport type SdkListRunsQuery = { runs: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } }> } };\n\nexport type SdkCancelRunMutationVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkCancelRunMutation = { cancelRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkRunEventsQueryVariables = Exact<{\n runID: string | number;\n limit?: number | null | undefined;\n}>;\n\n\nexport type SdkRunEventsQuery = { runEvents: Array<{ id: string, runID: string, type: string, severity: DeploymentEventSeverity, message: string, metadata: unknown, createdAt: string }> };\n\nexport type SdkRunConsoleQueryVariables = Exact<{\n id: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkRunConsoleQuery = { runConsole: { runID: string, running: boolean, text: string } };\n\nexport type SdkRunTranscriptQueryVariables = Exact<{\n id: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkRunTranscriptQuery = { runTranscript: { runID: string, available: boolean, text: string, totalBytes: number, truncated: boolean } };\n\nexport type SdkAnswerRunMutationVariables = Exact<{\n id: string | number;\n answer: string;\n}>;\n\n\nexport type SdkAnswerRunMutation = { answerRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkFollowUpRunMutationVariables = Exact<{\n input: FollowUpRunInput;\n}>;\n\n\nexport type SdkFollowUpRunMutation = { followUpRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport class TypedDocumentString<TResult, TVariables>\n extends String\n implements DocumentTypeDecoration<TResult, TVariables>\n{\n __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;\n private value: string;\n public __meta__?: Record<string, any> | undefined;\n\n constructor(value: string, __meta__?: Record<string, any> | undefined) {\n super(value);\n this.value = value;\n this.__meta__ = __meta__;\n }\n\n override toString(): string & DocumentTypeDecoration<TResult, TVariables> {\n return this.value;\n }\n}\nexport const DeploymentFieldsFragmentDoc = new TypedDocumentString(`\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}\n `, {\"fragmentName\":\"DeploymentFields\"}) as unknown as TypedDocumentString<DeploymentFieldsFragment, unknown>;\nexport const RunFieldsFragmentDoc = new TypedDocumentString(`\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\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 vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}\n `, {\"fragmentName\":\"RunFields\"}) as unknown as TypedDocumentString<RunFieldsFragment, unknown>;\nexport const SdkWhoamiDocument = new TypedDocumentString(`\n query SdkWhoami {\n whoami {\n kind\n userID\n name\n agentID\n agentName\n claimed\n claimedBy\n scopes\n expiresAt\n usage {\n month\n requests\n limit\n }\n resources {\n workspaces\n workspaceLimit\n services\n serviceLimit\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWhoamiQuery, SdkWhoamiQueryVariables>;\nexport const SdkCreateWorkspaceDocument = new TypedDocumentString(`\n mutation SdkCreateWorkspace($name: String!) {\n createWorkspace(input: {name: $name}) {\n workspace {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkCreateWorkspaceMutation, SdkCreateWorkspaceMutationVariables>;\nexport const SdkListWorkspacesDocument = new TypedDocumentString(`\n query SdkListWorkspaces {\n workspaces {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspacesQuery, SdkListWorkspacesQueryVariables>;\nexport const SdkDeleteWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean) {\n deleteWorkspace(\n input: {workspaceID: $workspaceID, withDeployments: $withDeployments}\n ) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceMutation, SdkDeleteWorkspaceMutationVariables>;\nexport const SdkWriteTextFileDocument = new TypedDocumentString(`\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\n writeWorkspaceTextFile(\n input: {workspaceID: $workspaceID, path: $path, text: $text}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteTextFileMutation, SdkWriteTextFileMutationVariables>;\nexport const SdkWriteBase64FileDocument = new TypedDocumentString(`\n mutation SdkWriteBase64File($workspaceID: ID!, $path: String!, $contentBase64: String!) {\n writeWorkspaceBase64File(\n input: {workspaceID: $workspaceID, path: $path, contentBase64: $contentBase64}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteBase64FileMutation, SdkWriteBase64FileMutationVariables>;\nexport const SdkListFilesDocument = new TypedDocumentString(`\n query SdkListFiles($input: ListWorkspaceFilesInput!) {\n workspaceFilesPage(input: $input) {\n items {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n `) as unknown as TypedDocumentString<SdkListFilesQuery, SdkListFilesQueryVariables>;\nexport const SdkReadFileDocument = new TypedDocumentString(`\n query SdkReadFile($input: ReadWorkspaceFileInput!) {\n readWorkspaceFile(input: $input) {\n text\n offset\n limit\n totalBytes\n truncated\n nextOffset\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkReadFileQuery, SdkReadFileQueryVariables>;\nexport const SdkDeleteFileDocument = new TypedDocumentString(`\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\n deleteWorkspaceFile(input: {workspaceID: $workspaceID, path: $path}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteFileMutation, SdkDeleteFileMutationVariables>;\nexport const SdkCreateDeploymentDocument = new TypedDocumentString(`\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\n createDeployment(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkCreateDeploymentMutation, SdkCreateDeploymentMutationVariables>;\nexport const SdkDeployWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\n deployWorkspace(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkDeployWorkspaceMutation, SdkDeployWorkspaceMutationVariables>;\nexport const SdkGetDeploymentDocument = new TypedDocumentString(`\n query SdkGetDeployment($id: ID!) {\n deployment(id: $id) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentQuery, SdkGetDeploymentQueryVariables>;\nexport const SdkPollDeploymentDocument = new TypedDocumentString(`\n query SdkPollDeployment($id: ID!) {\n deployment(id: $id) {\n id\n status\n error\n aliasHeld\n url\n previewUrl\n }\n}\n `) as unknown as TypedDocumentString<SdkPollDeploymentQuery, SdkPollDeploymentQueryVariables>;\nexport const SdkGetDeploymentByAliasDocument = new TypedDocumentString(`\n query SdkGetDeploymentByAlias($alias: String!) {\n deploymentByAlias(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentByAliasQuery, SdkGetDeploymentByAliasQueryVariables>;\nexport const SdkListDeploymentsDocument = new TypedDocumentString(`\n query SdkListDeployments($input: ListDeploymentsInput) {\n deploymentsPage(input: $input) {\n items {\n ...DeploymentFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListDeploymentsQuery, SdkListDeploymentsQueryVariables>;\nexport const SdkListReleasesDocument = new TypedDocumentString(`\n query SdkListReleases($alias: String!) {\n deploymentReleases(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListReleasesQuery, SdkListReleasesQueryVariables>;\nexport const SdkRollbackDocument = new TypedDocumentString(`\n mutation SdkRollback($deploymentID: ID!, $expectedCurrentDeploymentID: ID!, $expectedCurrentAliasRevision: String!) {\n rollbackDeployment(\n input: {deploymentID: $deploymentID, expectedCurrentDeploymentID: $expectedCurrentDeploymentID, expectedCurrentAliasRevision: $expectedCurrentAliasRevision}\n ) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkRollbackMutation, SdkRollbackMutationVariables>;\nexport const SdkServiceStatusDocument = new TypedDocumentString(`\n query SdkServiceStatus($deploymentID: ID!) {\n serviceStatus(deploymentID: $deploymentID) {\n deploymentID\n alias\n serviceMode\n running\n health\n vmID\n inFlight\n alwaysOn\n memSizeMiB\n startedAt\n lastUsedAt\n lastStoppedAt\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceStatusQuery, SdkServiceStatusQueryVariables>;\nexport const SdkServiceLogsDocument = new TypedDocumentString(`\n query SdkServiceLogs($deploymentID: ID!, $tailBytes: Int) {\n serviceLogs(deploymentID: $deploymentID, tailBytes: $tailBytes) {\n deploymentID\n stdout\n stderr\n truncated\n stdoutBytes\n stderrBytes\n tailBytes\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceLogsQuery, SdkServiceLogsQueryVariables>;\nexport const SdkDeploymentEventsDocument = new TypedDocumentString(`\n query SdkDeploymentEvents($deploymentID: ID!, $limit: Int) {\n deploymentEvents(deploymentID: $deploymentID, limit: $limit) {\n id\n deploymentID\n type\n rawType\n severity\n message\n vmID\n createdAt\n }\n}\n `) as unknown as TypedDocumentString<SdkDeploymentEventsQuery, SdkDeploymentEventsQueryVariables>;\nexport const SdkRestartServiceDocument = new TypedDocumentString(`\n mutation SdkRestartService($deploymentID: ID!) {\n restartService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkRestartServiceMutation, SdkRestartServiceMutationVariables>;\nexport const SdkStopServiceDocument = new TypedDocumentString(`\n mutation SdkStopService($deploymentID: ID!) {\n stopService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkStopServiceMutation, SdkStopServiceMutationVariables>;\nexport const SdkDeleteDeploymentDocument = new TypedDocumentString(`\n mutation SdkDeleteDeployment($deploymentID: ID!) {\n deleteDeployment(input: {deploymentID: $deploymentID}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteDeploymentMutation, SdkDeleteDeploymentMutationVariables>;\nexport const SdkSetWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceEnv($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name, value: $value}) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceEnvMutation, SdkSetWorkspaceEnvMutationVariables>;\nexport const SdkSetWorkspaceSecretDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceSecret(\n input: {workspaceID: $workspaceID, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceSecretMutation, SdkSetWorkspaceSecretMutationVariables>;\nexport const SdkDeleteWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\n deleteWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceEnvMutation, SdkDeleteWorkspaceEnvMutationVariables>;\nexport const SdkListWorkspaceEnvDocument = new TypedDocumentString(`\n query SdkListWorkspaceEnv($workspaceID: ID!) {\n workspaceEnv(workspaceID: $workspaceID) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspaceEnvQuery, SdkListWorkspaceEnvQueryVariables>;\nexport const SdkSetAppEnvDocument = new TypedDocumentString(`\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppEnv(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppEnvMutation, SdkSetAppEnvMutationVariables>;\nexport const SdkSetAppSecretDocument = new TypedDocumentString(`\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppSecret(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppSecretMutation, SdkSetAppSecretMutationVariables>;\nexport const SdkRemoveAppEnvDocument = new TypedDocumentString(`\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n removeAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkRemoveAppEnvMutation, SdkRemoveAppEnvMutationVariables>;\nexport const SdkInheritAppEnvDocument = new TypedDocumentString(`\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n inheritAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkInheritAppEnvMutation, SdkInheritAppEnvMutationVariables>;\nexport const SdkListAppEnvDocument = new TypedDocumentString(`\n query SdkListAppEnv($workspaceID: ID!, $alias: String!) {\n appEnv(workspaceID: $workspaceID, alias: $alias) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListAppEnvQuery, SdkListAppEnvQueryVariables>;\nexport const SdkCreateRunDocument = new TypedDocumentString(`\n mutation SdkCreateRun($input: CreateRunInput!) {\n createRun(input: $input) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\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 vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkCreateRunMutation, SdkCreateRunMutationVariables>;\nexport const SdkGetRunDocument = new TypedDocumentString(`\n query SdkGetRun($id: ID!) {\n run(id: $id) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\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 vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkGetRunQuery, SdkGetRunQueryVariables>;\nexport const SdkPollRunDocument = new TypedDocumentString(`\n query SdkPollRun($id: ID!) {\n run(id: $id) {\n id\n status\n error\n exitCode\n }\n}\n `) as unknown as TypedDocumentString<SdkPollRunQuery, SdkPollRunQueryVariables>;\nexport const SdkListRunsDocument = new TypedDocumentString(`\n query SdkListRuns($input: ListRunsInput) {\n runs(input: $input) {\n items {\n ...RunFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\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 vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkListRunsQuery, SdkListRunsQueryVariables>;\nexport const SdkCancelRunDocument = new TypedDocumentString(`\n mutation SdkCancelRun($id: ID!) {\n cancelRun(id: $id) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\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 vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkCancelRunMutation, SdkCancelRunMutationVariables>;\nexport const SdkRunEventsDocument = new TypedDocumentString(`\n query SdkRunEvents($runID: ID!, $limit: Int) {\n runEvents(runID: $runID, limit: $limit) {\n id\n runID\n type\n severity\n message\n metadata\n createdAt\n }\n}\n `) as unknown as TypedDocumentString<SdkRunEventsQuery, SdkRunEventsQueryVariables>;\nexport const SdkRunConsoleDocument = new TypedDocumentString(`\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\n runConsole(id: $id, tailBytes: $tailBytes) {\n runID\n running\n text\n }\n}\n `) as unknown as TypedDocumentString<SdkRunConsoleQuery, SdkRunConsoleQueryVariables>;\nexport const SdkRunTranscriptDocument = new TypedDocumentString(`\n query SdkRunTranscript($id: ID!, $tailBytes: Int) {\n runTranscript(id: $id, tailBytes: $tailBytes) {\n runID\n available\n text\n totalBytes\n truncated\n }\n}\n `) as unknown as TypedDocumentString<SdkRunTranscriptQuery, SdkRunTranscriptQueryVariables>;\nexport const SdkAnswerRunDocument = new TypedDocumentString(`\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\n answerRun(id: $id, answer: $answer) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\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 vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkAnswerRunMutation, SdkAnswerRunMutationVariables>;\nexport const SdkFollowUpRunDocument = new TypedDocumentString(`\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\n followUpRun(input: $input) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\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 vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkFollowUpRunMutation, SdkFollowUpRunMutationVariables>;"]}
package/dist/index.d.ts CHANGED
@@ -22,10 +22,10 @@
22
22
  * - {@link UnfazedClient} — the typed GraphQL transport, for anything not wrapped.
23
23
  */
24
24
  export { Unfazed } from "./unfazed.js";
25
- export type { Deployment, DeployBoxOptions, DeployOptions, DeployServiceOptions, DeployStaticOptions, EnvVar, FileContent, FilesMap, RollbackOptions, UnfazedOptions, WorkspaceFile, WriteFilesOptions, } from "./unfazed.js";
25
+ export type { CreateRunOptions, FollowUpRunOptions, DeleteDeploymentOptions, DeleteWorkspaceOptions, Deployment, DeployBoxOptions, DeployOptions, DeployServiceOptions, DeployStaticOptions, EnvVar, FileContent, FilesMap, ListRunsFilter, RollbackOptions, Run, UnfazedOptions, Workspace, WorkspaceFile, WriteFilesOptions, } from "./unfazed.js";
26
26
  export { UnfazedClient, DEFAULT_BASE_URL, DEFAULT_ENDPOINT, ENDPOINT_ENV_VAR, GRAPHQL_PATH, TOKEN_ENV_VAR, VERSION, } from "./client.js";
27
27
  export type { ClientOptions, FetchLike, GraphQLDocument, RequestOptions, ResultOf, VariablesOf, } from "./client.js";
28
- export { UnfazedAuthError, UnfazedConfigError, UnfazedConflictError, UnfazedDeployError, UnfazedError, UnfazedGraphQLError, UnfazedHTTPError, UnfazedNotFoundError, UnfazedTimeoutError, } from "./errors.js";
28
+ export { DEPLOYMENT_NOT_FOUND, UnfazedAuthError, UnfazedConfigError, UnfazedConflictError, UnfazedDeployError, UnfazedError, UnfazedGraphQLError, UnfazedHTTPError, UnfazedNotFoundError, UnfazedRunError, UnfazedTimeoutError, WORKSPACE_NOT_FOUND, isDuplicateWorkspaceName, isNotFoundSentinel, } from "./errors.js";
29
29
  export type { GraphQLResponseError } from "./errors.js";
30
30
  export type { WaitOptions } from "./wait.js";
31
31
  /**
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@
23
23
  */
24
24
  export { Unfazed } from "./unfazed.js";
25
25
  export { UnfazedClient, DEFAULT_BASE_URL, DEFAULT_ENDPOINT, ENDPOINT_ENV_VAR, GRAPHQL_PATH, TOKEN_ENV_VAR, VERSION, } from "./client.js";
26
- export { UnfazedAuthError, UnfazedConfigError, UnfazedConflictError, UnfazedDeployError, UnfazedError, UnfazedGraphQLError, UnfazedHTTPError, UnfazedNotFoundError, UnfazedTimeoutError, } from "./errors.js";
26
+ export { DEPLOYMENT_NOT_FOUND, UnfazedAuthError, UnfazedConfigError, UnfazedConflictError, UnfazedDeployError, UnfazedError, UnfazedGraphQLError, UnfazedHTTPError, UnfazedNotFoundError, UnfazedRunError, UnfazedTimeoutError, WORKSPACE_NOT_FOUND, isDuplicateWorkspaceName, isNotFoundSentinel, } from "./errors.js";
27
27
  /**
28
28
  * Every operation document the workflow layer uses, for callers that want the
29
29
  * typed documents but not the wrapper methods.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAgBvC,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,OAAO,GACR,MAAM,aAAa,CAAC;AAUrB,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,aAAa,CAAC;AAKrB;;;GAGG;AACH,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC","sourcesContent":["/**\n * unfazed — official TypeScript SDK.\n *\n * The code-mode companion to the unfazed MCP server: write one script that\n * deploys, waits, reads logs and filters them locally, instead of chaining a\n * dozen tool calls through a model's context.\n *\n * ```ts\n * import { Unfazed } from \"unfazed\";\n *\n * const unfazed = new Unfazed(); // reads UNFZ_API_TOKEN\n * const ws = await unfazed.createWorkspace(\"hello\");\n * await unfazed.writeFiles(ws.id, {\n * \"server.ts\": `export default { fetch: () => new Response(\"hi\") }`,\n * });\n * const app = await unfazed.deployService({ workspaceId: ws.id, alias: \"hello\", wait: true });\n * console.log(app.url);\n * ```\n *\n * Two layers, both public:\n * - {@link Unfazed} — the workflow layer (deploy + wait, batch writes, one-call rollback).\n * - {@link UnfazedClient} — the typed GraphQL transport, for anything not wrapped.\n */\n\nexport { Unfazed } from \"./unfazed.js\";\nexport type {\n Deployment,\n DeployBoxOptions,\n DeployOptions,\n DeployServiceOptions,\n DeployStaticOptions,\n EnvVar,\n FileContent,\n FilesMap,\n RollbackOptions,\n UnfazedOptions,\n WorkspaceFile,\n WriteFilesOptions,\n} from \"./unfazed.js\";\n\nexport {\n UnfazedClient,\n DEFAULT_BASE_URL,\n DEFAULT_ENDPOINT,\n ENDPOINT_ENV_VAR,\n GRAPHQL_PATH,\n TOKEN_ENV_VAR,\n VERSION,\n} from \"./client.js\";\nexport type {\n ClientOptions,\n FetchLike,\n GraphQLDocument,\n RequestOptions,\n ResultOf,\n VariablesOf,\n} from \"./client.js\";\n\nexport {\n UnfazedAuthError,\n UnfazedConfigError,\n UnfazedConflictError,\n UnfazedDeployError,\n UnfazedError,\n UnfazedGraphQLError,\n UnfazedHTTPError,\n UnfazedNotFoundError,\n UnfazedTimeoutError,\n} from \"./errors.js\";\nexport type { GraphQLResponseError } from \"./errors.js\";\n\nexport type { WaitOptions } from \"./wait.js\";\n\n/**\n * Every operation document the workflow layer uses, for callers that want the\n * typed documents but not the wrapper methods.\n */\nexport * as operations from \"./operations.js\";\n\n/**\n * Schema types generated from the platform's `graph/schema.graphqls`: enums\n * (`DeploymentStatus`, `ServiceMode`, ...), input objects\n * (`CreateDeploymentInput`, ...) and every operation's result type.\n */\nexport type * from \"./generated/graphql.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAuBvC,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,OAAO,GACR,MAAM,aAAa,CAAC;AAUrB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAKrB;;;GAGG;AACH,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC","sourcesContent":["/**\n * unfazed — official TypeScript SDK.\n *\n * The code-mode companion to the unfazed MCP server: write one script that\n * deploys, waits, reads logs and filters them locally, instead of chaining a\n * dozen tool calls through a model's context.\n *\n * ```ts\n * import { Unfazed } from \"unfazed\";\n *\n * const unfazed = new Unfazed(); // reads UNFZ_API_TOKEN\n * const ws = await unfazed.createWorkspace(\"hello\");\n * await unfazed.writeFiles(ws.id, {\n * \"server.ts\": `export default { fetch: () => new Response(\"hi\") }`,\n * });\n * const app = await unfazed.deployService({ workspaceId: ws.id, alias: \"hello\", wait: true });\n * console.log(app.url);\n * ```\n *\n * Two layers, both public:\n * - {@link Unfazed} — the workflow layer (deploy + wait, batch writes, one-call rollback).\n * - {@link UnfazedClient} — the typed GraphQL transport, for anything not wrapped.\n */\n\nexport { Unfazed } from \"./unfazed.js\";\nexport type {\n CreateRunOptions,\n FollowUpRunOptions,\n DeleteDeploymentOptions,\n DeleteWorkspaceOptions,\n Deployment,\n DeployBoxOptions,\n DeployOptions,\n DeployServiceOptions,\n DeployStaticOptions,\n EnvVar,\n FileContent,\n FilesMap,\n ListRunsFilter,\n RollbackOptions,\n Run,\n UnfazedOptions,\n Workspace,\n WorkspaceFile,\n WriteFilesOptions,\n} from \"./unfazed.js\";\n\nexport {\n UnfazedClient,\n DEFAULT_BASE_URL,\n DEFAULT_ENDPOINT,\n ENDPOINT_ENV_VAR,\n GRAPHQL_PATH,\n TOKEN_ENV_VAR,\n VERSION,\n} from \"./client.js\";\nexport type {\n ClientOptions,\n FetchLike,\n GraphQLDocument,\n RequestOptions,\n ResultOf,\n VariablesOf,\n} from \"./client.js\";\n\nexport {\n DEPLOYMENT_NOT_FOUND,\n UnfazedAuthError,\n UnfazedConfigError,\n UnfazedConflictError,\n UnfazedDeployError,\n UnfazedError,\n UnfazedGraphQLError,\n UnfazedHTTPError,\n UnfazedNotFoundError,\n UnfazedRunError,\n UnfazedTimeoutError,\n WORKSPACE_NOT_FOUND,\n isDuplicateWorkspaceName,\n isNotFoundSentinel,\n} from \"./errors.js\";\nexport type { GraphQLResponseError } from \"./errors.js\";\n\nexport type { WaitOptions } from \"./wait.js\";\n\n/**\n * Every operation document the workflow layer uses, for callers that want the\n * typed documents but not the wrapper methods.\n */\nexport * as operations from \"./operations.js\";\n\n/**\n * Schema types generated from the platform's `graph/schema.graphqls`: enums\n * (`DeploymentStatus`, `ServiceMode`, ...), input objects\n * (`CreateDeploymentInput`, ...) and every operation's result type.\n */\nexport type * from \"./generated/graphql.js\";\n"]}