unfazed 0.6.0 → 0.8.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/README.md +299 -78
  3. package/REFERENCE.md +284 -0
  4. package/dist/cli/login.d.ts +129 -0
  5. package/dist/cli/login.js +596 -0
  6. package/dist/cli/login.js.map +1 -0
  7. package/dist/cli/workflow.d.ts +31 -0
  8. package/dist/cli/workflow.js +157 -0
  9. package/dist/cli/workflow.js.map +1 -0
  10. package/dist/cli.d.ts +2 -0
  11. package/dist/cli.js +173 -0
  12. package/dist/cli.js.map +1 -0
  13. package/dist/client.d.ts +26 -5
  14. package/dist/client.js +93 -48
  15. package/dist/client.js.map +1 -1
  16. package/dist/credentials.d.ts +123 -0
  17. package/dist/credentials.js +317 -0
  18. package/dist/credentials.js.map +1 -0
  19. package/dist/errors.d.ts +64 -0
  20. package/dist/errors.js +95 -0
  21. package/dist/errors.js.map +1 -1
  22. package/dist/generated/gql.d.ts +78 -2
  23. package/dist/generated/gql.js +21 -2
  24. package/dist/generated/gql.js.map +1 -1
  25. package/dist/generated/graphql.d.ts +505 -6
  26. package/dist/generated/graphql.js +439 -2
  27. package/dist/generated/graphql.js.map +1 -1
  28. package/dist/index.d.ts +25 -6
  29. package/dist/index.js +23 -5
  30. package/dist/index.js.map +1 -1
  31. package/dist/operations.d.ts +116 -5
  32. package/dist/operations.js +379 -7
  33. package/dist/operations.js.map +1 -1
  34. package/dist/reference.d.ts +18 -0
  35. package/dist/reference.generated.d.ts +2 -0
  36. package/dist/reference.generated.js +5 -0
  37. package/dist/reference.generated.js.map +1 -0
  38. package/dist/reference.js +38 -0
  39. package/dist/reference.js.map +1 -0
  40. package/dist/remote/app.js +2 -1
  41. package/dist/remote/app.js.map +1 -1
  42. package/dist/remote/world.d.ts +2 -2
  43. package/dist/remote/world.js +32 -16
  44. package/dist/remote/world.js.map +1 -1
  45. package/dist/unfazed.d.ts +545 -68
  46. package/dist/unfazed.js +688 -64
  47. package/dist/unfazed.js.map +1 -1
  48. package/dist/wait.d.ts +7 -0
  49. package/dist/wait.js.map +1 -1
  50. package/dist/workflow/nitro.js +5 -3
  51. package/dist/workflow/nitro.js.map +1 -1
  52. package/package.json +22 -6
  53. package/schema/SOURCE.json +4 -4
  54. package/schema/schema.graphqls +1628 -30
@@ -16,13 +16,19 @@ export type Incremental<T> = T | {
16
16
  interface DocumentTypeDecoration<TResult, TVariables> {
17
17
  __apiType?: (variables: TVariables) => TResult;
18
18
  }
19
+ export type AppErrorGroupInput = {
20
+ alias: string;
21
+ /** The group's id (AppErrorGroup.id, or group_id of an error.new or error.regressed event). */
22
+ groupID: string | number;
23
+ workspaceID: string | number;
24
+ };
19
25
  /** A box's requested VM size. Omitted fields use the platform default. */
20
26
  export type BoxResourcesInput = {
21
- /** Persistent disk in GiB (default 8, max 64). Applies only when the disk is first created; an existing disk keeps its size. */
27
+ /** Persistent disk in GiB (default 32, max 128). Sets the size when the disk is first created; a later redeploy asking for more grows the existing disk before the box boots (it never shrinks, and the effective size may be lower than requested). */
22
28
  diskGiB?: number | null | undefined;
23
- /** RAM in MiB (default 2048, min 512, max 16384). */
29
+ /** RAM in MiB (default 4096, min 512, max 16384). */
24
30
  memMiB?: number | null | undefined;
25
- /** vCPU count (default 2, max 8). */
31
+ /** vCPU count (default 4, max 16). */
26
32
  vcpus?: number | null | undefined;
27
33
  };
28
34
  /**
@@ -51,6 +57,8 @@ export type CreateDeploymentInput = {
51
57
  kind: DeploymentKind;
52
58
  /** SERVICE runtime. Omit to auto-detect (a go.mod+main.go is GO, otherwise BUN). Ignored for STATIC. */
53
59
  runtime?: ServiceRuntime | null | undefined;
60
+ /** Server for a NEW app: a server id or name from placementTargets, or control-plane. Omit for the default server. An existing app keeps its server (use a placement move); static sites stay on the control plane. */
61
+ server?: string | null | undefined;
54
62
  /** 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. */
55
63
  serviceMode?: ServiceMode | null | undefined;
56
64
  /** STATIC only: when true, missing paths serve index.html (single-page apps). Ignored for SERVICE. */
@@ -60,6 +68,8 @@ export type CreateDeploymentInput = {
60
68
  export type CreateRunInput = {
61
69
  /** read-only (default) or read-write: which integration credentials and tools the run gets and whether its platform token may deploy. */
62
70
  access?: string | null | undefined;
71
+ /** Make this run a task of an agent: it inherits the agent's harness, provider and model, access and approval wherever this input leaves them empty. */
72
+ agentID?: string | number | null | undefined;
63
73
  /** The app whose integrations the run gets; required when the workspace has several apps. */
64
74
  alias?: string | null | undefined;
65
75
  /** "human" routes the harness's permission prompts to you (the run BLOCKS until you answer); empty keeps the harness's own defaults. */
@@ -74,6 +84,8 @@ export type CreateRunInput = {
74
84
  mode?: string | null | undefined;
75
85
  /** The run this one continues; usually set through followUpRun. */
76
86
  parentRunID?: string | number | null | undefined;
87
+ /** A run preset name: its harness applies when harness is empty, its connection/model override the account's harness setting, its extra env merges below the workspace's own. */
88
+ preset?: string | null | undefined;
77
89
  prompt?: string | null | undefined;
78
90
  /** Shell commands run in /work before the harness; the first failure fails the run. */
79
91
  setup?: Array<string> | null | undefined;
@@ -81,18 +93,21 @@ export type CreateRunInput = {
81
93
  skills?: Array<string> | null | undefined;
82
94
  /** Shell commands run after the harness exited 0 (tests, a build, a file check); the first failure FAILS the run. Skipped in plan mode. */
83
95
  verify?: Array<string> | null | undefined;
84
- workspaceID: string | number;
96
+ /** The workspace whose env, secrets and files the run gets. Optional for an agent's run: the agent's first scoped workspace, else its own. */
97
+ workspaceID?: string | number | null | undefined;
85
98
  };
86
99
  export type CurrentActorKind =
87
100
  /** 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. */
88
101
  'AGENT'
89
102
  /** The operator of this Unfazed instance, authenticated with the owner token. Full access, no free-tier limits. */
90
103
  | 'OWNER'
91
- /** A human signed in via GitHub OAuth, who manages their linked agents and apps. */
104
+ /** A human signed in via an enabled identity provider, who manages their linked agents and apps. */
92
105
  | 'USER';
93
106
  export type DeployWorkspaceInput = {
94
107
  /** Optional public alias; defaults to the workspace's git deploy alias when it was imported. */
95
108
  alias?: string | null | undefined;
109
+ /** Server for a NEW app (see CreateDeploymentInput.server); overrides unfazed.json server. */
110
+ server?: string | null | undefined;
96
111
  /** SERVICE only; defaults to the git source's mode, otherwise ON_DEMAND. */
97
112
  serviceMode?: ServiceMode | null | undefined;
98
113
  /** STATIC only; overrides the detected SPA fallback. */
@@ -100,7 +115,7 @@ export type DeployWorkspaceInput = {
100
115
  workspaceID: string | number;
101
116
  };
102
117
  export type DeploymentEventSeverity = 'ERROR' | 'INFO' | 'WARN';
103
- export type DeploymentEventType = 'DEPLOYMENT_CREATED' | 'DEPLOYMENT_PROMOTION_REJECTED' | 'DEPLOYMENT_ROLLED_BACK' | 'SERVICE_BOOT_FAILED' | 'SERVICE_BUILD_FAILED' | 'SERVICE_BUILD_SUCCEEDED' | 'SERVICE_CRON_TRIGGERED' | 'SERVICE_HEALTH_PROBE_FAILED' | 'SERVICE_PROXY_ERROR' | 'SERVICE_RESTART_REQUESTED' | 'SERVICE_STOP_REQUESTED' | 'SERVICE_SUPERVISOR_STARTED' | 'SERVICE_SUPERVISOR_STOPPED' | 'SERVICE_VM_STARTED' | 'SERVICE_VM_START_FAILED' | 'SERVICE_VM_STOPPED' | 'SERVICE_WATCHDOG_PROBE_FAILED' | 'SERVICE_WATCHDOG_RESTART' | 'UNKNOWN';
118
+ export type DeploymentEventType = 'DEPLOYMENT_CREATED' | 'DEPLOYMENT_PROMOTION_REJECTED' | 'DEPLOYMENT_ROLLED_BACK' | 'SERVICE_BOOT_FAILED' | 'SERVICE_BUILD_FAILED' | 'SERVICE_BUILD_SUCCEEDED' | 'SERVICE_CRON_TRIGGERED' | 'SERVICE_HEALTH_PROBE_FAILED' | 'SERVICE_PROXY_ERROR' | 'SERVICE_RESTART_REQUESTED' | 'SERVICE_STOP_REQUESTED' | 'SERVICE_SUPERVISOR_STARTED' | 'SERVICE_SUPERVISOR_STOPPED' | 'SERVICE_VM_CRASHED' | 'SERVICE_VM_STARTED' | 'SERVICE_VM_START_FAILED' | 'SERVICE_VM_STOPPED' | 'SERVICE_WATCHDOG_PROBE_FAILED' | 'SERVICE_WATCHDOG_RESTART' | 'UNKNOWN';
104
119
  export type DeploymentKind =
105
120
  /** A persistent always-on Linux VM with a per-workspace data disk (docs/agent-box.md). */
106
121
  'BOX' | 'SERVICE' | 'STATIC';
@@ -122,6 +137,7 @@ export type ListDeploymentsInput = {
122
137
  workspaceID?: string | number | null | undefined;
123
138
  };
124
139
  export type ListRunsInput = {
140
+ agentID?: string | number | null | undefined;
125
141
  limit?: number | null | undefined;
126
142
  offset?: number | null | undefined;
127
143
  status?: RunStatus | null | undefined;
@@ -133,6 +149,17 @@ export type ListWorkspaceFilesInput = {
133
149
  order?: string | null | undefined;
134
150
  workspaceID: string | number;
135
151
  };
152
+ /** Which events to read (MCP poll_events). */
153
+ export type PlatformEventsInput = {
154
+ /** Filters per type, keyed by its name, e.g. {"deployment.finished": {"alias": "shop", "status": "FAILED"}}. */
155
+ arguments?: unknown;
156
+ /** Where to continue; omit to start from now (nothing is replayed). */
157
+ cursor?: string | null | undefined;
158
+ /** At most this many events. */
159
+ max?: number | null | undefined;
160
+ /** Event types; omit for every type you may receive. */
161
+ names?: Array<string> | null | undefined;
162
+ };
136
163
  export type ReadWorkspaceFileInput = {
137
164
  limit?: number | null | undefined;
138
165
  offset?: number | null | undefined;
@@ -152,6 +179,15 @@ export type ServiceRuntime =
152
179
  'BUN'
153
180
  /** Compiles a Go module (go.mod) into a static binary that starts its own HTTP server on $PORT. */
154
181
  | 'GO';
182
+ /** One file of writeWorkspaceFiles, as MCP write_workspace_files takes it. */
183
+ export type WorkspaceFileWriteInput = {
184
+ /** The file: UTF-8 text, or base64-encoded bytes with encoding base64. */
185
+ content: string;
186
+ /** text (the default) or base64. */
187
+ encoding?: string | null | undefined;
188
+ /** Relative path, such as server.ts or assets/logo.png. */
189
+ path: string;
190
+ };
155
191
  export type DeploymentFieldsFragment = {
156
192
  id: string;
157
193
  workspaceID: string;
@@ -235,12 +271,41 @@ export type SdkListWorkspacesQuery = {
235
271
  export type SdkDeleteWorkspaceMutationVariables = Exact<{
236
272
  workspaceID: string | number;
237
273
  withDeployments?: boolean | null | undefined;
274
+ confirmAliases?: Array<string> | string | null | undefined;
238
275
  }>;
239
276
  export type SdkDeleteWorkspaceMutation = {
240
277
  deleteWorkspace: {
241
278
  ok: boolean;
242
279
  };
243
280
  };
281
+ export type SdkWorkspaceLiveAppsQueryVariables = Exact<{
282
+ id: string | number;
283
+ }>;
284
+ export type SdkWorkspaceLiveAppsQuery = {
285
+ workspace: {
286
+ id: string;
287
+ liveApps: Array<{
288
+ alias: string;
289
+ deploymentID: string;
290
+ domains: Array<string>;
291
+ }>;
292
+ } | null;
293
+ };
294
+ export type SdkDeleteAppMutationVariables = Exact<{
295
+ workspaceID: string | number;
296
+ alias: string;
297
+ }>;
298
+ export type SdkDeleteAppMutation = {
299
+ deleteApp: {
300
+ ok: boolean;
301
+ alias: string;
302
+ deployments: number;
303
+ domains: Array<string>;
304
+ envEntries: number;
305
+ skippedOnSync: boolean;
306
+ otherApps: Array<string>;
307
+ };
308
+ };
244
309
  export type SdkWriteTextFileMutationVariables = Exact<{
245
310
  workspaceID: string | number;
246
311
  path: string;
@@ -273,6 +338,384 @@ export type SdkWriteBase64FileMutation = {
273
338
  };
274
339
  };
275
340
  };
341
+ export type FileCommitFieldsFragment = {
342
+ sha: string | null;
343
+ branch: string;
344
+ message: string;
345
+ committed: boolean;
346
+ waiting: boolean;
347
+ waitingCount: number;
348
+ deploys: boolean;
349
+ conflicts: Array<string>;
350
+ writeSHA: string | null;
351
+ paused: boolean;
352
+ };
353
+ export type SdkWriteFilesMutationVariables = Exact<{
354
+ workspaceID: string | number;
355
+ files: Array<WorkspaceFileWriteInput> | WorkspaceFileWriteInput;
356
+ commitMessage?: string | null | undefined;
357
+ }>;
358
+ export type SdkWriteFilesMutation = {
359
+ writeWorkspaceFiles: {
360
+ workspaceID: string;
361
+ written: number;
362
+ failed: number;
363
+ totalBytes: number;
364
+ files: Array<{
365
+ path: string;
366
+ ok: boolean;
367
+ error: string | null;
368
+ file: {
369
+ path: string;
370
+ sizeBytes: number;
371
+ size: string;
372
+ sha256: string;
373
+ updatedAt: string;
374
+ } | null;
375
+ }>;
376
+ commit: {
377
+ sha: string | null;
378
+ branch: string;
379
+ message: string;
380
+ committed: boolean;
381
+ waiting: boolean;
382
+ waitingCount: number;
383
+ deploys: boolean;
384
+ conflicts: Array<string>;
385
+ writeSHA: string | null;
386
+ paused: boolean;
387
+ } | null;
388
+ };
389
+ };
390
+ export type SdkAppCommitsQueryVariables = Exact<{
391
+ workspaceID: string | number;
392
+ limit?: number | null | undefined;
393
+ before?: string | null | undefined;
394
+ }>;
395
+ export type SdkAppCommitsQuery = {
396
+ appCommits: {
397
+ branch: string;
398
+ head: string | null;
399
+ nextBefore: string | null;
400
+ autoDeploy: boolean;
401
+ waitingCommits: number;
402
+ waitingSince: string | null;
403
+ commits: Array<{
404
+ sha: string;
405
+ message: string;
406
+ authorName: string;
407
+ authorEmail: string;
408
+ authoredAt: string;
409
+ filesChanged: number;
410
+ deployedTo: Array<string>;
411
+ }>;
412
+ deployed: Array<{
413
+ alias: string;
414
+ sha: string;
415
+ deploymentID: string;
416
+ }>;
417
+ };
418
+ };
419
+ export type SdkAppCommitsWaitingQueryVariables = Exact<{
420
+ workspaceID: string | number;
421
+ }>;
422
+ export type SdkAppCommitsWaitingQuery = {
423
+ appCommits: {
424
+ branch: string;
425
+ head: string | null;
426
+ waitingCommits: number;
427
+ waitingSince: string | null;
428
+ };
429
+ };
430
+ export type SdkWorkspaceGitSourceQueryVariables = Exact<{
431
+ id: string | number;
432
+ }>;
433
+ export type SdkWorkspaceGitSourceQuery = {
434
+ workspace: {
435
+ id: string;
436
+ gitSource: {
437
+ branch: string;
438
+ autoDeploy: boolean;
439
+ deployAlias: string | null;
440
+ lastImportedCommit: string | null;
441
+ lastImportedAt: string | null;
442
+ lastImportStatus: string;
443
+ lastImportError: string | null;
444
+ } | null;
445
+ } | null;
446
+ };
447
+ export type SdkAppCommitQueryVariables = Exact<{
448
+ workspaceID: string | number;
449
+ sha: string;
450
+ }>;
451
+ export type SdkAppCommitQuery = {
452
+ appCommit: {
453
+ patch: string;
454
+ truncated: boolean;
455
+ additions: number;
456
+ deletions: number;
457
+ commit: {
458
+ sha: string;
459
+ message: string;
460
+ authorName: string;
461
+ authorEmail: string;
462
+ authoredAt: string;
463
+ filesChanged: number;
464
+ deployedTo: Array<string>;
465
+ };
466
+ files: Array<{
467
+ path: string;
468
+ status: string;
469
+ }>;
470
+ };
471
+ };
472
+ export type SdkRestoreVersionMutationVariables = Exact<{
473
+ workspaceID: string | number;
474
+ sha: string;
475
+ expectedHead?: string | null | undefined;
476
+ message?: string | null | undefined;
477
+ }>;
478
+ export type SdkRestoreVersionMutation = {
479
+ restoreAppVersion: {
480
+ sha: string;
481
+ committed: boolean;
482
+ deploys: boolean;
483
+ message: string;
484
+ branch: string;
485
+ deployAlias: string | null;
486
+ restoredFrom: string;
487
+ parent: string | null;
488
+ };
489
+ };
490
+ export type AppErrorGroupFieldsFragment = {
491
+ id: string;
492
+ title: string;
493
+ type: string | null;
494
+ culprit: string | null;
495
+ level: string;
496
+ status: string;
497
+ count: number;
498
+ storedEvents: number;
499
+ firstSeen: string;
500
+ lastSeen: string;
501
+ firstDeploymentID: string | null;
502
+ firstGitCommit: string | null;
503
+ lastDeploymentID: string | null;
504
+ lastGitCommit: string | null;
505
+ resolvedInDeploymentID: string | null;
506
+ resolvedAt: string | null;
507
+ mutedAt: string | null;
508
+ regressedAt: string | null;
509
+ };
510
+ export type SdkAppErrorsQueryVariables = Exact<{
511
+ workspaceID: string | number;
512
+ alias: string;
513
+ status?: string | null | undefined;
514
+ limit?: number | null | undefined;
515
+ cursor?: string | null | undefined;
516
+ }>;
517
+ export type SdkAppErrorsQuery = {
518
+ appErrors: {
519
+ nextCursor: string | null;
520
+ note: string | null;
521
+ groups: Array<{
522
+ id: string;
523
+ title: string;
524
+ type: string | null;
525
+ culprit: string | null;
526
+ level: string;
527
+ status: string;
528
+ count: number;
529
+ storedEvents: number;
530
+ firstSeen: string;
531
+ lastSeen: string;
532
+ firstDeploymentID: string | null;
533
+ firstGitCommit: string | null;
534
+ lastDeploymentID: string | null;
535
+ lastGitCommit: string | null;
536
+ resolvedInDeploymentID: string | null;
537
+ resolvedAt: string | null;
538
+ mutedAt: string | null;
539
+ regressedAt: string | null;
540
+ }>;
541
+ };
542
+ };
543
+ export type SdkAppErrorGroupQueryVariables = Exact<{
544
+ workspaceID: string | number;
545
+ alias: string;
546
+ groupID: string | number;
547
+ }>;
548
+ export type SdkAppErrorGroupQuery = {
549
+ appErrorGroup: {
550
+ latestEvent: unknown;
551
+ fatal: boolean;
552
+ vmID: string | null;
553
+ group: {
554
+ id: string;
555
+ title: string;
556
+ type: string | null;
557
+ culprit: string | null;
558
+ level: string;
559
+ status: string;
560
+ count: number;
561
+ storedEvents: number;
562
+ firstSeen: string;
563
+ lastSeen: string;
564
+ firstDeploymentID: string | null;
565
+ firstGitCommit: string | null;
566
+ lastDeploymentID: string | null;
567
+ lastGitCommit: string | null;
568
+ resolvedInDeploymentID: string | null;
569
+ resolvedAt: string | null;
570
+ mutedAt: string | null;
571
+ regressedAt: string | null;
572
+ };
573
+ firstEvent: {
574
+ eventID: string;
575
+ at: string;
576
+ deploymentID: string | null;
577
+ level: string;
578
+ } | null;
579
+ recentEvents: Array<{
580
+ eventID: string;
581
+ at: string;
582
+ deploymentID: string | null;
583
+ level: string;
584
+ }>;
585
+ deployments: Array<{
586
+ deploymentID: string;
587
+ gitCommit: string | null;
588
+ current: boolean;
589
+ count: number;
590
+ firstSeen: string;
591
+ lastSeen: string;
592
+ }>;
593
+ };
594
+ };
595
+ export type SdkResolveErrorGroupMutationVariables = Exact<{
596
+ input: AppErrorGroupInput;
597
+ }>;
598
+ export type SdkResolveErrorGroupMutation = {
599
+ resolveAppErrorGroup: {
600
+ id: string;
601
+ title: string;
602
+ type: string | null;
603
+ culprit: string | null;
604
+ level: string;
605
+ status: string;
606
+ count: number;
607
+ storedEvents: number;
608
+ firstSeen: string;
609
+ lastSeen: string;
610
+ firstDeploymentID: string | null;
611
+ firstGitCommit: string | null;
612
+ lastDeploymentID: string | null;
613
+ lastGitCommit: string | null;
614
+ resolvedInDeploymentID: string | null;
615
+ resolvedAt: string | null;
616
+ mutedAt: string | null;
617
+ regressedAt: string | null;
618
+ };
619
+ };
620
+ export type SdkMuteErrorGroupMutationVariables = Exact<{
621
+ input: AppErrorGroupInput;
622
+ }>;
623
+ export type SdkMuteErrorGroupMutation = {
624
+ muteAppErrorGroup: {
625
+ id: string;
626
+ title: string;
627
+ type: string | null;
628
+ culprit: string | null;
629
+ level: string;
630
+ status: string;
631
+ count: number;
632
+ storedEvents: number;
633
+ firstSeen: string;
634
+ lastSeen: string;
635
+ firstDeploymentID: string | null;
636
+ firstGitCommit: string | null;
637
+ lastDeploymentID: string | null;
638
+ lastGitCommit: string | null;
639
+ resolvedInDeploymentID: string | null;
640
+ resolvedAt: string | null;
641
+ mutedAt: string | null;
642
+ regressedAt: string | null;
643
+ };
644
+ };
645
+ export type SdkReopenErrorGroupMutationVariables = Exact<{
646
+ input: AppErrorGroupInput;
647
+ }>;
648
+ export type SdkReopenErrorGroupMutation = {
649
+ reopenAppErrorGroup: {
650
+ id: string;
651
+ title: string;
652
+ type: string | null;
653
+ culprit: string | null;
654
+ level: string;
655
+ status: string;
656
+ count: number;
657
+ storedEvents: number;
658
+ firstSeen: string;
659
+ lastSeen: string;
660
+ firstDeploymentID: string | null;
661
+ firstGitCommit: string | null;
662
+ lastDeploymentID: string | null;
663
+ lastGitCommit: string | null;
664
+ resolvedInDeploymentID: string | null;
665
+ resolvedAt: string | null;
666
+ mutedAt: string | null;
667
+ regressedAt: string | null;
668
+ };
669
+ };
670
+ export type SdkEventTypesQueryVariables = Exact<{
671
+ [key: string]: never;
672
+ }>;
673
+ export type SdkEventTypesQuery = {
674
+ platformEventTypes: Array<{
675
+ name: string;
676
+ description: string;
677
+ delivery: Array<string>;
678
+ inputSchema: unknown;
679
+ payloadSchema: unknown;
680
+ }>;
681
+ };
682
+ export type SdkPollEventsQueryVariables = Exact<{
683
+ input?: PlatformEventsInput | null | undefined;
684
+ }>;
685
+ export type SdkPollEventsQuery = {
686
+ pollEvents: {
687
+ cursor: string;
688
+ truncated: boolean;
689
+ hasMore: boolean;
690
+ nextPollMs: number;
691
+ timedOut: boolean;
692
+ events: Array<{
693
+ eventID: string;
694
+ name: string;
695
+ timestamp: string;
696
+ data: unknown;
697
+ }>;
698
+ };
699
+ };
700
+ export type SdkWaitForEventsQueryVariables = Exact<{
701
+ input?: PlatformEventsInput | null | undefined;
702
+ timeoutSeconds?: number | null | undefined;
703
+ }>;
704
+ export type SdkWaitForEventsQuery = {
705
+ waitForEvents: {
706
+ cursor: string;
707
+ truncated: boolean;
708
+ hasMore: boolean;
709
+ nextPollMs: number;
710
+ timedOut: boolean;
711
+ events: Array<{
712
+ eventID: string;
713
+ name: string;
714
+ timestamp: string;
715
+ data: unknown;
716
+ }>;
717
+ };
718
+ };
276
719
  export type SdkListFilesQueryVariables = Exact<{
277
720
  input: ListWorkspaceFilesInput;
278
721
  }>;
@@ -606,9 +1049,46 @@ export type SdkDeploymentEventsQuery = {
606
1049
  severity: DeploymentEventSeverity;
607
1050
  message: string;
608
1051
  vmID: string | null;
1052
+ metadata: unknown;
609
1053
  createdAt: string;
610
1054
  }>;
611
1055
  };
1056
+ export type SdkWaitForDeploymentQueryVariables = Exact<{
1057
+ id: string | number;
1058
+ timeoutSeconds?: number | null | undefined;
1059
+ }>;
1060
+ export type SdkWaitForDeploymentQuery = {
1061
+ waitForDeployment: {
1062
+ timedOut: boolean;
1063
+ waitedMs: number;
1064
+ placement: unknown;
1065
+ deployment: {
1066
+ id: string;
1067
+ workspaceID: string;
1068
+ kind: DeploymentKind;
1069
+ runtime: ServiceRuntime | null;
1070
+ alias: string | null;
1071
+ serviceMode: ServiceMode;
1072
+ healthPath: string | null;
1073
+ cronSchedule: string | null;
1074
+ cronPath: string | null;
1075
+ url: string;
1076
+ previewUrl: string;
1077
+ sshCommand: string | null;
1078
+ aliasHeld: boolean;
1079
+ aliasRevision: string;
1080
+ status: DeploymentStatus;
1081
+ error: string | null;
1082
+ filesCount: number;
1083
+ sizeBytes: number;
1084
+ size: string;
1085
+ spaMode: boolean;
1086
+ gitRepo: string | null;
1087
+ gitCommit: string | null;
1088
+ createdAt: string;
1089
+ };
1090
+ };
1091
+ };
612
1092
  export type SdkRestartServiceMutationVariables = Exact<{
613
1093
  deploymentID: string | number;
614
1094
  }>;
@@ -1281,13 +1761,31 @@ export declare class TypedDocumentString<TResult, TVariables> extends String imp
1281
1761
  toString(): string & DocumentTypeDecoration<TResult, TVariables>;
1282
1762
  }
1283
1763
  export declare const DeploymentFieldsFragmentDoc: TypedDocumentString<DeploymentFieldsFragment, unknown>;
1764
+ export declare const FileCommitFieldsFragmentDoc: TypedDocumentString<FileCommitFieldsFragment, unknown>;
1765
+ export declare const AppErrorGroupFieldsFragmentDoc: TypedDocumentString<AppErrorGroupFieldsFragment, unknown>;
1284
1766
  export declare const RunFieldsFragmentDoc: TypedDocumentString<RunFieldsFragment, unknown>;
1285
1767
  export declare const SdkWhoamiDocument: TypedDocumentString<SdkWhoamiQuery, SdkWhoamiQueryVariables>;
1286
1768
  export declare const SdkCreateWorkspaceDocument: TypedDocumentString<SdkCreateWorkspaceMutation, SdkCreateWorkspaceMutationVariables>;
1287
1769
  export declare const SdkListWorkspacesDocument: TypedDocumentString<SdkListWorkspacesQuery, SdkListWorkspacesQueryVariables>;
1288
1770
  export declare const SdkDeleteWorkspaceDocument: TypedDocumentString<SdkDeleteWorkspaceMutation, SdkDeleteWorkspaceMutationVariables>;
1771
+ export declare const SdkWorkspaceLiveAppsDocument: TypedDocumentString<SdkWorkspaceLiveAppsQuery, SdkWorkspaceLiveAppsQueryVariables>;
1772
+ export declare const SdkDeleteAppDocument: TypedDocumentString<SdkDeleteAppMutation, SdkDeleteAppMutationVariables>;
1289
1773
  export declare const SdkWriteTextFileDocument: TypedDocumentString<SdkWriteTextFileMutation, SdkWriteTextFileMutationVariables>;
1290
1774
  export declare const SdkWriteBase64FileDocument: TypedDocumentString<SdkWriteBase64FileMutation, SdkWriteBase64FileMutationVariables>;
1775
+ export declare const SdkWriteFilesDocument: TypedDocumentString<SdkWriteFilesMutation, SdkWriteFilesMutationVariables>;
1776
+ export declare const SdkAppCommitsDocument: TypedDocumentString<SdkAppCommitsQuery, SdkAppCommitsQueryVariables>;
1777
+ export declare const SdkAppCommitsWaitingDocument: TypedDocumentString<SdkAppCommitsWaitingQuery, SdkAppCommitsWaitingQueryVariables>;
1778
+ export declare const SdkWorkspaceGitSourceDocument: TypedDocumentString<SdkWorkspaceGitSourceQuery, SdkWorkspaceGitSourceQueryVariables>;
1779
+ export declare const SdkAppCommitDocument: TypedDocumentString<SdkAppCommitQuery, SdkAppCommitQueryVariables>;
1780
+ export declare const SdkRestoreVersionDocument: TypedDocumentString<SdkRestoreVersionMutation, SdkRestoreVersionMutationVariables>;
1781
+ export declare const SdkAppErrorsDocument: TypedDocumentString<SdkAppErrorsQuery, SdkAppErrorsQueryVariables>;
1782
+ export declare const SdkAppErrorGroupDocument: TypedDocumentString<SdkAppErrorGroupQuery, SdkAppErrorGroupQueryVariables>;
1783
+ export declare const SdkResolveErrorGroupDocument: TypedDocumentString<SdkResolveErrorGroupMutation, SdkResolveErrorGroupMutationVariables>;
1784
+ export declare const SdkMuteErrorGroupDocument: TypedDocumentString<SdkMuteErrorGroupMutation, SdkMuteErrorGroupMutationVariables>;
1785
+ export declare const SdkReopenErrorGroupDocument: TypedDocumentString<SdkReopenErrorGroupMutation, SdkReopenErrorGroupMutationVariables>;
1786
+ export declare const SdkEventTypesDocument: TypedDocumentString<SdkEventTypesQuery, SdkEventTypesQueryVariables>;
1787
+ export declare const SdkPollEventsDocument: TypedDocumentString<SdkPollEventsQuery, SdkPollEventsQueryVariables>;
1788
+ export declare const SdkWaitForEventsDocument: TypedDocumentString<SdkWaitForEventsQuery, SdkWaitForEventsQueryVariables>;
1291
1789
  export declare const SdkListFilesDocument: TypedDocumentString<SdkListFilesQuery, SdkListFilesQueryVariables>;
1292
1790
  export declare const SdkReadFileDocument: TypedDocumentString<SdkReadFileQuery, SdkReadFileQueryVariables>;
1293
1791
  export declare const SdkDeleteFileDocument: TypedDocumentString<SdkDeleteFileMutation, SdkDeleteFileMutationVariables>;
@@ -1302,6 +1800,7 @@ export declare const SdkRollbackDocument: TypedDocumentString<SdkRollbackMutatio
1302
1800
  export declare const SdkServiceStatusDocument: TypedDocumentString<SdkServiceStatusQuery, SdkServiceStatusQueryVariables>;
1303
1801
  export declare const SdkServiceLogsDocument: TypedDocumentString<SdkServiceLogsQuery, SdkServiceLogsQueryVariables>;
1304
1802
  export declare const SdkDeploymentEventsDocument: TypedDocumentString<SdkDeploymentEventsQuery, SdkDeploymentEventsQueryVariables>;
1803
+ export declare const SdkWaitForDeploymentDocument: TypedDocumentString<SdkWaitForDeploymentQuery, SdkWaitForDeploymentQueryVariables>;
1305
1804
  export declare const SdkRestartServiceDocument: TypedDocumentString<SdkRestartServiceMutation, SdkRestartServiceMutationVariables>;
1306
1805
  export declare const SdkStopServiceDocument: TypedDocumentString<SdkStopServiceMutation, SdkStopServiceMutationVariables>;
1307
1806
  export declare const SdkDeleteDeploymentDocument: TypedDocumentString<SdkDeleteDeploymentMutation, SdkDeleteDeploymentMutationVariables>;