@sealant/sdk 0.3.1 → 0.4.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 +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/client.js +21 -21
- package/dist/effect/api-client.d.ts +250 -250
- package/dist/effect/operations.d.ts +14 -14
- package/dist/effect/operations.js +4 -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/run.d.ts +1 -1
- package/dist/facade/{sandbox.d.ts → workspace.d.ts} +6 -6
- package/dist/facade/{sandbox.js → workspace.js} +17 -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/map-error.d.ts +1 -1
- package/dist/internal/map-error.js +1 -1
- package/dist/types.d.ts +35 -35
- package/dist/types.js +2 -2
- package/package.json +3 -3
|
@@ -378,7 +378,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
378
378
|
readonly runs: {
|
|
379
379
|
readonly createRun: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
380
380
|
readonly payload: {
|
|
381
|
-
readonly
|
|
381
|
+
readonly workspaceId: string;
|
|
382
382
|
readonly harnessId: string;
|
|
383
383
|
readonly ownerUserId: string;
|
|
384
384
|
readonly mode?: "interactive" | "one-shot" | undefined;
|
|
@@ -393,7 +393,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
393
393
|
readonly responseMode?: Mode;
|
|
394
394
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
395
395
|
readonly runId: string;
|
|
396
|
-
readonly
|
|
396
|
+
readonly workspaceId: string;
|
|
397
397
|
readonly attemptId?: string | undefined;
|
|
398
398
|
readonly ownerUserId: string;
|
|
399
399
|
readonly harnessId: string;
|
|
@@ -414,7 +414,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
414
414
|
readonly responseMode?: Mode;
|
|
415
415
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
416
416
|
readonly runId: string;
|
|
417
|
-
readonly
|
|
417
|
+
readonly workspaceId: string;
|
|
418
418
|
readonly attemptId?: string | undefined;
|
|
419
419
|
readonly ownerUserId: string;
|
|
420
420
|
readonly harnessId: string;
|
|
@@ -527,7 +527,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
527
527
|
}, 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
528
|
readonly listRuns: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
529
529
|
readonly query: {
|
|
530
|
-
readonly
|
|
530
|
+
readonly workspaceId?: string | undefined;
|
|
531
531
|
readonly ownerUserId?: string | undefined;
|
|
532
532
|
readonly status?: "cancelled" | "completed" | "failed" | "queued" | "running" | undefined;
|
|
533
533
|
readonly limit?: string | undefined;
|
|
@@ -536,7 +536,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
536
536
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
537
537
|
readonly items: readonly {
|
|
538
538
|
readonly runId: string;
|
|
539
|
-
readonly
|
|
539
|
+
readonly workspaceId: string;
|
|
540
540
|
readonly attemptId?: string | undefined;
|
|
541
541
|
readonly ownerUserId: string;
|
|
542
542
|
readonly harnessId: string;
|
|
@@ -569,7 +569,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
569
569
|
readonly responseMode?: Mode;
|
|
570
570
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
571
571
|
readonly runId: string;
|
|
572
|
-
readonly
|
|
572
|
+
readonly workspaceId: string;
|
|
573
573
|
readonly attemptId?: string | undefined;
|
|
574
574
|
readonly ownerUserId: string;
|
|
575
575
|
readonly harnessId: string;
|
|
@@ -584,8 +584,100 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
584
584
|
readonly updatedAt: string;
|
|
585
585
|
}, 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
586
|
};
|
|
587
|
-
readonly
|
|
588
|
-
readonly
|
|
587
|
+
readonly sshKeys: {
|
|
588
|
+
readonly archiveSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
589
|
+
readonly params: {
|
|
590
|
+
readonly sshKeyId: string;
|
|
591
|
+
};
|
|
592
|
+
readonly query: {
|
|
593
|
+
readonly ownerUserId: string;
|
|
594
|
+
};
|
|
595
|
+
readonly responseMode?: Mode;
|
|
596
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
597
|
+
readonly sshKeyId: string;
|
|
598
|
+
readonly ownerUserId: string;
|
|
599
|
+
readonly name: string;
|
|
600
|
+
readonly algorithm: string;
|
|
601
|
+
readonly fingerprint: string;
|
|
602
|
+
readonly createdAt: string;
|
|
603
|
+
}, 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>;
|
|
604
|
+
readonly createSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
605
|
+
readonly payload: {
|
|
606
|
+
readonly ownerUserId: string;
|
|
607
|
+
readonly name?: string | undefined;
|
|
608
|
+
readonly publicKey: string;
|
|
609
|
+
};
|
|
610
|
+
readonly responseMode?: Mode;
|
|
611
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
612
|
+
readonly sshKeyId: string;
|
|
613
|
+
readonly ownerUserId: string;
|
|
614
|
+
readonly name: string;
|
|
615
|
+
readonly algorithm: string;
|
|
616
|
+
readonly fingerprint: string;
|
|
617
|
+
readonly createdAt: string;
|
|
618
|
+
}, 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>;
|
|
619
|
+
readonly listSshKeys: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
620
|
+
readonly query: {
|
|
621
|
+
readonly ownerUserId: string;
|
|
622
|
+
};
|
|
623
|
+
readonly responseMode?: Mode;
|
|
624
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
625
|
+
readonly items: readonly {
|
|
626
|
+
readonly sshKeyId: string;
|
|
627
|
+
readonly ownerUserId: string;
|
|
628
|
+
readonly name: string;
|
|
629
|
+
readonly algorithm: string;
|
|
630
|
+
readonly fingerprint: string;
|
|
631
|
+
readonly createdAt: string;
|
|
632
|
+
}[];
|
|
633
|
+
}, 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>;
|
|
634
|
+
readonly resolveSshPrincipal: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
635
|
+
readonly headers: {
|
|
636
|
+
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
637
|
+
};
|
|
638
|
+
readonly payload: {
|
|
639
|
+
readonly algo: string;
|
|
640
|
+
readonly publicKeyBase64: string;
|
|
641
|
+
};
|
|
642
|
+
readonly responseMode?: Mode;
|
|
643
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
644
|
+
readonly principalId: string;
|
|
645
|
+
readonly sshKeyId: string;
|
|
646
|
+
readonly fingerprint: string;
|
|
647
|
+
}, 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>;
|
|
648
|
+
};
|
|
649
|
+
readonly system: {
|
|
650
|
+
readonly getIndex: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
651
|
+
readonly responseMode?: Mode;
|
|
652
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
653
|
+
readonly name: string;
|
|
654
|
+
readonly version: string;
|
|
655
|
+
readonly docsPath: string;
|
|
656
|
+
readonly openApiPath: string;
|
|
657
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
658
|
+
readonly getSetupState: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
659
|
+
readonly responseMode?: Mode;
|
|
660
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
661
|
+
readonly needsSetup: boolean;
|
|
662
|
+
readonly sshGateway: {
|
|
663
|
+
readonly host: string;
|
|
664
|
+
readonly port: number;
|
|
665
|
+
readonly usernamePrefix: string;
|
|
666
|
+
} | null;
|
|
667
|
+
}, 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>;
|
|
668
|
+
readonly health: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
669
|
+
readonly responseMode?: Mode;
|
|
670
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
671
|
+
readonly status: "ok";
|
|
672
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
673
|
+
readonly ready: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
674
|
+
readonly responseMode?: Mode;
|
|
675
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
676
|
+
readonly status: "ok";
|
|
677
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
678
|
+
};
|
|
679
|
+
readonly workspaces: {
|
|
680
|
+
readonly createWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
589
681
|
readonly headers: {
|
|
590
682
|
readonly "idempotency-key"?: string | undefined;
|
|
591
683
|
};
|
|
@@ -617,20 +709,20 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
617
709
|
};
|
|
618
710
|
readonly responseMode?: Mode;
|
|
619
711
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
620
|
-
readonly
|
|
712
|
+
readonly workspaceId: string;
|
|
621
713
|
readonly name: string;
|
|
622
714
|
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
623
715
|
readonly registryId: string;
|
|
624
716
|
readonly repository: string;
|
|
625
717
|
readonly tag: string;
|
|
626
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
627
|
-
readonly
|
|
718
|
+
}, 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>;
|
|
719
|
+
readonly getWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
628
720
|
readonly params: {
|
|
629
|
-
readonly
|
|
721
|
+
readonly workspaceId: string;
|
|
630
722
|
};
|
|
631
723
|
readonly responseMode?: Mode;
|
|
632
724
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
633
|
-
readonly
|
|
725
|
+
readonly workspaceId: string;
|
|
634
726
|
readonly name: string;
|
|
635
727
|
readonly ownerUserId: string;
|
|
636
728
|
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
@@ -658,10 +750,10 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
658
750
|
readonly startedAt?: string | undefined;
|
|
659
751
|
readonly finishedAt?: string | undefined;
|
|
660
752
|
readonly spec?: unknown;
|
|
661
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
662
|
-
readonly
|
|
753
|
+
}, 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>;
|
|
754
|
+
readonly getWorkspaceSshTarget: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
663
755
|
readonly params: {
|
|
664
|
-
readonly
|
|
756
|
+
readonly workspaceId: string;
|
|
665
757
|
};
|
|
666
758
|
readonly headers: {
|
|
667
759
|
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
@@ -669,7 +761,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
669
761
|
};
|
|
670
762
|
readonly responseMode?: Mode;
|
|
671
763
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
672
|
-
readonly
|
|
764
|
+
readonly workspaceId: string;
|
|
673
765
|
readonly attemptId: string;
|
|
674
766
|
readonly runtime: {
|
|
675
767
|
readonly adapter: "docker" | "k3s" | "k8s";
|
|
@@ -678,10 +770,10 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
678
770
|
readonly status: "failed" | "pending" | "ready" | "running" | "stopped";
|
|
679
771
|
readonly endpoint: string;
|
|
680
772
|
};
|
|
681
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
682
|
-
readonly
|
|
773
|
+
}, 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>;
|
|
774
|
+
readonly listWorkspaceAttempts: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
683
775
|
readonly params: {
|
|
684
|
-
readonly
|
|
776
|
+
readonly workspaceId: string;
|
|
685
777
|
};
|
|
686
778
|
readonly query: {
|
|
687
779
|
readonly limit?: string | undefined;
|
|
@@ -719,10 +811,10 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
719
811
|
readonly finishedAt?: string | undefined;
|
|
720
812
|
readonly durationMs?: number | undefined;
|
|
721
813
|
}[];
|
|
722
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
723
|
-
readonly
|
|
814
|
+
}, 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>;
|
|
815
|
+
readonly listWorkspaceEvents: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
724
816
|
readonly params: {
|
|
725
|
-
readonly
|
|
817
|
+
readonly workspaceId: string;
|
|
726
818
|
};
|
|
727
819
|
readonly query: {
|
|
728
820
|
readonly limit?: string | undefined;
|
|
@@ -731,15 +823,15 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
731
823
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
732
824
|
readonly items: readonly {
|
|
733
825
|
readonly eventId: string;
|
|
734
|
-
readonly
|
|
826
|
+
readonly workspaceId: string;
|
|
735
827
|
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" | "
|
|
828
|
+
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
829
|
readonly occurredAt: string;
|
|
738
830
|
readonly message?: string | undefined;
|
|
739
831
|
readonly data?: unknown;
|
|
740
832
|
}[];
|
|
741
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
742
|
-
readonly
|
|
833
|
+
}, 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>;
|
|
834
|
+
readonly listWorkspaces: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
743
835
|
readonly query: {
|
|
744
836
|
readonly ownerUserId: string;
|
|
745
837
|
readonly status?: "cancelled" | "failed" | "queued" | "ready" | "running" | undefined;
|
|
@@ -748,7 +840,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
748
840
|
readonly responseMode?: Mode;
|
|
749
841
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
750
842
|
readonly items: readonly {
|
|
751
|
-
readonly
|
|
843
|
+
readonly workspaceId: string;
|
|
752
844
|
readonly name: string;
|
|
753
845
|
readonly ownerUserId: string;
|
|
754
846
|
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
@@ -776,112 +868,20 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
776
868
|
readonly startedAt?: string | undefined;
|
|
777
869
|
readonly finishedAt?: string | undefined;
|
|
778
870
|
}[];
|
|
779
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
780
|
-
readonly
|
|
871
|
+
}, 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>;
|
|
872
|
+
readonly renameWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
781
873
|
readonly params: {
|
|
782
|
-
readonly
|
|
874
|
+
readonly workspaceId: string;
|
|
783
875
|
};
|
|
784
876
|
readonly payload: {
|
|
785
877
|
readonly name: string;
|
|
786
878
|
};
|
|
787
879
|
readonly responseMode?: Mode;
|
|
788
880
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
789
|
-
readonly
|
|
881
|
+
readonly workspaceId: string;
|
|
790
882
|
readonly name: string;
|
|
791
883
|
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>;
|
|
884
|
+
}, 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
885
|
};
|
|
886
886
|
}, never, HttpClient.HttpClient>;
|
|
887
887
|
/** The fully-typed control-plane client, derived from the `@sealant/api-contracts` HttpApi. */
|
|
@@ -1261,7 +1261,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1261
1261
|
readonly runs: {
|
|
1262
1262
|
readonly createRun: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1263
1263
|
readonly payload: {
|
|
1264
|
-
readonly
|
|
1264
|
+
readonly workspaceId: string;
|
|
1265
1265
|
readonly harnessId: string;
|
|
1266
1266
|
readonly ownerUserId: string;
|
|
1267
1267
|
readonly mode?: "interactive" | "one-shot" | undefined;
|
|
@@ -1276,7 +1276,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1276
1276
|
readonly responseMode?: Mode;
|
|
1277
1277
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1278
1278
|
readonly runId: string;
|
|
1279
|
-
readonly
|
|
1279
|
+
readonly workspaceId: string;
|
|
1280
1280
|
readonly attemptId?: string | undefined;
|
|
1281
1281
|
readonly ownerUserId: string;
|
|
1282
1282
|
readonly harnessId: string;
|
|
@@ -1297,7 +1297,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1297
1297
|
readonly responseMode?: Mode;
|
|
1298
1298
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1299
1299
|
readonly runId: string;
|
|
1300
|
-
readonly
|
|
1300
|
+
readonly workspaceId: string;
|
|
1301
1301
|
readonly attemptId?: string | undefined;
|
|
1302
1302
|
readonly ownerUserId: string;
|
|
1303
1303
|
readonly harnessId: string;
|
|
@@ -1410,7 +1410,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1410
1410
|
}, 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
1411
|
readonly listRuns: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1412
1412
|
readonly query: {
|
|
1413
|
-
readonly
|
|
1413
|
+
readonly workspaceId?: string | undefined;
|
|
1414
1414
|
readonly ownerUserId?: string | undefined;
|
|
1415
1415
|
readonly status?: "cancelled" | "completed" | "failed" | "queued" | "running" | undefined;
|
|
1416
1416
|
readonly limit?: string | undefined;
|
|
@@ -1419,7 +1419,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1419
1419
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1420
1420
|
readonly items: readonly {
|
|
1421
1421
|
readonly runId: string;
|
|
1422
|
-
readonly
|
|
1422
|
+
readonly workspaceId: string;
|
|
1423
1423
|
readonly attemptId?: string | undefined;
|
|
1424
1424
|
readonly ownerUserId: string;
|
|
1425
1425
|
readonly harnessId: string;
|
|
@@ -1452,7 +1452,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1452
1452
|
readonly responseMode?: Mode;
|
|
1453
1453
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1454
1454
|
readonly runId: string;
|
|
1455
|
-
readonly
|
|
1455
|
+
readonly workspaceId: string;
|
|
1456
1456
|
readonly attemptId?: string | undefined;
|
|
1457
1457
|
readonly ownerUserId: string;
|
|
1458
1458
|
readonly harnessId: string;
|
|
@@ -1467,8 +1467,100 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1467
1467
|
readonly updatedAt: string;
|
|
1468
1468
|
}, 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
1469
|
};
|
|
1470
|
-
readonly
|
|
1471
|
-
readonly
|
|
1470
|
+
readonly sshKeys: {
|
|
1471
|
+
readonly archiveSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1472
|
+
readonly params: {
|
|
1473
|
+
readonly sshKeyId: string;
|
|
1474
|
+
};
|
|
1475
|
+
readonly query: {
|
|
1476
|
+
readonly ownerUserId: string;
|
|
1477
|
+
};
|
|
1478
|
+
readonly responseMode?: Mode;
|
|
1479
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1480
|
+
readonly sshKeyId: string;
|
|
1481
|
+
readonly ownerUserId: string;
|
|
1482
|
+
readonly name: string;
|
|
1483
|
+
readonly algorithm: string;
|
|
1484
|
+
readonly fingerprint: string;
|
|
1485
|
+
readonly createdAt: string;
|
|
1486
|
+
}, 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>;
|
|
1487
|
+
readonly createSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1488
|
+
readonly payload: {
|
|
1489
|
+
readonly ownerUserId: string;
|
|
1490
|
+
readonly name?: string | undefined;
|
|
1491
|
+
readonly publicKey: string;
|
|
1492
|
+
};
|
|
1493
|
+
readonly responseMode?: Mode;
|
|
1494
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1495
|
+
readonly sshKeyId: string;
|
|
1496
|
+
readonly ownerUserId: string;
|
|
1497
|
+
readonly name: string;
|
|
1498
|
+
readonly algorithm: string;
|
|
1499
|
+
readonly fingerprint: string;
|
|
1500
|
+
readonly createdAt: string;
|
|
1501
|
+
}, 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>;
|
|
1502
|
+
readonly listSshKeys: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1503
|
+
readonly query: {
|
|
1504
|
+
readonly ownerUserId: string;
|
|
1505
|
+
};
|
|
1506
|
+
readonly responseMode?: Mode;
|
|
1507
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1508
|
+
readonly items: readonly {
|
|
1509
|
+
readonly sshKeyId: string;
|
|
1510
|
+
readonly ownerUserId: string;
|
|
1511
|
+
readonly name: string;
|
|
1512
|
+
readonly algorithm: string;
|
|
1513
|
+
readonly fingerprint: string;
|
|
1514
|
+
readonly createdAt: string;
|
|
1515
|
+
}[];
|
|
1516
|
+
}, 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>;
|
|
1517
|
+
readonly resolveSshPrincipal: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1518
|
+
readonly headers: {
|
|
1519
|
+
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
1520
|
+
};
|
|
1521
|
+
readonly payload: {
|
|
1522
|
+
readonly algo: string;
|
|
1523
|
+
readonly publicKeyBase64: string;
|
|
1524
|
+
};
|
|
1525
|
+
readonly responseMode?: Mode;
|
|
1526
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1527
|
+
readonly principalId: string;
|
|
1528
|
+
readonly sshKeyId: string;
|
|
1529
|
+
readonly fingerprint: string;
|
|
1530
|
+
}, 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>;
|
|
1531
|
+
};
|
|
1532
|
+
readonly system: {
|
|
1533
|
+
readonly getIndex: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1534
|
+
readonly responseMode?: Mode;
|
|
1535
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1536
|
+
readonly name: string;
|
|
1537
|
+
readonly version: string;
|
|
1538
|
+
readonly docsPath: string;
|
|
1539
|
+
readonly openApiPath: string;
|
|
1540
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1541
|
+
readonly getSetupState: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1542
|
+
readonly responseMode?: Mode;
|
|
1543
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1544
|
+
readonly needsSetup: boolean;
|
|
1545
|
+
readonly sshGateway: {
|
|
1546
|
+
readonly host: string;
|
|
1547
|
+
readonly port: number;
|
|
1548
|
+
readonly usernamePrefix: string;
|
|
1549
|
+
} | null;
|
|
1550
|
+
}, 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>;
|
|
1551
|
+
readonly health: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1552
|
+
readonly responseMode?: Mode;
|
|
1553
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1554
|
+
readonly status: "ok";
|
|
1555
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1556
|
+
readonly ready: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1557
|
+
readonly responseMode?: Mode;
|
|
1558
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1559
|
+
readonly status: "ok";
|
|
1560
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1561
|
+
};
|
|
1562
|
+
readonly workspaces: {
|
|
1563
|
+
readonly createWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1472
1564
|
readonly headers: {
|
|
1473
1565
|
readonly "idempotency-key"?: string | undefined;
|
|
1474
1566
|
};
|
|
@@ -1500,20 +1592,20 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1500
1592
|
};
|
|
1501
1593
|
readonly responseMode?: Mode;
|
|
1502
1594
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1503
|
-
readonly
|
|
1595
|
+
readonly workspaceId: string;
|
|
1504
1596
|
readonly name: string;
|
|
1505
1597
|
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
1506
1598
|
readonly registryId: string;
|
|
1507
1599
|
readonly repository: string;
|
|
1508
1600
|
readonly tag: string;
|
|
1509
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1510
|
-
readonly
|
|
1601
|
+
}, 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>;
|
|
1602
|
+
readonly getWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1511
1603
|
readonly params: {
|
|
1512
|
-
readonly
|
|
1604
|
+
readonly workspaceId: string;
|
|
1513
1605
|
};
|
|
1514
1606
|
readonly responseMode?: Mode;
|
|
1515
1607
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1516
|
-
readonly
|
|
1608
|
+
readonly workspaceId: string;
|
|
1517
1609
|
readonly name: string;
|
|
1518
1610
|
readonly ownerUserId: string;
|
|
1519
1611
|
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
@@ -1541,10 +1633,10 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1541
1633
|
readonly startedAt?: string | undefined;
|
|
1542
1634
|
readonly finishedAt?: string | undefined;
|
|
1543
1635
|
readonly spec?: unknown;
|
|
1544
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1545
|
-
readonly
|
|
1636
|
+
}, 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>;
|
|
1637
|
+
readonly getWorkspaceSshTarget: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1546
1638
|
readonly params: {
|
|
1547
|
-
readonly
|
|
1639
|
+
readonly workspaceId: string;
|
|
1548
1640
|
};
|
|
1549
1641
|
readonly headers: {
|
|
1550
1642
|
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
@@ -1552,7 +1644,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1552
1644
|
};
|
|
1553
1645
|
readonly responseMode?: Mode;
|
|
1554
1646
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1555
|
-
readonly
|
|
1647
|
+
readonly workspaceId: string;
|
|
1556
1648
|
readonly attemptId: string;
|
|
1557
1649
|
readonly runtime: {
|
|
1558
1650
|
readonly adapter: "docker" | "k3s" | "k8s";
|
|
@@ -1561,10 +1653,10 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1561
1653
|
readonly status: "failed" | "pending" | "ready" | "running" | "stopped";
|
|
1562
1654
|
readonly endpoint: string;
|
|
1563
1655
|
};
|
|
1564
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1565
|
-
readonly
|
|
1656
|
+
}, 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>;
|
|
1657
|
+
readonly listWorkspaceAttempts: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1566
1658
|
readonly params: {
|
|
1567
|
-
readonly
|
|
1659
|
+
readonly workspaceId: string;
|
|
1568
1660
|
};
|
|
1569
1661
|
readonly query: {
|
|
1570
1662
|
readonly limit?: string | undefined;
|
|
@@ -1602,10 +1694,10 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1602
1694
|
readonly finishedAt?: string | undefined;
|
|
1603
1695
|
readonly durationMs?: number | undefined;
|
|
1604
1696
|
}[];
|
|
1605
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1606
|
-
readonly
|
|
1697
|
+
}, 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>;
|
|
1698
|
+
readonly listWorkspaceEvents: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1607
1699
|
readonly params: {
|
|
1608
|
-
readonly
|
|
1700
|
+
readonly workspaceId: string;
|
|
1609
1701
|
};
|
|
1610
1702
|
readonly query: {
|
|
1611
1703
|
readonly limit?: string | undefined;
|
|
@@ -1614,15 +1706,15 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1614
1706
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1615
1707
|
readonly items: readonly {
|
|
1616
1708
|
readonly eventId: string;
|
|
1617
|
-
readonly
|
|
1709
|
+
readonly workspaceId: string;
|
|
1618
1710
|
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" | "
|
|
1711
|
+
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
1712
|
readonly occurredAt: string;
|
|
1621
1713
|
readonly message?: string | undefined;
|
|
1622
1714
|
readonly data?: unknown;
|
|
1623
1715
|
}[];
|
|
1624
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1625
|
-
readonly
|
|
1716
|
+
}, 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>;
|
|
1717
|
+
readonly listWorkspaces: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1626
1718
|
readonly query: {
|
|
1627
1719
|
readonly ownerUserId: string;
|
|
1628
1720
|
readonly status?: "cancelled" | "failed" | "queued" | "ready" | "running" | undefined;
|
|
@@ -1631,7 +1723,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1631
1723
|
readonly responseMode?: Mode;
|
|
1632
1724
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1633
1725
|
readonly items: readonly {
|
|
1634
|
-
readonly
|
|
1726
|
+
readonly workspaceId: string;
|
|
1635
1727
|
readonly name: string;
|
|
1636
1728
|
readonly ownerUserId: string;
|
|
1637
1729
|
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
@@ -1659,112 +1751,20 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
1659
1751
|
readonly startedAt?: string | undefined;
|
|
1660
1752
|
readonly finishedAt?: string | undefined;
|
|
1661
1753
|
}[];
|
|
1662
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("
|
|
1663
|
-
readonly
|
|
1754
|
+
}, 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>;
|
|
1755
|
+
readonly renameWorkspace: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1664
1756
|
readonly params: {
|
|
1665
|
-
readonly
|
|
1757
|
+
readonly workspaceId: string;
|
|
1666
1758
|
};
|
|
1667
1759
|
readonly payload: {
|
|
1668
1760
|
readonly name: string;
|
|
1669
1761
|
};
|
|
1670
1762
|
readonly responseMode?: Mode;
|
|
1671
1763
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1672
|
-
readonly
|
|
1764
|
+
readonly workspaceId: string;
|
|
1673
1765
|
readonly name: string;
|
|
1674
1766
|
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>;
|
|
1767
|
+
}, 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
1768
|
};
|
|
1769
1769
|
}>;
|
|
1770
1770
|
export declare class SealantApiClient extends SealantApiClient_base {
|