@sealant/sdk 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -12
- package/dist/client.d.ts +12 -7
- package/dist/client.js +33 -21
- package/dist/effect/api-client.d.ts +408 -250
- package/dist/effect/exec-workspace.d.ts +5 -0
- package/dist/effect/exec-workspace.js +60 -0
- package/dist/effect/index.d.ts +27 -0
- package/dist/effect/index.js +31 -0
- package/dist/effect/operations.d.ts +90 -22
- package/dist/effect/operations.js +7 -4
- package/dist/effect/run-harness.d.ts +2 -2
- package/dist/effect/run-harness.js +4 -4
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +1 -1
- package/dist/facade/record.d.ts +17 -1
- package/dist/facade/record.js +17 -3
- package/dist/facade/run.d.ts +1 -1
- package/dist/facade/{sandbox.d.ts → workspace.d.ts} +6 -6
- package/dist/facade/{sandbox.js → workspace.js} +19 -17
- package/dist/harness.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/internal/blueprint.d.ts +1 -1
- package/dist/internal/blueprint.js +8 -8
- package/dist/internal/config.d.ts +2 -2
- package/dist/internal/credentials.d.ts +7 -7
- package/dist/internal/credentials.js +2 -2
- package/dist/internal/inference.d.ts +47 -0
- package/dist/internal/inference.js +78 -0
- package/dist/internal/map-error.d.ts +1 -1
- package/dist/internal/map-error.js +1 -1
- package/dist/types.d.ts +310 -39
- package/dist/types.js +2 -2
- package/package.json +7 -3
|
@@ -183,6 +183,56 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
183
183
|
readonly syncedAt: string;
|
|
184
184
|
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").GitHubForbiddenError | import("@sealant/api-contracts").GitHubInternalServerError | import("@sealant/api-contracts").GitHubNotFoundError | import("@sealant/api-contracts").GitHubServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
185
185
|
};
|
|
186
|
+
readonly inference: {
|
|
187
|
+
readonly respond: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
188
|
+
readonly payload: {
|
|
189
|
+
readonly ownerUserId: string;
|
|
190
|
+
readonly credentials?: {
|
|
191
|
+
readonly profileId?: string | undefined;
|
|
192
|
+
readonly claude?: string | undefined;
|
|
193
|
+
readonly codex?: string | undefined;
|
|
194
|
+
} | undefined;
|
|
195
|
+
readonly prompt?: string | undefined;
|
|
196
|
+
readonly system?: string | undefined;
|
|
197
|
+
readonly model?: string | undefined;
|
|
198
|
+
readonly maxTurns?: number | undefined;
|
|
199
|
+
readonly tools?: readonly {
|
|
200
|
+
readonly name: string;
|
|
201
|
+
readonly description?: string | undefined;
|
|
202
|
+
readonly inputSchema: unknown;
|
|
203
|
+
}[] | undefined;
|
|
204
|
+
readonly responseFormat?: {
|
|
205
|
+
readonly type: "json";
|
|
206
|
+
readonly schema?: unknown;
|
|
207
|
+
} | undefined;
|
|
208
|
+
readonly sessionId?: string | undefined;
|
|
209
|
+
readonly toolResults?: readonly {
|
|
210
|
+
readonly toolCallId: string;
|
|
211
|
+
readonly content: string;
|
|
212
|
+
readonly isError?: boolean | undefined;
|
|
213
|
+
}[] | undefined;
|
|
214
|
+
};
|
|
215
|
+
readonly responseMode?: Mode;
|
|
216
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
217
|
+
readonly sessionId: string;
|
|
218
|
+
readonly turn: {
|
|
219
|
+
readonly type: "text";
|
|
220
|
+
readonly text: string;
|
|
221
|
+
readonly json?: unknown;
|
|
222
|
+
} | {
|
|
223
|
+
readonly type: "toolCalls";
|
|
224
|
+
readonly calls: readonly {
|
|
225
|
+
readonly toolCallId: string;
|
|
226
|
+
readonly name: string;
|
|
227
|
+
readonly input: unknown;
|
|
228
|
+
}[];
|
|
229
|
+
};
|
|
230
|
+
readonly usage?: {
|
|
231
|
+
readonly inputTokens: number;
|
|
232
|
+
readonly outputTokens: number;
|
|
233
|
+
} | undefined;
|
|
234
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").InferenceBadRequestError | import("@sealant/api-contracts").InferenceConflictError | import("@sealant/api-contracts").InferenceInternalServerError | import("@sealant/api-contracts").InferenceNotFoundError | import("@sealant/api-contracts").InferenceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
235
|
+
};
|
|
186
236
|
readonly packages: {
|
|
187
237
|
readonly resolvePackage: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
188
238
|
readonly query: {
|
|
@@ -378,7 +428,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
378
428
|
readonly runs: {
|
|
379
429
|
readonly createRun: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
380
430
|
readonly payload: {
|
|
381
|
-
readonly
|
|
431
|
+
readonly workspaceId: string;
|
|
382
432
|
readonly harnessId: string;
|
|
383
433
|
readonly ownerUserId: string;
|
|
384
434
|
readonly mode?: "interactive" | "one-shot" | undefined;
|
|
@@ -393,7 +443,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
393
443
|
readonly responseMode?: Mode;
|
|
394
444
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
395
445
|
readonly runId: string;
|
|
396
|
-
readonly
|
|
446
|
+
readonly workspaceId: string;
|
|
397
447
|
readonly attemptId?: string | undefined;
|
|
398
448
|
readonly ownerUserId: string;
|
|
399
449
|
readonly harnessId: string;
|
|
@@ -414,7 +464,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
414
464
|
readonly responseMode?: Mode;
|
|
415
465
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
416
466
|
readonly runId: string;
|
|
417
|
-
readonly
|
|
467
|
+
readonly workspaceId: string;
|
|
418
468
|
readonly attemptId?: string | undefined;
|
|
419
469
|
readonly ownerUserId: string;
|
|
420
470
|
readonly harnessId: string;
|
|
@@ -527,7 +577,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
527
577
|
}, 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>;
|
|
528
578
|
readonly listRuns: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
529
579
|
readonly query: {
|
|
530
|
-
readonly
|
|
580
|
+
readonly workspaceId?: string | undefined;
|
|
531
581
|
readonly ownerUserId?: string | undefined;
|
|
532
582
|
readonly status?: "cancelled" | "completed" | "failed" | "queued" | "running" | undefined;
|
|
533
583
|
readonly limit?: string | undefined;
|
|
@@ -536,7 +586,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
536
586
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
537
587
|
readonly items: readonly {
|
|
538
588
|
readonly runId: string;
|
|
539
|
-
readonly
|
|
589
|
+
readonly workspaceId: string;
|
|
540
590
|
readonly attemptId?: string | undefined;
|
|
541
591
|
readonly ownerUserId: string;
|
|
542
592
|
readonly harnessId: string;
|
|
@@ -569,7 +619,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
569
619
|
readonly responseMode?: Mode;
|
|
570
620
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
571
621
|
readonly runId: string;
|
|
572
|
-
readonly
|
|
622
|
+
readonly workspaceId: string;
|
|
573
623
|
readonly attemptId?: string | undefined;
|
|
574
624
|
readonly ownerUserId: string;
|
|
575
625
|
readonly harnessId: string;
|
|
@@ -584,8 +634,100 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
584
634
|
readonly updatedAt: string;
|
|
585
635
|
}, 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>;
|
|
586
636
|
};
|
|
587
|
-
readonly
|
|
588
|
-
readonly
|
|
637
|
+
readonly sshKeys: {
|
|
638
|
+
readonly archiveSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
639
|
+
readonly params: {
|
|
640
|
+
readonly sshKeyId: string;
|
|
641
|
+
};
|
|
642
|
+
readonly query: {
|
|
643
|
+
readonly ownerUserId: string;
|
|
644
|
+
};
|
|
645
|
+
readonly responseMode?: Mode;
|
|
646
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
647
|
+
readonly sshKeyId: string;
|
|
648
|
+
readonly ownerUserId: string;
|
|
649
|
+
readonly name: string;
|
|
650
|
+
readonly algorithm: string;
|
|
651
|
+
readonly fingerprint: string;
|
|
652
|
+
readonly createdAt: string;
|
|
653
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError), [Mode] extends ["response-only"] ? never : never>;
|
|
654
|
+
readonly createSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
655
|
+
readonly payload: {
|
|
656
|
+
readonly ownerUserId: string;
|
|
657
|
+
readonly name?: string | undefined;
|
|
658
|
+
readonly publicKey: string;
|
|
659
|
+
};
|
|
660
|
+
readonly responseMode?: Mode;
|
|
661
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
662
|
+
readonly sshKeyId: string;
|
|
663
|
+
readonly ownerUserId: string;
|
|
664
|
+
readonly name: string;
|
|
665
|
+
readonly algorithm: string;
|
|
666
|
+
readonly fingerprint: string;
|
|
667
|
+
readonly createdAt: string;
|
|
668
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyBadRequestError | import("@sealant/api-contracts").SshKeyConflictError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError), [Mode] extends ["response-only"] ? never : never>;
|
|
669
|
+
readonly listSshKeys: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
670
|
+
readonly query: {
|
|
671
|
+
readonly ownerUserId: string;
|
|
672
|
+
};
|
|
673
|
+
readonly responseMode?: Mode;
|
|
674
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
675
|
+
readonly items: readonly {
|
|
676
|
+
readonly sshKeyId: string;
|
|
677
|
+
readonly ownerUserId: string;
|
|
678
|
+
readonly name: string;
|
|
679
|
+
readonly algorithm: string;
|
|
680
|
+
readonly fingerprint: string;
|
|
681
|
+
readonly createdAt: string;
|
|
682
|
+
}[];
|
|
683
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
684
|
+
readonly resolveSshPrincipal: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
685
|
+
readonly headers: {
|
|
686
|
+
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
687
|
+
};
|
|
688
|
+
readonly payload: {
|
|
689
|
+
readonly algo: string;
|
|
690
|
+
readonly publicKeyBase64: string;
|
|
691
|
+
};
|
|
692
|
+
readonly responseMode?: Mode;
|
|
693
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
694
|
+
readonly principalId: string;
|
|
695
|
+
readonly sshKeyId: string;
|
|
696
|
+
readonly fingerprint: string;
|
|
697
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError | import("@sealant/api-contracts").SshKeyServiceUnavailableError | import("@sealant/api-contracts").SshKeyUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
|
|
698
|
+
};
|
|
699
|
+
readonly system: {
|
|
700
|
+
readonly getIndex: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
701
|
+
readonly responseMode?: Mode;
|
|
702
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
703
|
+
readonly name: string;
|
|
704
|
+
readonly version: string;
|
|
705
|
+
readonly docsPath: string;
|
|
706
|
+
readonly openApiPath: string;
|
|
707
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
708
|
+
readonly getSetupState: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
709
|
+
readonly responseMode?: Mode;
|
|
710
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
711
|
+
readonly needsSetup: boolean;
|
|
712
|
+
readonly sshGateway: {
|
|
713
|
+
readonly host: string;
|
|
714
|
+
readonly port: number;
|
|
715
|
+
readonly usernamePrefix: string;
|
|
716
|
+
} | null;
|
|
717
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SystemInternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
718
|
+
readonly health: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
719
|
+
readonly responseMode?: Mode;
|
|
720
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
721
|
+
readonly status: "ok";
|
|
722
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
723
|
+
readonly ready: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
724
|
+
readonly responseMode?: Mode;
|
|
725
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
726
|
+
readonly status: "ok";
|
|
727
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
728
|
+
};
|
|
729
|
+
readonly workspaces: {
|
|
730
|
+
readonly createWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
589
731
|
readonly headers: {
|
|
590
732
|
readonly "idempotency-key"?: string | undefined;
|
|
591
733
|
};
|
|
@@ -617,20 +759,49 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
617
759
|
};
|
|
618
760
|
readonly responseMode?: Mode;
|
|
619
761
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
620
|
-
readonly
|
|
762
|
+
readonly workspaceId: string;
|
|
621
763
|
readonly name: string;
|
|
622
764
|
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
623
765
|
readonly registryId: string;
|
|
624
766
|
readonly repository: string;
|
|
625
767
|
readonly tag: string;
|
|
626
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
627
|
-
readonly
|
|
768
|
+
}, 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").WorkspaceForbiddenError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError | import("@sealant/api-contracts").WorkspaceServiceUnavailableError), [Mode] extends ["response-only"] ? never : never>;
|
|
769
|
+
readonly execWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
770
|
+
readonly params: {
|
|
771
|
+
readonly workspaceId: string;
|
|
772
|
+
};
|
|
773
|
+
readonly payload: {
|
|
774
|
+
readonly ownerUserId: string;
|
|
775
|
+
readonly commands: readonly {
|
|
776
|
+
readonly executable: string;
|
|
777
|
+
readonly args: readonly string[];
|
|
778
|
+
readonly cwd?: string | undefined;
|
|
779
|
+
}[];
|
|
780
|
+
};
|
|
781
|
+
readonly responseMode?: Mode;
|
|
782
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
783
|
+
readonly runId: string;
|
|
784
|
+
readonly workspaceId: string;
|
|
785
|
+
readonly attemptId?: string | undefined;
|
|
786
|
+
readonly ownerUserId: string;
|
|
787
|
+
readonly harnessId: string;
|
|
788
|
+
readonly mode: "interactive" | "one-shot";
|
|
789
|
+
readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
|
|
790
|
+
readonly prompt?: string | undefined;
|
|
791
|
+
readonly exitCode?: number | undefined;
|
|
792
|
+
readonly errorMessage?: string | undefined;
|
|
793
|
+
readonly startedAt?: string | undefined;
|
|
794
|
+
readonly finishedAt?: string | undefined;
|
|
795
|
+
readonly createdAt: string;
|
|
796
|
+
readonly updatedAt: string;
|
|
797
|
+
}, 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>;
|
|
798
|
+
readonly getWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
628
799
|
readonly params: {
|
|
629
|
-
readonly
|
|
800
|
+
readonly workspaceId: string;
|
|
630
801
|
};
|
|
631
802
|
readonly responseMode?: Mode;
|
|
632
803
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
633
|
-
readonly
|
|
804
|
+
readonly workspaceId: string;
|
|
634
805
|
readonly name: string;
|
|
635
806
|
readonly ownerUserId: string;
|
|
636
807
|
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
@@ -658,10 +829,10 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
658
829
|
readonly startedAt?: string | undefined;
|
|
659
830
|
readonly finishedAt?: string | undefined;
|
|
660
831
|
readonly spec?: unknown;
|
|
661
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
662
|
-
readonly
|
|
832
|
+
}, 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
|
+
readonly getWorkspaceSshTarget: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
663
834
|
readonly params: {
|
|
664
|
-
readonly
|
|
835
|
+
readonly workspaceId: string;
|
|
665
836
|
};
|
|
666
837
|
readonly headers: {
|
|
667
838
|
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
@@ -669,7 +840,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
669
840
|
};
|
|
670
841
|
readonly responseMode?: Mode;
|
|
671
842
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
672
|
-
readonly
|
|
843
|
+
readonly workspaceId: string;
|
|
673
844
|
readonly attemptId: string;
|
|
674
845
|
readonly runtime: {
|
|
675
846
|
readonly adapter: "docker" | "k3s" | "k8s";
|
|
@@ -678,10 +849,10 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
678
849
|
readonly status: "failed" | "pending" | "ready" | "running" | "stopped";
|
|
679
850
|
readonly endpoint: string;
|
|
680
851
|
};
|
|
681
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
682
|
-
readonly
|
|
852
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceConflictError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError | import("@sealant/api-contracts").WorkspaceServiceUnavailableError | import("@sealant/api-contracts").WorkspaceUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
|
|
853
|
+
readonly listWorkspaceAttempts: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
683
854
|
readonly params: {
|
|
684
|
-
readonly
|
|
855
|
+
readonly workspaceId: string;
|
|
685
856
|
};
|
|
686
857
|
readonly query: {
|
|
687
858
|
readonly limit?: string | undefined;
|
|
@@ -719,10 +890,10 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
719
890
|
readonly finishedAt?: string | undefined;
|
|
720
891
|
readonly durationMs?: number | undefined;
|
|
721
892
|
}[];
|
|
722
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
723
|
-
readonly
|
|
893
|
+
}, 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>;
|
|
894
|
+
readonly listWorkspaceEvents: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
724
895
|
readonly params: {
|
|
725
|
-
readonly
|
|
896
|
+
readonly workspaceId: string;
|
|
726
897
|
};
|
|
727
898
|
readonly query: {
|
|
728
899
|
readonly limit?: string | undefined;
|
|
@@ -731,15 +902,15 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
731
902
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
732
903
|
readonly items: readonly {
|
|
733
904
|
readonly eventId: string;
|
|
734
|
-
readonly
|
|
905
|
+
readonly workspaceId: string;
|
|
735
906
|
readonly attemptId?: string | undefined;
|
|
736
|
-
readonly type: "attempt.cancelled" | "attempt.failed" | "attempt.queued" | "attempt.running" | "attempt.succeeded" | "image.published" | "runtime.failed" | "runtime.pending" | "runtime.ready" | "runtime.running" | "runtime.stopped" | "
|
|
907
|
+
readonly type: "attempt.cancelled" | "attempt.failed" | "attempt.queued" | "attempt.running" | "attempt.succeeded" | "image.published" | "runtime.failed" | "runtime.pending" | "runtime.ready" | "runtime.running" | "runtime.stopped" | "workspace.created";
|
|
737
908
|
readonly occurredAt: string;
|
|
738
909
|
readonly message?: string | undefined;
|
|
739
910
|
readonly data?: unknown;
|
|
740
911
|
}[];
|
|
741
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
742
|
-
readonly
|
|
912
|
+
}, 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>;
|
|
913
|
+
readonly listWorkspaces: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
743
914
|
readonly query: {
|
|
744
915
|
readonly ownerUserId: string;
|
|
745
916
|
readonly status?: "cancelled" | "failed" | "queued" | "ready" | "running" | undefined;
|
|
@@ -748,7 +919,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
748
919
|
readonly responseMode?: Mode;
|
|
749
920
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
750
921
|
readonly items: readonly {
|
|
751
|
-
readonly
|
|
922
|
+
readonly workspaceId: string;
|
|
752
923
|
readonly name: string;
|
|
753
924
|
readonly ownerUserId: string;
|
|
754
925
|
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
@@ -776,112 +947,20 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
776
947
|
readonly startedAt?: string | undefined;
|
|
777
948
|
readonly finishedAt?: string | undefined;
|
|
778
949
|
}[];
|
|
779
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
780
|
-
readonly
|
|
950
|
+
}, 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
|
+
readonly renameWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
781
952
|
readonly params: {
|
|
782
|
-
readonly
|
|
953
|
+
readonly workspaceId: string;
|
|
783
954
|
};
|
|
784
955
|
readonly payload: {
|
|
785
956
|
readonly name: string;
|
|
786
957
|
};
|
|
787
958
|
readonly responseMode?: Mode;
|
|
788
959
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
789
|
-
readonly
|
|
960
|
+
readonly workspaceId: string;
|
|
790
961
|
readonly name: string;
|
|
791
962
|
readonly updatedAt: string;
|
|
792
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
793
|
-
};
|
|
794
|
-
readonly sshKeys: {
|
|
795
|
-
readonly archiveSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
796
|
-
readonly params: {
|
|
797
|
-
readonly sshKeyId: string;
|
|
798
|
-
};
|
|
799
|
-
readonly query: {
|
|
800
|
-
readonly ownerUserId: string;
|
|
801
|
-
};
|
|
802
|
-
readonly responseMode?: Mode;
|
|
803
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
804
|
-
readonly sshKeyId: string;
|
|
805
|
-
readonly ownerUserId: string;
|
|
806
|
-
readonly name: string;
|
|
807
|
-
readonly algorithm: string;
|
|
808
|
-
readonly fingerprint: string;
|
|
809
|
-
readonly createdAt: string;
|
|
810
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError), [Mode] extends ["response-only"] ? never : never>;
|
|
811
|
-
readonly createSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
812
|
-
readonly payload: {
|
|
813
|
-
readonly ownerUserId: string;
|
|
814
|
-
readonly name?: string | undefined;
|
|
815
|
-
readonly publicKey: string;
|
|
816
|
-
};
|
|
817
|
-
readonly responseMode?: Mode;
|
|
818
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
819
|
-
readonly sshKeyId: string;
|
|
820
|
-
readonly ownerUserId: string;
|
|
821
|
-
readonly name: string;
|
|
822
|
-
readonly algorithm: string;
|
|
823
|
-
readonly fingerprint: string;
|
|
824
|
-
readonly createdAt: string;
|
|
825
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyBadRequestError | import("@sealant/api-contracts").SshKeyConflictError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError), [Mode] extends ["response-only"] ? never : never>;
|
|
826
|
-
readonly listSshKeys: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
827
|
-
readonly query: {
|
|
828
|
-
readonly ownerUserId: string;
|
|
829
|
-
};
|
|
830
|
-
readonly responseMode?: Mode;
|
|
831
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
832
|
-
readonly items: readonly {
|
|
833
|
-
readonly sshKeyId: string;
|
|
834
|
-
readonly ownerUserId: string;
|
|
835
|
-
readonly name: string;
|
|
836
|
-
readonly algorithm: string;
|
|
837
|
-
readonly fingerprint: string;
|
|
838
|
-
readonly createdAt: string;
|
|
839
|
-
}[];
|
|
840
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
841
|
-
readonly resolveSshPrincipal: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
842
|
-
readonly headers: {
|
|
843
|
-
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
844
|
-
};
|
|
845
|
-
readonly payload: {
|
|
846
|
-
readonly algo: string;
|
|
847
|
-
readonly publicKeyBase64: string;
|
|
848
|
-
};
|
|
849
|
-
readonly responseMode?: Mode;
|
|
850
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
851
|
-
readonly principalId: string;
|
|
852
|
-
readonly sshKeyId: string;
|
|
853
|
-
readonly fingerprint: string;
|
|
854
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError | import("@sealant/api-contracts").SshKeyServiceUnavailableError | import("@sealant/api-contracts").SshKeyUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
|
|
855
|
-
};
|
|
856
|
-
readonly system: {
|
|
857
|
-
readonly getIndex: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
858
|
-
readonly responseMode?: Mode;
|
|
859
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
860
|
-
readonly name: string;
|
|
861
|
-
readonly version: string;
|
|
862
|
-
readonly docsPath: string;
|
|
863
|
-
readonly openApiPath: string;
|
|
864
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
865
|
-
readonly getSetupState: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
866
|
-
readonly responseMode?: Mode;
|
|
867
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
868
|
-
readonly needsSetup: boolean;
|
|
869
|
-
readonly sshGateway: {
|
|
870
|
-
readonly host: string;
|
|
871
|
-
readonly port: number;
|
|
872
|
-
readonly usernamePrefix: string;
|
|
873
|
-
} | null;
|
|
874
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SystemInternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
875
|
-
readonly health: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
876
|
-
readonly responseMode?: Mode;
|
|
877
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
878
|
-
readonly status: "ok";
|
|
879
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
880
|
-
readonly ready: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
881
|
-
readonly responseMode?: Mode;
|
|
882
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
883
|
-
readonly status: "ok";
|
|
884
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
963
|
+
}, 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>;
|
|
885
964
|
};
|
|
886
965
|
}, never, HttpClient.HttpClient>;
|
|
887
966
|
/** The fully-typed control-plane client, derived from the `@sealant/api-contracts` HttpApi. */
|
|
@@ -1066,6 +1145,56 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1066
1145
|
readonly syncedAt: string;
|
|
1067
1146
|
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").GitHubForbiddenError | import("@sealant/api-contracts").GitHubInternalServerError | import("@sealant/api-contracts").GitHubNotFoundError | import("@sealant/api-contracts").GitHubServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1068
1147
|
};
|
|
1148
|
+
readonly inference: {
|
|
1149
|
+
readonly respond: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1150
|
+
readonly payload: {
|
|
1151
|
+
readonly ownerUserId: string;
|
|
1152
|
+
readonly credentials?: {
|
|
1153
|
+
readonly profileId?: string | undefined;
|
|
1154
|
+
readonly claude?: string | undefined;
|
|
1155
|
+
readonly codex?: string | undefined;
|
|
1156
|
+
} | undefined;
|
|
1157
|
+
readonly prompt?: string | undefined;
|
|
1158
|
+
readonly system?: string | undefined;
|
|
1159
|
+
readonly model?: string | undefined;
|
|
1160
|
+
readonly maxTurns?: number | undefined;
|
|
1161
|
+
readonly tools?: readonly {
|
|
1162
|
+
readonly name: string;
|
|
1163
|
+
readonly description?: string | undefined;
|
|
1164
|
+
readonly inputSchema: unknown;
|
|
1165
|
+
}[] | undefined;
|
|
1166
|
+
readonly responseFormat?: {
|
|
1167
|
+
readonly type: "json";
|
|
1168
|
+
readonly schema?: unknown;
|
|
1169
|
+
} | undefined;
|
|
1170
|
+
readonly sessionId?: string | undefined;
|
|
1171
|
+
readonly toolResults?: readonly {
|
|
1172
|
+
readonly toolCallId: string;
|
|
1173
|
+
readonly content: string;
|
|
1174
|
+
readonly isError?: boolean | undefined;
|
|
1175
|
+
}[] | undefined;
|
|
1176
|
+
};
|
|
1177
|
+
readonly responseMode?: Mode;
|
|
1178
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1179
|
+
readonly sessionId: string;
|
|
1180
|
+
readonly turn: {
|
|
1181
|
+
readonly type: "text";
|
|
1182
|
+
readonly text: string;
|
|
1183
|
+
readonly json?: unknown;
|
|
1184
|
+
} | {
|
|
1185
|
+
readonly type: "toolCalls";
|
|
1186
|
+
readonly calls: readonly {
|
|
1187
|
+
readonly toolCallId: string;
|
|
1188
|
+
readonly name: string;
|
|
1189
|
+
readonly input: unknown;
|
|
1190
|
+
}[];
|
|
1191
|
+
};
|
|
1192
|
+
readonly usage?: {
|
|
1193
|
+
readonly inputTokens: number;
|
|
1194
|
+
readonly outputTokens: number;
|
|
1195
|
+
} | undefined;
|
|
1196
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").InferenceBadRequestError | import("@sealant/api-contracts").InferenceConflictError | import("@sealant/api-contracts").InferenceInternalServerError | import("@sealant/api-contracts").InferenceNotFoundError | import("@sealant/api-contracts").InferenceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1197
|
+
};
|
|
1069
1198
|
readonly packages: {
|
|
1070
1199
|
readonly resolvePackage: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1071
1200
|
readonly query: {
|
|
@@ -1261,7 +1390,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1261
1390
|
readonly runs: {
|
|
1262
1391
|
readonly createRun: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1263
1392
|
readonly payload: {
|
|
1264
|
-
readonly
|
|
1393
|
+
readonly workspaceId: string;
|
|
1265
1394
|
readonly harnessId: string;
|
|
1266
1395
|
readonly ownerUserId: string;
|
|
1267
1396
|
readonly mode?: "interactive" | "one-shot" | undefined;
|
|
@@ -1276,7 +1405,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1276
1405
|
readonly responseMode?: Mode;
|
|
1277
1406
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1278
1407
|
readonly runId: string;
|
|
1279
|
-
readonly
|
|
1408
|
+
readonly workspaceId: string;
|
|
1280
1409
|
readonly attemptId?: string | undefined;
|
|
1281
1410
|
readonly ownerUserId: string;
|
|
1282
1411
|
readonly harnessId: string;
|
|
@@ -1297,7 +1426,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1297
1426
|
readonly responseMode?: Mode;
|
|
1298
1427
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1299
1428
|
readonly runId: string;
|
|
1300
|
-
readonly
|
|
1429
|
+
readonly workspaceId: string;
|
|
1301
1430
|
readonly attemptId?: string | undefined;
|
|
1302
1431
|
readonly ownerUserId: string;
|
|
1303
1432
|
readonly harnessId: string;
|
|
@@ -1410,7 +1539,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1410
1539
|
}, 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>;
|
|
1411
1540
|
readonly listRuns: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1412
1541
|
readonly query: {
|
|
1413
|
-
readonly
|
|
1542
|
+
readonly workspaceId?: string | undefined;
|
|
1414
1543
|
readonly ownerUserId?: string | undefined;
|
|
1415
1544
|
readonly status?: "cancelled" | "completed" | "failed" | "queued" | "running" | undefined;
|
|
1416
1545
|
readonly limit?: string | undefined;
|
|
@@ -1419,7 +1548,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1419
1548
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1420
1549
|
readonly items: readonly {
|
|
1421
1550
|
readonly runId: string;
|
|
1422
|
-
readonly
|
|
1551
|
+
readonly workspaceId: string;
|
|
1423
1552
|
readonly attemptId?: string | undefined;
|
|
1424
1553
|
readonly ownerUserId: string;
|
|
1425
1554
|
readonly harnessId: string;
|
|
@@ -1452,7 +1581,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1452
1581
|
readonly responseMode?: Mode;
|
|
1453
1582
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1454
1583
|
readonly runId: string;
|
|
1455
|
-
readonly
|
|
1584
|
+
readonly workspaceId: string;
|
|
1456
1585
|
readonly attemptId?: string | undefined;
|
|
1457
1586
|
readonly ownerUserId: string;
|
|
1458
1587
|
readonly harnessId: string;
|
|
@@ -1467,8 +1596,100 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1467
1596
|
readonly updatedAt: string;
|
|
1468
1597
|
}, 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>;
|
|
1469
1598
|
};
|
|
1470
|
-
readonly
|
|
1471
|
-
readonly
|
|
1599
|
+
readonly sshKeys: {
|
|
1600
|
+
readonly archiveSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1601
|
+
readonly params: {
|
|
1602
|
+
readonly sshKeyId: string;
|
|
1603
|
+
};
|
|
1604
|
+
readonly query: {
|
|
1605
|
+
readonly ownerUserId: string;
|
|
1606
|
+
};
|
|
1607
|
+
readonly responseMode?: Mode;
|
|
1608
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1609
|
+
readonly sshKeyId: string;
|
|
1610
|
+
readonly ownerUserId: string;
|
|
1611
|
+
readonly name: string;
|
|
1612
|
+
readonly algorithm: string;
|
|
1613
|
+
readonly fingerprint: string;
|
|
1614
|
+
readonly createdAt: string;
|
|
1615
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError), [Mode] extends ["response-only"] ? never : never>;
|
|
1616
|
+
readonly createSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1617
|
+
readonly payload: {
|
|
1618
|
+
readonly ownerUserId: string;
|
|
1619
|
+
readonly name?: string | undefined;
|
|
1620
|
+
readonly publicKey: string;
|
|
1621
|
+
};
|
|
1622
|
+
readonly responseMode?: Mode;
|
|
1623
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1624
|
+
readonly sshKeyId: string;
|
|
1625
|
+
readonly ownerUserId: string;
|
|
1626
|
+
readonly name: string;
|
|
1627
|
+
readonly algorithm: string;
|
|
1628
|
+
readonly fingerprint: string;
|
|
1629
|
+
readonly createdAt: string;
|
|
1630
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyBadRequestError | import("@sealant/api-contracts").SshKeyConflictError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError), [Mode] extends ["response-only"] ? never : never>;
|
|
1631
|
+
readonly listSshKeys: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1632
|
+
readonly query: {
|
|
1633
|
+
readonly ownerUserId: string;
|
|
1634
|
+
};
|
|
1635
|
+
readonly responseMode?: Mode;
|
|
1636
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1637
|
+
readonly items: readonly {
|
|
1638
|
+
readonly sshKeyId: string;
|
|
1639
|
+
readonly ownerUserId: string;
|
|
1640
|
+
readonly name: string;
|
|
1641
|
+
readonly algorithm: string;
|
|
1642
|
+
readonly fingerprint: string;
|
|
1643
|
+
readonly createdAt: string;
|
|
1644
|
+
}[];
|
|
1645
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1646
|
+
readonly resolveSshPrincipal: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1647
|
+
readonly headers: {
|
|
1648
|
+
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
1649
|
+
};
|
|
1650
|
+
readonly payload: {
|
|
1651
|
+
readonly algo: string;
|
|
1652
|
+
readonly publicKeyBase64: string;
|
|
1653
|
+
};
|
|
1654
|
+
readonly responseMode?: Mode;
|
|
1655
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1656
|
+
readonly principalId: string;
|
|
1657
|
+
readonly sshKeyId: string;
|
|
1658
|
+
readonly fingerprint: string;
|
|
1659
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError | import("@sealant/api-contracts").SshKeyServiceUnavailableError | import("@sealant/api-contracts").SshKeyUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
|
|
1660
|
+
};
|
|
1661
|
+
readonly system: {
|
|
1662
|
+
readonly getIndex: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1663
|
+
readonly responseMode?: Mode;
|
|
1664
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1665
|
+
readonly name: string;
|
|
1666
|
+
readonly version: string;
|
|
1667
|
+
readonly docsPath: string;
|
|
1668
|
+
readonly openApiPath: string;
|
|
1669
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1670
|
+
readonly getSetupState: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1671
|
+
readonly responseMode?: Mode;
|
|
1672
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1673
|
+
readonly needsSetup: boolean;
|
|
1674
|
+
readonly sshGateway: {
|
|
1675
|
+
readonly host: string;
|
|
1676
|
+
readonly port: number;
|
|
1677
|
+
readonly usernamePrefix: string;
|
|
1678
|
+
} | null;
|
|
1679
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SystemInternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1680
|
+
readonly health: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1681
|
+
readonly responseMode?: Mode;
|
|
1682
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1683
|
+
readonly status: "ok";
|
|
1684
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1685
|
+
readonly ready: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1686
|
+
readonly responseMode?: Mode;
|
|
1687
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1688
|
+
readonly status: "ok";
|
|
1689
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1690
|
+
};
|
|
1691
|
+
readonly workspaces: {
|
|
1692
|
+
readonly createWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1472
1693
|
readonly headers: {
|
|
1473
1694
|
readonly "idempotency-key"?: string | undefined;
|
|
1474
1695
|
};
|
|
@@ -1500,20 +1721,49 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1500
1721
|
};
|
|
1501
1722
|
readonly responseMode?: Mode;
|
|
1502
1723
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1503
|
-
readonly
|
|
1724
|
+
readonly workspaceId: string;
|
|
1504
1725
|
readonly name: string;
|
|
1505
1726
|
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
1506
1727
|
readonly registryId: string;
|
|
1507
1728
|
readonly repository: string;
|
|
1508
1729
|
readonly tag: string;
|
|
1509
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1510
|
-
readonly
|
|
1730
|
+
}, 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").WorkspaceForbiddenError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError | import("@sealant/api-contracts").WorkspaceServiceUnavailableError), [Mode] extends ["response-only"] ? never : never>;
|
|
1731
|
+
readonly execWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1732
|
+
readonly params: {
|
|
1733
|
+
readonly workspaceId: string;
|
|
1734
|
+
};
|
|
1735
|
+
readonly payload: {
|
|
1736
|
+
readonly ownerUserId: string;
|
|
1737
|
+
readonly commands: readonly {
|
|
1738
|
+
readonly executable: string;
|
|
1739
|
+
readonly args: readonly string[];
|
|
1740
|
+
readonly cwd?: string | undefined;
|
|
1741
|
+
}[];
|
|
1742
|
+
};
|
|
1743
|
+
readonly responseMode?: Mode;
|
|
1744
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1745
|
+
readonly runId: string;
|
|
1746
|
+
readonly workspaceId: string;
|
|
1747
|
+
readonly attemptId?: string | undefined;
|
|
1748
|
+
readonly ownerUserId: string;
|
|
1749
|
+
readonly harnessId: string;
|
|
1750
|
+
readonly mode: "interactive" | "one-shot";
|
|
1751
|
+
readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
|
|
1752
|
+
readonly prompt?: string | undefined;
|
|
1753
|
+
readonly exitCode?: number | undefined;
|
|
1754
|
+
readonly errorMessage?: string | undefined;
|
|
1755
|
+
readonly startedAt?: string | undefined;
|
|
1756
|
+
readonly finishedAt?: string | undefined;
|
|
1757
|
+
readonly createdAt: string;
|
|
1758
|
+
readonly updatedAt: string;
|
|
1759
|
+
}, 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>;
|
|
1760
|
+
readonly getWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1511
1761
|
readonly params: {
|
|
1512
|
-
readonly
|
|
1762
|
+
readonly workspaceId: string;
|
|
1513
1763
|
};
|
|
1514
1764
|
readonly responseMode?: Mode;
|
|
1515
1765
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1516
|
-
readonly
|
|
1766
|
+
readonly workspaceId: string;
|
|
1517
1767
|
readonly name: string;
|
|
1518
1768
|
readonly ownerUserId: string;
|
|
1519
1769
|
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
@@ -1541,10 +1791,10 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1541
1791
|
readonly startedAt?: string | undefined;
|
|
1542
1792
|
readonly finishedAt?: string | undefined;
|
|
1543
1793
|
readonly spec?: unknown;
|
|
1544
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1545
|
-
readonly
|
|
1794
|
+
}, 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
|
+
readonly getWorkspaceSshTarget: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1546
1796
|
readonly params: {
|
|
1547
|
-
readonly
|
|
1797
|
+
readonly workspaceId: string;
|
|
1548
1798
|
};
|
|
1549
1799
|
readonly headers: {
|
|
1550
1800
|
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
@@ -1552,7 +1802,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1552
1802
|
};
|
|
1553
1803
|
readonly responseMode?: Mode;
|
|
1554
1804
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1555
|
-
readonly
|
|
1805
|
+
readonly workspaceId: string;
|
|
1556
1806
|
readonly attemptId: string;
|
|
1557
1807
|
readonly runtime: {
|
|
1558
1808
|
readonly adapter: "docker" | "k3s" | "k8s";
|
|
@@ -1561,10 +1811,10 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1561
1811
|
readonly status: "failed" | "pending" | "ready" | "running" | "stopped";
|
|
1562
1812
|
readonly endpoint: string;
|
|
1563
1813
|
};
|
|
1564
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1565
|
-
readonly
|
|
1814
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").WorkspaceConflictError | import("@sealant/api-contracts").WorkspaceInternalServerError | import("@sealant/api-contracts").WorkspaceNotFoundError | import("@sealant/api-contracts").WorkspaceServiceUnavailableError | import("@sealant/api-contracts").WorkspaceUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
|
|
1815
|
+
readonly listWorkspaceAttempts: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1566
1816
|
readonly params: {
|
|
1567
|
-
readonly
|
|
1817
|
+
readonly workspaceId: string;
|
|
1568
1818
|
};
|
|
1569
1819
|
readonly query: {
|
|
1570
1820
|
readonly limit?: string | undefined;
|
|
@@ -1602,10 +1852,10 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1602
1852
|
readonly finishedAt?: string | undefined;
|
|
1603
1853
|
readonly durationMs?: number | undefined;
|
|
1604
1854
|
}[];
|
|
1605
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1606
|
-
readonly
|
|
1855
|
+
}, 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>;
|
|
1856
|
+
readonly listWorkspaceEvents: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1607
1857
|
readonly params: {
|
|
1608
|
-
readonly
|
|
1858
|
+
readonly workspaceId: string;
|
|
1609
1859
|
};
|
|
1610
1860
|
readonly query: {
|
|
1611
1861
|
readonly limit?: string | undefined;
|
|
@@ -1614,15 +1864,15 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1614
1864
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1615
1865
|
readonly items: readonly {
|
|
1616
1866
|
readonly eventId: string;
|
|
1617
|
-
readonly
|
|
1867
|
+
readonly workspaceId: string;
|
|
1618
1868
|
readonly attemptId?: string | undefined;
|
|
1619
|
-
readonly type: "attempt.cancelled" | "attempt.failed" | "attempt.queued" | "attempt.running" | "attempt.succeeded" | "image.published" | "runtime.failed" | "runtime.pending" | "runtime.ready" | "runtime.running" | "runtime.stopped" | "
|
|
1869
|
+
readonly type: "attempt.cancelled" | "attempt.failed" | "attempt.queued" | "attempt.running" | "attempt.succeeded" | "image.published" | "runtime.failed" | "runtime.pending" | "runtime.ready" | "runtime.running" | "runtime.stopped" | "workspace.created";
|
|
1620
1870
|
readonly occurredAt: string;
|
|
1621
1871
|
readonly message?: string | undefined;
|
|
1622
1872
|
readonly data?: unknown;
|
|
1623
1873
|
}[];
|
|
1624
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1625
|
-
readonly
|
|
1874
|
+
}, 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>;
|
|
1875
|
+
readonly listWorkspaces: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1626
1876
|
readonly query: {
|
|
1627
1877
|
readonly ownerUserId: string;
|
|
1628
1878
|
readonly status?: "cancelled" | "failed" | "queued" | "ready" | "running" | undefined;
|
|
@@ -1631,7 +1881,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1631
1881
|
readonly responseMode?: Mode;
|
|
1632
1882
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1633
1883
|
readonly items: readonly {
|
|
1634
|
-
readonly
|
|
1884
|
+
readonly workspaceId: string;
|
|
1635
1885
|
readonly name: string;
|
|
1636
1886
|
readonly ownerUserId: string;
|
|
1637
1887
|
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
@@ -1659,112 +1909,20 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1659
1909
|
readonly startedAt?: string | undefined;
|
|
1660
1910
|
readonly finishedAt?: string | undefined;
|
|
1661
1911
|
}[];
|
|
1662
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1663
|
-
readonly
|
|
1912
|
+
}, 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
|
+
readonly renameWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1664
1914
|
readonly params: {
|
|
1665
|
-
readonly
|
|
1915
|
+
readonly workspaceId: string;
|
|
1666
1916
|
};
|
|
1667
1917
|
readonly payload: {
|
|
1668
1918
|
readonly name: string;
|
|
1669
1919
|
};
|
|
1670
1920
|
readonly responseMode?: Mode;
|
|
1671
1921
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1672
|
-
readonly
|
|
1922
|
+
readonly workspaceId: string;
|
|
1673
1923
|
readonly name: string;
|
|
1674
1924
|
readonly updatedAt: string;
|
|
1675
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1676
|
-
};
|
|
1677
|
-
readonly sshKeys: {
|
|
1678
|
-
readonly archiveSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1679
|
-
readonly params: {
|
|
1680
|
-
readonly sshKeyId: string;
|
|
1681
|
-
};
|
|
1682
|
-
readonly query: {
|
|
1683
|
-
readonly ownerUserId: string;
|
|
1684
|
-
};
|
|
1685
|
-
readonly responseMode?: Mode;
|
|
1686
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1687
|
-
readonly sshKeyId: string;
|
|
1688
|
-
readonly ownerUserId: string;
|
|
1689
|
-
readonly name: string;
|
|
1690
|
-
readonly algorithm: string;
|
|
1691
|
-
readonly fingerprint: string;
|
|
1692
|
-
readonly createdAt: string;
|
|
1693
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError), [Mode] extends ["response-only"] ? never : never>;
|
|
1694
|
-
readonly createSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1695
|
-
readonly payload: {
|
|
1696
|
-
readonly ownerUserId: string;
|
|
1697
|
-
readonly name?: string | undefined;
|
|
1698
|
-
readonly publicKey: string;
|
|
1699
|
-
};
|
|
1700
|
-
readonly responseMode?: Mode;
|
|
1701
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1702
|
-
readonly sshKeyId: string;
|
|
1703
|
-
readonly ownerUserId: string;
|
|
1704
|
-
readonly name: string;
|
|
1705
|
-
readonly algorithm: string;
|
|
1706
|
-
readonly fingerprint: string;
|
|
1707
|
-
readonly createdAt: string;
|
|
1708
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyBadRequestError | import("@sealant/api-contracts").SshKeyConflictError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError), [Mode] extends ["response-only"] ? never : never>;
|
|
1709
|
-
readonly listSshKeys: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1710
|
-
readonly query: {
|
|
1711
|
-
readonly ownerUserId: string;
|
|
1712
|
-
};
|
|
1713
|
-
readonly responseMode?: Mode;
|
|
1714
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1715
|
-
readonly items: readonly {
|
|
1716
|
-
readonly sshKeyId: string;
|
|
1717
|
-
readonly ownerUserId: string;
|
|
1718
|
-
readonly name: string;
|
|
1719
|
-
readonly algorithm: string;
|
|
1720
|
-
readonly fingerprint: string;
|
|
1721
|
-
readonly createdAt: string;
|
|
1722
|
-
}[];
|
|
1723
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1724
|
-
readonly resolveSshPrincipal: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1725
|
-
readonly headers: {
|
|
1726
|
-
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
1727
|
-
};
|
|
1728
|
-
readonly payload: {
|
|
1729
|
-
readonly algo: string;
|
|
1730
|
-
readonly publicKeyBase64: string;
|
|
1731
|
-
};
|
|
1732
|
-
readonly responseMode?: Mode;
|
|
1733
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1734
|
-
readonly principalId: string;
|
|
1735
|
-
readonly sshKeyId: string;
|
|
1736
|
-
readonly fingerprint: string;
|
|
1737
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError | import("@sealant/api-contracts").SshKeyServiceUnavailableError | import("@sealant/api-contracts").SshKeyUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
|
|
1738
|
-
};
|
|
1739
|
-
readonly system: {
|
|
1740
|
-
readonly getIndex: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1741
|
-
readonly responseMode?: Mode;
|
|
1742
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1743
|
-
readonly name: string;
|
|
1744
|
-
readonly version: string;
|
|
1745
|
-
readonly docsPath: string;
|
|
1746
|
-
readonly openApiPath: string;
|
|
1747
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1748
|
-
readonly getSetupState: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1749
|
-
readonly responseMode?: Mode;
|
|
1750
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1751
|
-
readonly needsSetup: boolean;
|
|
1752
|
-
readonly sshGateway: {
|
|
1753
|
-
readonly host: string;
|
|
1754
|
-
readonly port: number;
|
|
1755
|
-
readonly usernamePrefix: string;
|
|
1756
|
-
} | null;
|
|
1757
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SystemInternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1758
|
-
readonly health: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1759
|
-
readonly responseMode?: Mode;
|
|
1760
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1761
|
-
readonly status: "ok";
|
|
1762
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1763
|
-
readonly ready: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1764
|
-
readonly responseMode?: Mode;
|
|
1765
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1766
|
-
readonly status: "ok";
|
|
1767
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1925
|
+
}, 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>;
|
|
1768
1926
|
};
|
|
1769
1927
|
}>;
|
|
1770
1928
|
export declare class SealantApiClient extends SealantApiClient_base {
|