@sealant/sdk 0.5.1 → 0.7.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.
@@ -4,6 +4,63 @@ import { HttpApiClient } from "effect/unstable/httpapi";
4
4
  import type { SealantInternalConfig } from "../internal/config.js";
5
5
  /** Builds the contract-derived client. Requires an `HttpClient` in context (provided by the layer). */
6
6
  declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect.Effect<{
7
+ readonly accessTokens: {
8
+ readonly createAccessToken: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
9
+ readonly payload: {
10
+ readonly ownerUserId: string;
11
+ readonly scopes: readonly ("session:input" | "session:read" | "workspace:exec")[];
12
+ readonly name?: string | undefined;
13
+ readonly workspaceId?: string | undefined;
14
+ readonly ttlSeconds?: number | undefined;
15
+ };
16
+ readonly responseMode?: Mode;
17
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
18
+ readonly tokenId: string;
19
+ readonly ownerUserId: string;
20
+ readonly name?: string | undefined;
21
+ readonly scopes: readonly ("session:input" | "session:read" | "workspace:exec")[];
22
+ readonly workspaceId?: string | undefined;
23
+ readonly expiresAt?: string | undefined;
24
+ readonly revokedAt?: string | undefined;
25
+ readonly createdAt: string;
26
+ readonly token: string;
27
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").AccessTokenBadRequestError | import("@sealant/api-contracts").AccessTokenInternalServerError | import("@sealant/api-contracts").AccessTokenNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
28
+ readonly listAccessTokens: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
29
+ readonly query: {
30
+ readonly ownerUserId: string;
31
+ };
32
+ readonly responseMode?: Mode;
33
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
34
+ readonly items: readonly {
35
+ readonly tokenId: string;
36
+ readonly ownerUserId: string;
37
+ readonly name?: string | undefined;
38
+ readonly scopes: readonly ("session:input" | "session:read" | "workspace:exec")[];
39
+ readonly workspaceId?: string | undefined;
40
+ readonly expiresAt?: string | undefined;
41
+ readonly revokedAt?: string | undefined;
42
+ readonly createdAt: string;
43
+ }[];
44
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").AccessTokenBadRequestError | import("@sealant/api-contracts").AccessTokenInternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
45
+ readonly revokeAccessToken: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
46
+ readonly params: {
47
+ readonly tokenId: string;
48
+ };
49
+ readonly payload: {
50
+ readonly ownerUserId: string;
51
+ };
52
+ readonly responseMode?: Mode;
53
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
54
+ readonly tokenId: string;
55
+ readonly ownerUserId: string;
56
+ readonly name?: string | undefined;
57
+ readonly scopes: readonly ("session:input" | "session:read" | "workspace:exec")[];
58
+ readonly workspaceId?: string | undefined;
59
+ readonly expiresAt?: string | undefined;
60
+ readonly revokedAt?: string | undefined;
61
+ readonly createdAt: string;
62
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").AccessTokenBadRequestError | import("@sealant/api-contracts").AccessTokenInternalServerError | import("@sealant/api-contracts").AccessTokenNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
63
+ };
7
64
  readonly connectedAccounts: {
8
65
  readonly archiveConnectedAccount: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
9
66
  readonly params: {
@@ -439,6 +496,9 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
439
496
  readonly args: readonly string[];
440
497
  readonly cwd?: string | undefined;
441
498
  } | undefined;
499
+ readonly metadata?: {
500
+ readonly [x: string]: unknown;
501
+ } | undefined;
442
502
  };
443
503
  readonly responseMode?: Mode;
444
504
  }) => Effect.Effect<HttpApiClient.Client.Response<{
@@ -450,6 +510,14 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
450
510
  readonly mode: "interactive" | "one-shot";
451
511
  readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
452
512
  readonly prompt?: string | undefined;
513
+ readonly command?: {
514
+ readonly executable: string;
515
+ readonly args: readonly string[];
516
+ readonly cwd?: string | undefined;
517
+ } | undefined;
518
+ readonly metadata?: {
519
+ readonly [x: string]: unknown;
520
+ } | undefined;
453
521
  readonly exitCode?: number | undefined;
454
522
  readonly errorMessage?: string | undefined;
455
523
  readonly startedAt?: string | undefined;
@@ -471,6 +539,14 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
471
539
  readonly mode: "interactive" | "one-shot";
472
540
  readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
473
541
  readonly prompt?: string | undefined;
542
+ readonly command?: {
543
+ readonly executable: string;
544
+ readonly args: readonly string[];
545
+ readonly cwd?: string | undefined;
546
+ } | undefined;
547
+ readonly metadata?: {
548
+ readonly [x: string]: unknown;
549
+ } | undefined;
474
550
  readonly exitCode?: number | undefined;
475
551
  readonly errorMessage?: string | undefined;
476
552
  readonly startedAt?: string | undefined;
@@ -541,13 +617,15 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
541
617
  };
542
618
  readonly query: {
543
619
  readonly processId: string;
544
- readonly stream: "stderr" | "stdout";
620
+ readonly stream: "pty" | "stderr" | "stdout";
545
621
  readonly atSequence?: string | undefined;
622
+ readonly fromSequence?: string | undefined;
623
+ readonly limit?: string | undefined;
546
624
  };
547
625
  readonly responseMode?: Mode;
548
626
  }) => Effect.Effect<HttpApiClient.Client.Response<{
549
627
  readonly processId: string;
550
- readonly stream: "stderr" | "stdout";
628
+ readonly stream: "pty" | "stderr" | "stdout";
551
629
  readonly byteCount: number;
552
630
  readonly contentBase64: string;
553
631
  }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
@@ -593,6 +671,14 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
593
671
  readonly mode: "interactive" | "one-shot";
594
672
  readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
595
673
  readonly prompt?: string | undefined;
674
+ readonly command?: {
675
+ readonly executable: string;
676
+ readonly args: readonly string[];
677
+ readonly cwd?: string | undefined;
678
+ } | undefined;
679
+ readonly metadata?: {
680
+ readonly [x: string]: unknown;
681
+ } | undefined;
596
682
  readonly exitCode?: number | undefined;
597
683
  readonly errorMessage?: string | undefined;
598
684
  readonly startedAt?: string | undefined;
@@ -626,6 +712,14 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
626
712
  readonly mode: "interactive" | "one-shot";
627
713
  readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
628
714
  readonly prompt?: string | undefined;
715
+ readonly command?: {
716
+ readonly executable: string;
717
+ readonly args: readonly string[];
718
+ readonly cwd?: string | undefined;
719
+ } | undefined;
720
+ readonly metadata?: {
721
+ readonly [x: string]: unknown;
722
+ } | undefined;
629
723
  readonly exitCode?: number | undefined;
630
724
  readonly errorMessage?: string | undefined;
631
725
  readonly startedAt?: string | undefined;
@@ -634,6 +728,211 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
634
728
  readonly updatedAt: string;
635
729
  }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
636
730
  };
731
+ readonly sessions: {
732
+ readonly closeSession: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
733
+ readonly params: {
734
+ readonly sessionId: string;
735
+ };
736
+ readonly headers: {
737
+ readonly authorization?: string | undefined;
738
+ };
739
+ readonly payload: {
740
+ readonly ownerUserId?: string | undefined;
741
+ };
742
+ readonly responseMode?: Mode;
743
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
744
+ readonly sessionId: string;
745
+ readonly workspaceId: string;
746
+ readonly runId: string;
747
+ readonly ownerUserId: string;
748
+ readonly status: "exited" | "failed" | "running" | "starting";
749
+ readonly argv: readonly string[];
750
+ readonly cwd?: string | undefined;
751
+ readonly cols: number;
752
+ readonly rows: number;
753
+ readonly exitCode?: number | undefined;
754
+ readonly exitSignal?: number | undefined;
755
+ readonly errorMessage?: string | undefined;
756
+ readonly metadata?: {
757
+ readonly [x: string]: unknown;
758
+ } | undefined;
759
+ readonly outputHighWater: string;
760
+ readonly createdAt: string;
761
+ readonly endedAt?: string | undefined;
762
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadGatewayError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
763
+ readonly createSession: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
764
+ readonly headers: {
765
+ readonly authorization?: string | undefined;
766
+ };
767
+ readonly payload: {
768
+ readonly workspaceId: string;
769
+ readonly ownerUserId: string;
770
+ readonly argv: readonly string[];
771
+ readonly cwd?: string | undefined;
772
+ readonly env?: {
773
+ readonly [x: string]: string;
774
+ } | undefined;
775
+ readonly cols?: number | undefined;
776
+ readonly rows?: number | undefined;
777
+ readonly term?: string | undefined;
778
+ readonly metadata?: {
779
+ readonly [x: string]: unknown;
780
+ } | undefined;
781
+ };
782
+ readonly responseMode?: Mode;
783
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
784
+ readonly sessionId: string;
785
+ readonly workspaceId: string;
786
+ readonly runId: string;
787
+ readonly ownerUserId: string;
788
+ readonly status: "exited" | "failed" | "running" | "starting";
789
+ readonly argv: readonly string[];
790
+ readonly cwd?: string | undefined;
791
+ readonly cols: number;
792
+ readonly rows: number;
793
+ readonly exitCode?: number | undefined;
794
+ readonly exitSignal?: number | undefined;
795
+ readonly errorMessage?: string | undefined;
796
+ readonly metadata?: {
797
+ readonly [x: string]: unknown;
798
+ } | undefined;
799
+ readonly outputHighWater: string;
800
+ readonly createdAt: string;
801
+ readonly endedAt?: string | undefined;
802
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadGatewayError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionConflictError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
803
+ readonly getSession: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
804
+ readonly params: {
805
+ readonly sessionId: string;
806
+ };
807
+ readonly query: {
808
+ readonly ownerUserId?: string | undefined;
809
+ };
810
+ readonly headers: {
811
+ readonly authorization?: string | undefined;
812
+ };
813
+ readonly responseMode?: Mode;
814
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
815
+ readonly sessionId: string;
816
+ readonly workspaceId: string;
817
+ readonly runId: string;
818
+ readonly ownerUserId: string;
819
+ readonly status: "exited" | "failed" | "running" | "starting";
820
+ readonly argv: readonly string[];
821
+ readonly cwd?: string | undefined;
822
+ readonly cols: number;
823
+ readonly rows: number;
824
+ readonly exitCode?: number | undefined;
825
+ readonly exitSignal?: number | undefined;
826
+ readonly errorMessage?: string | undefined;
827
+ readonly metadata?: {
828
+ readonly [x: string]: unknown;
829
+ } | undefined;
830
+ readonly outputHighWater: string;
831
+ readonly createdAt: string;
832
+ readonly endedAt?: string | undefined;
833
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
834
+ readonly getSessionOutput: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
835
+ readonly params: {
836
+ readonly sessionId: string;
837
+ };
838
+ readonly query: {
839
+ readonly ownerUserId?: string | undefined;
840
+ readonly from?: string | undefined;
841
+ readonly limit?: string | undefined;
842
+ };
843
+ readonly headers: {
844
+ readonly authorization?: string | undefined;
845
+ };
846
+ readonly responseMode?: Mode;
847
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
848
+ readonly sessionId: string;
849
+ readonly chunks: readonly {
850
+ readonly sequence: string;
851
+ readonly dataBase64: string;
852
+ }[];
853
+ readonly nextFrom: string;
854
+ readonly status: "exited" | "failed" | "running" | "starting";
855
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
856
+ readonly listSessions: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
857
+ readonly query: {
858
+ readonly ownerUserId: string;
859
+ readonly workspaceId?: string | undefined;
860
+ readonly status?: "exited" | "failed" | "running" | "starting" | undefined;
861
+ readonly limit?: string | undefined;
862
+ };
863
+ readonly headers: {
864
+ readonly authorization?: string | undefined;
865
+ };
866
+ readonly responseMode?: Mode;
867
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
868
+ readonly items: readonly {
869
+ readonly sessionId: string;
870
+ readonly workspaceId: string;
871
+ readonly runId: string;
872
+ readonly ownerUserId: string;
873
+ readonly status: "exited" | "failed" | "running" | "starting";
874
+ readonly argv: readonly string[];
875
+ readonly cwd?: string | undefined;
876
+ readonly cols: number;
877
+ readonly rows: number;
878
+ readonly exitCode?: number | undefined;
879
+ readonly exitSignal?: number | undefined;
880
+ readonly errorMessage?: string | undefined;
881
+ readonly metadata?: {
882
+ readonly [x: string]: unknown;
883
+ } | undefined;
884
+ readonly outputHighWater: string;
885
+ readonly createdAt: string;
886
+ readonly endedAt?: string | undefined;
887
+ }[];
888
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
889
+ readonly resizeSession: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
890
+ readonly params: {
891
+ readonly sessionId: string;
892
+ };
893
+ readonly headers: {
894
+ readonly authorization?: string | undefined;
895
+ };
896
+ readonly payload: {
897
+ readonly ownerUserId?: string | undefined;
898
+ readonly cols: number;
899
+ readonly rows: number;
900
+ };
901
+ readonly responseMode?: Mode;
902
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
903
+ readonly ok: boolean;
904
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadGatewayError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionConflictError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
905
+ readonly sendSessionInput: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
906
+ readonly params: {
907
+ readonly sessionId: string;
908
+ };
909
+ readonly headers: {
910
+ readonly authorization?: string | undefined;
911
+ };
912
+ readonly payload: {
913
+ readonly ownerUserId?: string | undefined;
914
+ readonly dataBase64: string;
915
+ };
916
+ readonly responseMode?: Mode;
917
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
918
+ readonly ok: boolean;
919
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadGatewayError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionConflictError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
920
+ readonly signalSession: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
921
+ readonly params: {
922
+ readonly sessionId: string;
923
+ };
924
+ readonly headers: {
925
+ readonly authorization?: string | undefined;
926
+ };
927
+ readonly payload: {
928
+ readonly ownerUserId?: string | undefined;
929
+ readonly signal: number;
930
+ };
931
+ readonly responseMode?: Mode;
932
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
933
+ readonly ok: boolean;
934
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadGatewayError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionConflictError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
935
+ };
637
936
  readonly sshKeys: {
638
937
  readonly archiveSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
639
938
  readonly params: {
@@ -756,12 +1055,13 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
756
1055
  readonly github?: string | undefined;
757
1056
  } | undefined;
758
1057
  readonly spec: unknown;
1058
+ readonly ttlSeconds?: number | undefined;
759
1059
  };
760
1060
  readonly responseMode?: Mode;
761
1061
  }) => Effect.Effect<HttpApiClient.Client.Response<{
762
1062
  readonly workspaceId: string;
763
1063
  readonly name: string;
764
- readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
1064
+ readonly status: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped";
765
1065
  readonly registryId: string;
766
1066
  readonly repository: string;
767
1067
  readonly tag: string;
@@ -788,6 +1088,14 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
788
1088
  readonly mode: "interactive" | "one-shot";
789
1089
  readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
790
1090
  readonly prompt?: string | undefined;
1091
+ readonly command?: {
1092
+ readonly executable: string;
1093
+ readonly args: readonly string[];
1094
+ readonly cwd?: string | undefined;
1095
+ } | undefined;
1096
+ readonly metadata?: {
1097
+ readonly [x: string]: unknown;
1098
+ } | undefined;
791
1099
  readonly exitCode?: number | undefined;
792
1100
  readonly errorMessage?: string | undefined;
793
1101
  readonly startedAt?: string | undefined;
@@ -795,6 +1103,19 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
795
1103
  readonly createdAt: string;
796
1104
  readonly updatedAt: string;
797
1105
  }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceBadRequestError | import("@sealant/api-contracts").WorkspaceConflictError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError), [Mode] extends ["response-only"] ? never : never>;
1106
+ readonly expireWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1107
+ readonly params: {
1108
+ readonly workspaceId: string;
1109
+ };
1110
+ readonly payload: {
1111
+ readonly ownerUserId: string;
1112
+ readonly ttlSeconds?: number | null | undefined;
1113
+ };
1114
+ readonly responseMode?: Mode;
1115
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
1116
+ readonly workspaceId: string;
1117
+ readonly expiresAt: string | null;
1118
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceBadRequestError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError), [Mode] extends ["response-only"] ? never : never>;
798
1119
  readonly getWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
799
1120
  readonly params: {
800
1121
  readonly workspaceId: string;
@@ -804,7 +1125,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
804
1125
  readonly workspaceId: string;
805
1126
  readonly name: string;
806
1127
  readonly ownerUserId: string;
807
- readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
1128
+ readonly status: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped";
808
1129
  readonly registryId?: string | undefined;
809
1130
  readonly repository?: string | undefined;
810
1131
  readonly tag?: string | undefined;
@@ -828,6 +1149,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
828
1149
  readonly updatedAt: string;
829
1150
  readonly startedAt?: string | undefined;
830
1151
  readonly finishedAt?: string | undefined;
1152
+ readonly expiresAt?: string | undefined;
831
1153
  readonly spec?: unknown;
832
1154
  }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError), [Mode] extends ["response-only"] ? never : never>;
833
1155
  readonly getWorkspaceSshTarget: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
@@ -862,7 +1184,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
862
1184
  readonly items: readonly {
863
1185
  readonly attemptId: string;
864
1186
  readonly relation: "launch" | "rebuild" | "resume" | "retry";
865
- readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
1187
+ readonly status: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped";
866
1188
  readonly triggerType: "api" | "manual" | "retry" | "schedule";
867
1189
  readonly triggerRef?: string | undefined;
868
1190
  readonly runtime?: {
@@ -913,7 +1235,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
913
1235
  readonly listWorkspaces: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
914
1236
  readonly query: {
915
1237
  readonly ownerUserId: string;
916
- readonly status?: "cancelled" | "failed" | "queued" | "ready" | "running" | undefined;
1238
+ readonly status?: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped" | undefined;
917
1239
  readonly limit?: string | undefined;
918
1240
  };
919
1241
  readonly responseMode?: Mode;
@@ -922,7 +1244,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
922
1244
  readonly workspaceId: string;
923
1245
  readonly name: string;
924
1246
  readonly ownerUserId: string;
925
- readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
1247
+ readonly status: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped";
926
1248
  readonly registryId?: string | undefined;
927
1249
  readonly repository?: string | undefined;
928
1250
  readonly tag?: string | undefined;
@@ -946,6 +1268,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
946
1268
  readonly updatedAt: string;
947
1269
  readonly startedAt?: string | undefined;
948
1270
  readonly finishedAt?: string | undefined;
1271
+ readonly expiresAt?: string | undefined;
949
1272
  }[];
950
1273
  }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceBadRequestError | import("@sealant/api-contracts").WorkspaceInternalServerError), [Mode] extends ["response-only"] ? never : never>;
951
1274
  readonly renameWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
@@ -961,11 +1284,93 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
961
1284
  readonly name: string;
962
1285
  readonly updatedAt: string;
963
1286
  }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError), [Mode] extends ["response-only"] ? never : never>;
1287
+ readonly restartWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1288
+ readonly params: {
1289
+ readonly workspaceId: string;
1290
+ };
1291
+ readonly payload: {
1292
+ readonly ownerUserId: string;
1293
+ };
1294
+ readonly responseMode?: Mode;
1295
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
1296
+ readonly workspaceId: string;
1297
+ readonly runId: string;
1298
+ readonly status: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped";
1299
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceBadGatewayError | import("@sealant/api-contracts").WorkspaceBadRequestError | import("@sealant/api-contracts").WorkspaceConflictError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError), [Mode] extends ["response-only"] ? never : never>;
1300
+ readonly stopWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1301
+ readonly params: {
1302
+ readonly workspaceId: string;
1303
+ };
1304
+ readonly payload: {
1305
+ readonly ownerUserId: string;
1306
+ };
1307
+ readonly responseMode?: Mode;
1308
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
1309
+ readonly workspaceId: string;
1310
+ readonly status: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped";
1311
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceBadGatewayError | import("@sealant/api-contracts").WorkspaceBadRequestError | import("@sealant/api-contracts").WorkspaceConflictError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError), [Mode] extends ["response-only"] ? never : never>;
964
1312
  };
965
1313
  }, never, HttpClient.HttpClient>;
966
1314
  /** The fully-typed control-plane client, derived from the `@sealant/api-contracts` HttpApi. */
967
1315
  export type ControlPlaneClient = Effect.Success<ReturnType<typeof buildControlPlaneClient>>;
968
1316
  declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@sealant/sdk/SealantApiClient", {
1317
+ readonly accessTokens: {
1318
+ readonly createAccessToken: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1319
+ readonly payload: {
1320
+ readonly ownerUserId: string;
1321
+ readonly scopes: readonly ("session:input" | "session:read" | "workspace:exec")[];
1322
+ readonly name?: string | undefined;
1323
+ readonly workspaceId?: string | undefined;
1324
+ readonly ttlSeconds?: number | undefined;
1325
+ };
1326
+ readonly responseMode?: Mode;
1327
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
1328
+ readonly tokenId: string;
1329
+ readonly ownerUserId: string;
1330
+ readonly name?: string | undefined;
1331
+ readonly scopes: readonly ("session:input" | "session:read" | "workspace:exec")[];
1332
+ readonly workspaceId?: string | undefined;
1333
+ readonly expiresAt?: string | undefined;
1334
+ readonly revokedAt?: string | undefined;
1335
+ readonly createdAt: string;
1336
+ readonly token: string;
1337
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").AccessTokenBadRequestError | import("@sealant/api-contracts").AccessTokenInternalServerError | import("@sealant/api-contracts").AccessTokenNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1338
+ readonly listAccessTokens: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1339
+ readonly query: {
1340
+ readonly ownerUserId: string;
1341
+ };
1342
+ readonly responseMode?: Mode;
1343
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
1344
+ readonly items: readonly {
1345
+ readonly tokenId: string;
1346
+ readonly ownerUserId: string;
1347
+ readonly name?: string | undefined;
1348
+ readonly scopes: readonly ("session:input" | "session:read" | "workspace:exec")[];
1349
+ readonly workspaceId?: string | undefined;
1350
+ readonly expiresAt?: string | undefined;
1351
+ readonly revokedAt?: string | undefined;
1352
+ readonly createdAt: string;
1353
+ }[];
1354
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").AccessTokenBadRequestError | import("@sealant/api-contracts").AccessTokenInternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1355
+ readonly revokeAccessToken: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1356
+ readonly params: {
1357
+ readonly tokenId: string;
1358
+ };
1359
+ readonly payload: {
1360
+ readonly ownerUserId: string;
1361
+ };
1362
+ readonly responseMode?: Mode;
1363
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
1364
+ readonly tokenId: string;
1365
+ readonly ownerUserId: string;
1366
+ readonly name?: string | undefined;
1367
+ readonly scopes: readonly ("session:input" | "session:read" | "workspace:exec")[];
1368
+ readonly workspaceId?: string | undefined;
1369
+ readonly expiresAt?: string | undefined;
1370
+ readonly revokedAt?: string | undefined;
1371
+ readonly createdAt: string;
1372
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").AccessTokenBadRequestError | import("@sealant/api-contracts").AccessTokenInternalServerError | import("@sealant/api-contracts").AccessTokenNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1373
+ };
969
1374
  readonly connectedAccounts: {
970
1375
  readonly archiveConnectedAccount: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
971
1376
  readonly params: {
@@ -1401,6 +1806,9 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1401
1806
  readonly args: readonly string[];
1402
1807
  readonly cwd?: string | undefined;
1403
1808
  } | undefined;
1809
+ readonly metadata?: {
1810
+ readonly [x: string]: unknown;
1811
+ } | undefined;
1404
1812
  };
1405
1813
  readonly responseMode?: Mode;
1406
1814
  }) => Effect.Effect<HttpApiClient.Client.Response<{
@@ -1412,6 +1820,14 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1412
1820
  readonly mode: "interactive" | "one-shot";
1413
1821
  readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
1414
1822
  readonly prompt?: string | undefined;
1823
+ readonly command?: {
1824
+ readonly executable: string;
1825
+ readonly args: readonly string[];
1826
+ readonly cwd?: string | undefined;
1827
+ } | undefined;
1828
+ readonly metadata?: {
1829
+ readonly [x: string]: unknown;
1830
+ } | undefined;
1415
1831
  readonly exitCode?: number | undefined;
1416
1832
  readonly errorMessage?: string | undefined;
1417
1833
  readonly startedAt?: string | undefined;
@@ -1433,6 +1849,14 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1433
1849
  readonly mode: "interactive" | "one-shot";
1434
1850
  readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
1435
1851
  readonly prompt?: string | undefined;
1852
+ readonly command?: {
1853
+ readonly executable: string;
1854
+ readonly args: readonly string[];
1855
+ readonly cwd?: string | undefined;
1856
+ } | undefined;
1857
+ readonly metadata?: {
1858
+ readonly [x: string]: unknown;
1859
+ } | undefined;
1436
1860
  readonly exitCode?: number | undefined;
1437
1861
  readonly errorMessage?: string | undefined;
1438
1862
  readonly startedAt?: string | undefined;
@@ -1503,13 +1927,15 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1503
1927
  };
1504
1928
  readonly query: {
1505
1929
  readonly processId: string;
1506
- readonly stream: "stderr" | "stdout";
1930
+ readonly stream: "pty" | "stderr" | "stdout";
1507
1931
  readonly atSequence?: string | undefined;
1932
+ readonly fromSequence?: string | undefined;
1933
+ readonly limit?: string | undefined;
1508
1934
  };
1509
1935
  readonly responseMode?: Mode;
1510
1936
  }) => Effect.Effect<HttpApiClient.Client.Response<{
1511
1937
  readonly processId: string;
1512
- readonly stream: "stderr" | "stdout";
1938
+ readonly stream: "pty" | "stderr" | "stdout";
1513
1939
  readonly byteCount: number;
1514
1940
  readonly contentBase64: string;
1515
1941
  }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
@@ -1555,6 +1981,14 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1555
1981
  readonly mode: "interactive" | "one-shot";
1556
1982
  readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
1557
1983
  readonly prompt?: string | undefined;
1984
+ readonly command?: {
1985
+ readonly executable: string;
1986
+ readonly args: readonly string[];
1987
+ readonly cwd?: string | undefined;
1988
+ } | undefined;
1989
+ readonly metadata?: {
1990
+ readonly [x: string]: unknown;
1991
+ } | undefined;
1558
1992
  readonly exitCode?: number | undefined;
1559
1993
  readonly errorMessage?: string | undefined;
1560
1994
  readonly startedAt?: string | undefined;
@@ -1588,6 +2022,14 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1588
2022
  readonly mode: "interactive" | "one-shot";
1589
2023
  readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
1590
2024
  readonly prompt?: string | undefined;
2025
+ readonly command?: {
2026
+ readonly executable: string;
2027
+ readonly args: readonly string[];
2028
+ readonly cwd?: string | undefined;
2029
+ } | undefined;
2030
+ readonly metadata?: {
2031
+ readonly [x: string]: unknown;
2032
+ } | undefined;
1591
2033
  readonly exitCode?: number | undefined;
1592
2034
  readonly errorMessage?: string | undefined;
1593
2035
  readonly startedAt?: string | undefined;
@@ -1596,6 +2038,211 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1596
2038
  readonly updatedAt: string;
1597
2039
  }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1598
2040
  };
2041
+ readonly sessions: {
2042
+ readonly closeSession: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2043
+ readonly params: {
2044
+ readonly sessionId: string;
2045
+ };
2046
+ readonly headers: {
2047
+ readonly authorization?: string | undefined;
2048
+ };
2049
+ readonly payload: {
2050
+ readonly ownerUserId?: string | undefined;
2051
+ };
2052
+ readonly responseMode?: Mode;
2053
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
2054
+ readonly sessionId: string;
2055
+ readonly workspaceId: string;
2056
+ readonly runId: string;
2057
+ readonly ownerUserId: string;
2058
+ readonly status: "exited" | "failed" | "running" | "starting";
2059
+ readonly argv: readonly string[];
2060
+ readonly cwd?: string | undefined;
2061
+ readonly cols: number;
2062
+ readonly rows: number;
2063
+ readonly exitCode?: number | undefined;
2064
+ readonly exitSignal?: number | undefined;
2065
+ readonly errorMessage?: string | undefined;
2066
+ readonly metadata?: {
2067
+ readonly [x: string]: unknown;
2068
+ } | undefined;
2069
+ readonly outputHighWater: string;
2070
+ readonly createdAt: string;
2071
+ readonly endedAt?: string | undefined;
2072
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadGatewayError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
2073
+ readonly createSession: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2074
+ readonly headers: {
2075
+ readonly authorization?: string | undefined;
2076
+ };
2077
+ readonly payload: {
2078
+ readonly workspaceId: string;
2079
+ readonly ownerUserId: string;
2080
+ readonly argv: readonly string[];
2081
+ readonly cwd?: string | undefined;
2082
+ readonly env?: {
2083
+ readonly [x: string]: string;
2084
+ } | undefined;
2085
+ readonly cols?: number | undefined;
2086
+ readonly rows?: number | undefined;
2087
+ readonly term?: string | undefined;
2088
+ readonly metadata?: {
2089
+ readonly [x: string]: unknown;
2090
+ } | undefined;
2091
+ };
2092
+ readonly responseMode?: Mode;
2093
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
2094
+ readonly sessionId: string;
2095
+ readonly workspaceId: string;
2096
+ readonly runId: string;
2097
+ readonly ownerUserId: string;
2098
+ readonly status: "exited" | "failed" | "running" | "starting";
2099
+ readonly argv: readonly string[];
2100
+ readonly cwd?: string | undefined;
2101
+ readonly cols: number;
2102
+ readonly rows: number;
2103
+ readonly exitCode?: number | undefined;
2104
+ readonly exitSignal?: number | undefined;
2105
+ readonly errorMessage?: string | undefined;
2106
+ readonly metadata?: {
2107
+ readonly [x: string]: unknown;
2108
+ } | undefined;
2109
+ readonly outputHighWater: string;
2110
+ readonly createdAt: string;
2111
+ readonly endedAt?: string | undefined;
2112
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadGatewayError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionConflictError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
2113
+ readonly getSession: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2114
+ readonly params: {
2115
+ readonly sessionId: string;
2116
+ };
2117
+ readonly query: {
2118
+ readonly ownerUserId?: string | undefined;
2119
+ };
2120
+ readonly headers: {
2121
+ readonly authorization?: string | undefined;
2122
+ };
2123
+ readonly responseMode?: Mode;
2124
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
2125
+ readonly sessionId: string;
2126
+ readonly workspaceId: string;
2127
+ readonly runId: string;
2128
+ readonly ownerUserId: string;
2129
+ readonly status: "exited" | "failed" | "running" | "starting";
2130
+ readonly argv: readonly string[];
2131
+ readonly cwd?: string | undefined;
2132
+ readonly cols: number;
2133
+ readonly rows: number;
2134
+ readonly exitCode?: number | undefined;
2135
+ readonly exitSignal?: number | undefined;
2136
+ readonly errorMessage?: string | undefined;
2137
+ readonly metadata?: {
2138
+ readonly [x: string]: unknown;
2139
+ } | undefined;
2140
+ readonly outputHighWater: string;
2141
+ readonly createdAt: string;
2142
+ readonly endedAt?: string | undefined;
2143
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
2144
+ readonly getSessionOutput: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2145
+ readonly params: {
2146
+ readonly sessionId: string;
2147
+ };
2148
+ readonly query: {
2149
+ readonly ownerUserId?: string | undefined;
2150
+ readonly from?: string | undefined;
2151
+ readonly limit?: string | undefined;
2152
+ };
2153
+ readonly headers: {
2154
+ readonly authorization?: string | undefined;
2155
+ };
2156
+ readonly responseMode?: Mode;
2157
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
2158
+ readonly sessionId: string;
2159
+ readonly chunks: readonly {
2160
+ readonly sequence: string;
2161
+ readonly dataBase64: string;
2162
+ }[];
2163
+ readonly nextFrom: string;
2164
+ readonly status: "exited" | "failed" | "running" | "starting";
2165
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
2166
+ readonly listSessions: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2167
+ readonly query: {
2168
+ readonly ownerUserId: string;
2169
+ readonly workspaceId?: string | undefined;
2170
+ readonly status?: "exited" | "failed" | "running" | "starting" | undefined;
2171
+ readonly limit?: string | undefined;
2172
+ };
2173
+ readonly headers: {
2174
+ readonly authorization?: string | undefined;
2175
+ };
2176
+ readonly responseMode?: Mode;
2177
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
2178
+ readonly items: readonly {
2179
+ readonly sessionId: string;
2180
+ readonly workspaceId: string;
2181
+ readonly runId: string;
2182
+ readonly ownerUserId: string;
2183
+ readonly status: "exited" | "failed" | "running" | "starting";
2184
+ readonly argv: readonly string[];
2185
+ readonly cwd?: string | undefined;
2186
+ readonly cols: number;
2187
+ readonly rows: number;
2188
+ readonly exitCode?: number | undefined;
2189
+ readonly exitSignal?: number | undefined;
2190
+ readonly errorMessage?: string | undefined;
2191
+ readonly metadata?: {
2192
+ readonly [x: string]: unknown;
2193
+ } | undefined;
2194
+ readonly outputHighWater: string;
2195
+ readonly createdAt: string;
2196
+ readonly endedAt?: string | undefined;
2197
+ }[];
2198
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
2199
+ readonly resizeSession: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2200
+ readonly params: {
2201
+ readonly sessionId: string;
2202
+ };
2203
+ readonly headers: {
2204
+ readonly authorization?: string | undefined;
2205
+ };
2206
+ readonly payload: {
2207
+ readonly ownerUserId?: string | undefined;
2208
+ readonly cols: number;
2209
+ readonly rows: number;
2210
+ };
2211
+ readonly responseMode?: Mode;
2212
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
2213
+ readonly ok: boolean;
2214
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadGatewayError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionConflictError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
2215
+ readonly sendSessionInput: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2216
+ readonly params: {
2217
+ readonly sessionId: string;
2218
+ };
2219
+ readonly headers: {
2220
+ readonly authorization?: string | undefined;
2221
+ };
2222
+ readonly payload: {
2223
+ readonly ownerUserId?: string | undefined;
2224
+ readonly dataBase64: string;
2225
+ };
2226
+ readonly responseMode?: Mode;
2227
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
2228
+ readonly ok: boolean;
2229
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadGatewayError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionConflictError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
2230
+ readonly signalSession: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2231
+ readonly params: {
2232
+ readonly sessionId: string;
2233
+ };
2234
+ readonly headers: {
2235
+ readonly authorization?: string | undefined;
2236
+ };
2237
+ readonly payload: {
2238
+ readonly ownerUserId?: string | undefined;
2239
+ readonly signal: number;
2240
+ };
2241
+ readonly responseMode?: Mode;
2242
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
2243
+ readonly ok: boolean;
2244
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SessionBadGatewayError | import("@sealant/api-contracts").SessionBadRequestError | import("@sealant/api-contracts").SessionConflictError | import("@sealant/api-contracts").SessionForbiddenError | import("@sealant/api-contracts").SessionInternalServerError | import("@sealant/api-contracts").SessionNotFoundError | import("@sealant/api-contracts").SessionUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
2245
+ };
1599
2246
  readonly sshKeys: {
1600
2247
  readonly archiveSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1601
2248
  readonly params: {
@@ -1718,12 +2365,13 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1718
2365
  readonly github?: string | undefined;
1719
2366
  } | undefined;
1720
2367
  readonly spec: unknown;
2368
+ readonly ttlSeconds?: number | undefined;
1721
2369
  };
1722
2370
  readonly responseMode?: Mode;
1723
2371
  }) => Effect.Effect<HttpApiClient.Client.Response<{
1724
2372
  readonly workspaceId: string;
1725
2373
  readonly name: string;
1726
- readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
2374
+ readonly status: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped";
1727
2375
  readonly registryId: string;
1728
2376
  readonly repository: string;
1729
2377
  readonly tag: string;
@@ -1750,6 +2398,14 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1750
2398
  readonly mode: "interactive" | "one-shot";
1751
2399
  readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
1752
2400
  readonly prompt?: string | undefined;
2401
+ readonly command?: {
2402
+ readonly executable: string;
2403
+ readonly args: readonly string[];
2404
+ readonly cwd?: string | undefined;
2405
+ } | undefined;
2406
+ readonly metadata?: {
2407
+ readonly [x: string]: unknown;
2408
+ } | undefined;
1753
2409
  readonly exitCode?: number | undefined;
1754
2410
  readonly errorMessage?: string | undefined;
1755
2411
  readonly startedAt?: string | undefined;
@@ -1757,6 +2413,19 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1757
2413
  readonly createdAt: string;
1758
2414
  readonly updatedAt: string;
1759
2415
  }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceBadRequestError | import("@sealant/api-contracts").WorkspaceConflictError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError), [Mode] extends ["response-only"] ? never : never>;
2416
+ readonly expireWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2417
+ readonly params: {
2418
+ readonly workspaceId: string;
2419
+ };
2420
+ readonly payload: {
2421
+ readonly ownerUserId: string;
2422
+ readonly ttlSeconds?: number | null | undefined;
2423
+ };
2424
+ readonly responseMode?: Mode;
2425
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
2426
+ readonly workspaceId: string;
2427
+ readonly expiresAt: string | null;
2428
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceBadRequestError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError), [Mode] extends ["response-only"] ? never : never>;
1760
2429
  readonly getWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1761
2430
  readonly params: {
1762
2431
  readonly workspaceId: string;
@@ -1766,7 +2435,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1766
2435
  readonly workspaceId: string;
1767
2436
  readonly name: string;
1768
2437
  readonly ownerUserId: string;
1769
- readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
2438
+ readonly status: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped";
1770
2439
  readonly registryId?: string | undefined;
1771
2440
  readonly repository?: string | undefined;
1772
2441
  readonly tag?: string | undefined;
@@ -1790,6 +2459,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1790
2459
  readonly updatedAt: string;
1791
2460
  readonly startedAt?: string | undefined;
1792
2461
  readonly finishedAt?: string | undefined;
2462
+ readonly expiresAt?: string | undefined;
1793
2463
  readonly spec?: unknown;
1794
2464
  }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError), [Mode] extends ["response-only"] ? never : never>;
1795
2465
  readonly getWorkspaceSshTarget: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
@@ -1824,7 +2494,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1824
2494
  readonly items: readonly {
1825
2495
  readonly attemptId: string;
1826
2496
  readonly relation: "launch" | "rebuild" | "resume" | "retry";
1827
- readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
2497
+ readonly status: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped";
1828
2498
  readonly triggerType: "api" | "manual" | "retry" | "schedule";
1829
2499
  readonly triggerRef?: string | undefined;
1830
2500
  readonly runtime?: {
@@ -1875,7 +2545,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1875
2545
  readonly listWorkspaces: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1876
2546
  readonly query: {
1877
2547
  readonly ownerUserId: string;
1878
- readonly status?: "cancelled" | "failed" | "queued" | "ready" | "running" | undefined;
2548
+ readonly status?: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped" | undefined;
1879
2549
  readonly limit?: string | undefined;
1880
2550
  };
1881
2551
  readonly responseMode?: Mode;
@@ -1884,7 +2554,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1884
2554
  readonly workspaceId: string;
1885
2555
  readonly name: string;
1886
2556
  readonly ownerUserId: string;
1887
- readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
2557
+ readonly status: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped";
1888
2558
  readonly registryId?: string | undefined;
1889
2559
  readonly repository?: string | undefined;
1890
2560
  readonly tag?: string | undefined;
@@ -1908,6 +2578,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1908
2578
  readonly updatedAt: string;
1909
2579
  readonly startedAt?: string | undefined;
1910
2580
  readonly finishedAt?: string | undefined;
2581
+ readonly expiresAt?: string | undefined;
1911
2582
  }[];
1912
2583
  }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceBadRequestError | import("@sealant/api-contracts").WorkspaceInternalServerError), [Mode] extends ["response-only"] ? never : never>;
1913
2584
  readonly renameWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
@@ -1923,6 +2594,31 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
1923
2594
  readonly name: string;
1924
2595
  readonly updatedAt: string;
1925
2596
  }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError), [Mode] extends ["response-only"] ? never : never>;
2597
+ readonly restartWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2598
+ readonly params: {
2599
+ readonly workspaceId: string;
2600
+ };
2601
+ readonly payload: {
2602
+ readonly ownerUserId: string;
2603
+ };
2604
+ readonly responseMode?: Mode;
2605
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
2606
+ readonly workspaceId: string;
2607
+ readonly runId: string;
2608
+ readonly status: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped";
2609
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceBadGatewayError | import("@sealant/api-contracts").WorkspaceBadRequestError | import("@sealant/api-contracts").WorkspaceConflictError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError), [Mode] extends ["response-only"] ? never : never>;
2610
+ readonly stopWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2611
+ readonly params: {
2612
+ readonly workspaceId: string;
2613
+ };
2614
+ readonly payload: {
2615
+ readonly ownerUserId: string;
2616
+ };
2617
+ readonly responseMode?: Mode;
2618
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
2619
+ readonly workspaceId: string;
2620
+ readonly status: "cancelled" | "failed" | "queued" | "ready" | "running" | "stopped";
2621
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceBadGatewayError | import("@sealant/api-contracts").WorkspaceBadRequestError | import("@sealant/api-contracts").WorkspaceConflictError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError), [Mode] extends ["response-only"] ? never : never>;
1926
2622
  };
1927
2623
  }>;
1928
2624
  export declare class SealantApiClient extends SealantApiClient_base {