@sealant/sdk-next 0.40.0-next.872 → 0.40.0-next.875
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/dist/client.js +3 -1
- package/dist/effect/api-client.d.ts +352 -0
- package/dist/effect/operations.d.ts +174 -0
- package/dist/effect/operations.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/types.d.ts +18 -1
- package/package.json +3 -3
package/dist/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { archiveConnectedAccountOp, archiveSshKeyOp, cancelWorkspaceCreateOp, createAccessTokenOp, checkBoatAccountOp, checkBoatInstallKeyOp, getBoatInstallKeyOp, createBoatAccountOp, createConnectedAccountOp, createSshKeyOp, createWorkspaceOp, ensureUserOp, getRunOp, getSetupStateOp, getUserOp, bindUserPersonOp, getWorkspaceCreateOp, getWorkspaceOp, inferenceRespondOp, inspectWorkspaceImageOp, listWorkspaceRuntimesOp, listBoatAccountsOp, listConnectedAccountsOp, listSshKeysOp, listWorkspacesOp, markConnectedAccountInvalidOp, removeBoatAccountOp, rotateBoatAccountKeyOp, setConnectedAccountDefaultOp, } from "./effect/operations.js";
|
|
1
|
+
import { archiveConnectedAccountOp, archiveSshKeyOp, cancelWorkspaceCreateOp, createAccessTokenOp, checkBoatAccountOp, checkBoatInstallKeyOp, getBoatInstallKeyOp, proveBoatAccountOp, createBoatAccountOp, createConnectedAccountOp, createSshKeyOp, createWorkspaceOp, ensureUserOp, getRunOp, getSetupStateOp, getUserOp, bindUserPersonOp, getWorkspaceCreateOp, getWorkspaceOp, inferenceRespondOp, inspectWorkspaceImageOp, listWorkspaceRuntimesOp, listBoatAccountsOp, listConnectedAccountsOp, listSshKeysOp, listWorkspacesOp, markConnectedAccountInvalidOp, removeBoatAccountOp, rotateBoatAccountKeyOp, setConnectedAccountDefaultOp, } from "./effect/operations.js";
|
|
2
2
|
import { runHarness, startHarness } from "./effect/run-harness.js";
|
|
3
3
|
import { makeSdkRuntime } from "./effect/runtime.js";
|
|
4
4
|
import { SealantBudgetExceededError, SealantError } from "./errors.js";
|
|
@@ -30,6 +30,7 @@ const mapBoatAccount = (wire) => ({
|
|
|
30
30
|
// An older control plane sends neither: no organization named, no report.
|
|
31
31
|
organization: wire.organization ?? null,
|
|
32
32
|
report: wire.report ?? null,
|
|
33
|
+
lastProof: wire.lastProof ?? null,
|
|
33
34
|
});
|
|
34
35
|
const mapConnectedAccount = (wire) => ({
|
|
35
36
|
connectedAccountId: wire.connectedAccountId,
|
|
@@ -300,6 +301,7 @@ export class Sealant {
|
|
|
300
301
|
list: async () => (await this.#runtime.run(listBoatAccountsOp())).items.map(mapBoatAccount),
|
|
301
302
|
rotateKey: async (boatAccountId, apiKey) => mapBoatAccount(await this.#runtime.run(rotateBoatAccountKeyOp(boatAccountId, { apiKey }))),
|
|
302
303
|
check: async (boatAccountId) => mapBoatAccount(await this.#runtime.run(checkBoatAccountOp(boatAccountId))),
|
|
304
|
+
prove: async (boatAccountId) => await this.#runtime.run(proveBoatAccountOp(boatAccountId)),
|
|
303
305
|
installKey: async () => await this.#runtime.run(getBoatInstallKeyOp()),
|
|
304
306
|
checkInstallKey: async () => await this.#runtime.run(checkBoatInstallKeyOp()),
|
|
305
307
|
remove: async (boatAccountId) => mapBoatAccount(await this.#runtime.run(removeBoatAccountOp(boatAccountId))),
|
|
@@ -232,6 +232,35 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
232
232
|
}>>;
|
|
233
233
|
}>]>;
|
|
234
234
|
}>>>;
|
|
235
|
+
readonly lastProof: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
236
|
+
readonly proofId: import("effect/Schema").String;
|
|
237
|
+
readonly startedAt: import("effect/Schema").String;
|
|
238
|
+
readonly finishedAt: import("effect/Schema").String;
|
|
239
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "interrupted"]>;
|
|
240
|
+
readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
241
|
+
readonly step: import("effect/Schema").Literals<readonly ["start-vm", "run-command", "publish-port", "save-snapshot", "delete-snapshot", "delete-vm"]>;
|
|
242
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "no-answer", "not-reached"]>;
|
|
243
|
+
readonly boat: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
244
|
+
readonly kind: import("effect/Schema").Literals<readonly ["key-refused", "key-expired", "permission-missing", "sandbox-outside-key", "organization-mismatch", "account-suspended", "billing-required", "running-limit", "member-cap", "rate-limited", "trial-restricted", "no-machine", "snapshot-allowance-full", "no-answer", "refused"]>;
|
|
245
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
246
|
+
readonly operation: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
247
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
248
|
+
readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
249
|
+
readonly requestId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
250
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
251
|
+
readonly permission: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
252
|
+
readonly retryAfterSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
253
|
+
readonly retryAt: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
254
|
+
readonly billingUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
255
|
+
}>>;
|
|
256
|
+
}>>;
|
|
257
|
+
readonly starts: import("effect/Schema").Int;
|
|
258
|
+
readonly leftBehind: import("effect/Schema").Struct<{
|
|
259
|
+
readonly vm: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
260
|
+
readonly snapshot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
261
|
+
readonly removalConfirmed: import("effect/Schema").Boolean;
|
|
262
|
+
}>;
|
|
263
|
+
}>>>;
|
|
235
264
|
}>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BoatAccountKeyRefusedError | typeof import("@sealant/api-contracts").BoatAccountNotFoundError | typeof import("@sealant/api-contracts").BoatAccountServiceUnavailableError | typeof import("@sealant/api-contracts").BoatAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
|
|
236
265
|
readonly checkBoatInstallKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"checkBoatInstallKey", "POST", "/v1/boat-accounts/install-key", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
237
266
|
readonly label: import("effect/Schema").String;
|
|
@@ -583,6 +612,35 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
583
612
|
}>>;
|
|
584
613
|
}>]>;
|
|
585
614
|
}>>>;
|
|
615
|
+
readonly lastProof: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
616
|
+
readonly proofId: import("effect/Schema").String;
|
|
617
|
+
readonly startedAt: import("effect/Schema").String;
|
|
618
|
+
readonly finishedAt: import("effect/Schema").String;
|
|
619
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "interrupted"]>;
|
|
620
|
+
readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
621
|
+
readonly step: import("effect/Schema").Literals<readonly ["start-vm", "run-command", "publish-port", "save-snapshot", "delete-snapshot", "delete-vm"]>;
|
|
622
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "no-answer", "not-reached"]>;
|
|
623
|
+
readonly boat: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
624
|
+
readonly kind: import("effect/Schema").Literals<readonly ["key-refused", "key-expired", "permission-missing", "sandbox-outside-key", "organization-mismatch", "account-suspended", "billing-required", "running-limit", "member-cap", "rate-limited", "trial-restricted", "no-machine", "snapshot-allowance-full", "no-answer", "refused"]>;
|
|
625
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
626
|
+
readonly operation: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
627
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
628
|
+
readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
629
|
+
readonly requestId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
630
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
631
|
+
readonly permission: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
632
|
+
readonly retryAfterSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
633
|
+
readonly retryAt: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
634
|
+
readonly billingUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
635
|
+
}>>;
|
|
636
|
+
}>>;
|
|
637
|
+
readonly starts: import("effect/Schema").Int;
|
|
638
|
+
readonly leftBehind: import("effect/Schema").Struct<{
|
|
639
|
+
readonly vm: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
640
|
+
readonly snapshot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
641
|
+
readonly removalConfirmed: import("effect/Schema").Boolean;
|
|
642
|
+
}>;
|
|
643
|
+
}>>>;
|
|
586
644
|
}>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BoatAccountBadRequestError | typeof import("@sealant/api-contracts").BoatAccountKeyRefusedError | typeof import("@sealant/api-contracts").BoatAccountServiceUnavailableError | typeof import("@sealant/api-contracts").BoatAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
|
|
587
645
|
readonly getBoatInstallKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getBoatInstallKey", "GET", "/v1/boat-accounts/install-key", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
588
646
|
readonly label: import("effect/Schema").String;
|
|
@@ -931,8 +989,68 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
931
989
|
}>>;
|
|
932
990
|
}>]>;
|
|
933
991
|
}>>>;
|
|
992
|
+
readonly lastProof: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
993
|
+
readonly proofId: import("effect/Schema").String;
|
|
994
|
+
readonly startedAt: import("effect/Schema").String;
|
|
995
|
+
readonly finishedAt: import("effect/Schema").String;
|
|
996
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "interrupted"]>;
|
|
997
|
+
readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
998
|
+
readonly step: import("effect/Schema").Literals<readonly ["start-vm", "run-command", "publish-port", "save-snapshot", "delete-snapshot", "delete-vm"]>;
|
|
999
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "no-answer", "not-reached"]>;
|
|
1000
|
+
readonly boat: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1001
|
+
readonly kind: import("effect/Schema").Literals<readonly ["key-refused", "key-expired", "permission-missing", "sandbox-outside-key", "organization-mismatch", "account-suspended", "billing-required", "running-limit", "member-cap", "rate-limited", "trial-restricted", "no-machine", "snapshot-allowance-full", "no-answer", "refused"]>;
|
|
1002
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1003
|
+
readonly operation: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1004
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1005
|
+
readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1006
|
+
readonly requestId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1007
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
1008
|
+
readonly permission: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1009
|
+
readonly retryAfterSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
1010
|
+
readonly retryAt: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1011
|
+
readonly billingUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1012
|
+
}>>;
|
|
1013
|
+
}>>;
|
|
1014
|
+
readonly starts: import("effect/Schema").Int;
|
|
1015
|
+
readonly leftBehind: import("effect/Schema").Struct<{
|
|
1016
|
+
readonly vm: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1017
|
+
readonly snapshot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1018
|
+
readonly removalConfirmed: import("effect/Schema").Boolean;
|
|
1019
|
+
}>;
|
|
1020
|
+
}>>>;
|
|
934
1021
|
}>>;
|
|
935
1022
|
}>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BoatAccountServiceUnavailableError | typeof import("@sealant/api-contracts").BoatAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
|
|
1023
|
+
readonly proveBoatAccount: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"proveBoatAccount", "POST", "/v1/boat-accounts/:boatAccountId/prove", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1024
|
+
readonly boatAccountId: import("effect/Schema").String;
|
|
1025
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1026
|
+
readonly proofId: import("effect/Schema").String;
|
|
1027
|
+
readonly startedAt: import("effect/Schema").String;
|
|
1028
|
+
readonly finishedAt: import("effect/Schema").String;
|
|
1029
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "interrupted"]>;
|
|
1030
|
+
readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1031
|
+
readonly step: import("effect/Schema").Literals<readonly ["start-vm", "run-command", "publish-port", "save-snapshot", "delete-snapshot", "delete-vm"]>;
|
|
1032
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "no-answer", "not-reached"]>;
|
|
1033
|
+
readonly boat: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1034
|
+
readonly kind: import("effect/Schema").Literals<readonly ["key-refused", "key-expired", "permission-missing", "sandbox-outside-key", "organization-mismatch", "account-suspended", "billing-required", "running-limit", "member-cap", "rate-limited", "trial-restricted", "no-machine", "snapshot-allowance-full", "no-answer", "refused"]>;
|
|
1035
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1036
|
+
readonly operation: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1037
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1038
|
+
readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1039
|
+
readonly requestId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1040
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
1041
|
+
readonly permission: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1042
|
+
readonly retryAfterSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
1043
|
+
readonly retryAt: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1044
|
+
readonly billingUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1045
|
+
}>>;
|
|
1046
|
+
}>>;
|
|
1047
|
+
readonly starts: import("effect/Schema").Int;
|
|
1048
|
+
readonly leftBehind: import("effect/Schema").Struct<{
|
|
1049
|
+
readonly vm: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1050
|
+
readonly snapshot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1051
|
+
readonly removalConfirmed: import("effect/Schema").Boolean;
|
|
1052
|
+
}>;
|
|
1053
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BoatAccountNotFoundError | typeof import("@sealant/api-contracts").BoatAccountConflictError | typeof import("@sealant/api-contracts").BoatAccountServiceUnavailableError | typeof import("@sealant/api-contracts").BoatAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
|
|
936
1054
|
readonly removeBoatAccount: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"removeBoatAccount", "DELETE", "/v1/boat-accounts/:boatAccountId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
937
1055
|
readonly boatAccountId: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Literal<"default">]>;
|
|
938
1056
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -1110,6 +1228,35 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
1110
1228
|
}>>;
|
|
1111
1229
|
}>]>;
|
|
1112
1230
|
}>>>;
|
|
1231
|
+
readonly lastProof: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1232
|
+
readonly proofId: import("effect/Schema").String;
|
|
1233
|
+
readonly startedAt: import("effect/Schema").String;
|
|
1234
|
+
readonly finishedAt: import("effect/Schema").String;
|
|
1235
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "interrupted"]>;
|
|
1236
|
+
readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1237
|
+
readonly step: import("effect/Schema").Literals<readonly ["start-vm", "run-command", "publish-port", "save-snapshot", "delete-snapshot", "delete-vm"]>;
|
|
1238
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "no-answer", "not-reached"]>;
|
|
1239
|
+
readonly boat: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1240
|
+
readonly kind: import("effect/Schema").Literals<readonly ["key-refused", "key-expired", "permission-missing", "sandbox-outside-key", "organization-mismatch", "account-suspended", "billing-required", "running-limit", "member-cap", "rate-limited", "trial-restricted", "no-machine", "snapshot-allowance-full", "no-answer", "refused"]>;
|
|
1241
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1242
|
+
readonly operation: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1243
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1244
|
+
readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1245
|
+
readonly requestId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1246
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
1247
|
+
readonly permission: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1248
|
+
readonly retryAfterSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
1249
|
+
readonly retryAt: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1250
|
+
readonly billingUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1251
|
+
}>>;
|
|
1252
|
+
}>>;
|
|
1253
|
+
readonly starts: import("effect/Schema").Int;
|
|
1254
|
+
readonly leftBehind: import("effect/Schema").Struct<{
|
|
1255
|
+
readonly vm: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1256
|
+
readonly snapshot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1257
|
+
readonly removalConfirmed: import("effect/Schema").Boolean;
|
|
1258
|
+
}>;
|
|
1259
|
+
}>>>;
|
|
1113
1260
|
}>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BoatAccountNotFoundError | typeof import("@sealant/api-contracts").BoatAccountConflictError | typeof import("@sealant/api-contracts").BoatAccountServiceUnavailableError | typeof import("@sealant/api-contracts").BoatAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
|
|
1114
1261
|
readonly rotateBoatAccountKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"rotateBoatAccountKey", "PUT", "/v1/boat-accounts/:boatAccountId/key", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1115
1262
|
readonly boatAccountId: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Literal<"default">]>;
|
|
@@ -1290,6 +1437,35 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
1290
1437
|
}>>;
|
|
1291
1438
|
}>]>;
|
|
1292
1439
|
}>>>;
|
|
1440
|
+
readonly lastProof: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1441
|
+
readonly proofId: import("effect/Schema").String;
|
|
1442
|
+
readonly startedAt: import("effect/Schema").String;
|
|
1443
|
+
readonly finishedAt: import("effect/Schema").String;
|
|
1444
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "interrupted"]>;
|
|
1445
|
+
readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1446
|
+
readonly step: import("effect/Schema").Literals<readonly ["start-vm", "run-command", "publish-port", "save-snapshot", "delete-snapshot", "delete-vm"]>;
|
|
1447
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "no-answer", "not-reached"]>;
|
|
1448
|
+
readonly boat: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1449
|
+
readonly kind: import("effect/Schema").Literals<readonly ["key-refused", "key-expired", "permission-missing", "sandbox-outside-key", "organization-mismatch", "account-suspended", "billing-required", "running-limit", "member-cap", "rate-limited", "trial-restricted", "no-machine", "snapshot-allowance-full", "no-answer", "refused"]>;
|
|
1450
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1451
|
+
readonly operation: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1452
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1453
|
+
readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1454
|
+
readonly requestId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1455
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
1456
|
+
readonly permission: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1457
|
+
readonly retryAfterSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
1458
|
+
readonly retryAt: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1459
|
+
readonly billingUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1460
|
+
}>>;
|
|
1461
|
+
}>>;
|
|
1462
|
+
readonly starts: import("effect/Schema").Int;
|
|
1463
|
+
readonly leftBehind: import("effect/Schema").Struct<{
|
|
1464
|
+
readonly vm: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1465
|
+
readonly snapshot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1466
|
+
readonly removalConfirmed: import("effect/Schema").Boolean;
|
|
1467
|
+
}>;
|
|
1468
|
+
}>>>;
|
|
1293
1469
|
}>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BoatAccountBadRequestError | typeof import("@sealant/api-contracts").BoatAccountKeyRefusedError | typeof import("@sealant/api-contracts").BoatAccountNotFoundError | typeof import("@sealant/api-contracts").BoatAccountConflictError | typeof import("@sealant/api-contracts").BoatAccountServiceUnavailableError | typeof import("@sealant/api-contracts").BoatAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
|
|
1294
1470
|
};
|
|
1295
1471
|
readonly connectedAccounts: {
|
|
@@ -4224,6 +4400,35 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
4224
4400
|
}>>;
|
|
4225
4401
|
}>]>;
|
|
4226
4402
|
}>>>;
|
|
4403
|
+
readonly lastProof: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
4404
|
+
readonly proofId: import("effect/Schema").String;
|
|
4405
|
+
readonly startedAt: import("effect/Schema").String;
|
|
4406
|
+
readonly finishedAt: import("effect/Schema").String;
|
|
4407
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "interrupted"]>;
|
|
4408
|
+
readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4409
|
+
readonly step: import("effect/Schema").Literals<readonly ["start-vm", "run-command", "publish-port", "save-snapshot", "delete-snapshot", "delete-vm"]>;
|
|
4410
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "no-answer", "not-reached"]>;
|
|
4411
|
+
readonly boat: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
4412
|
+
readonly kind: import("effect/Schema").Literals<readonly ["key-refused", "key-expired", "permission-missing", "sandbox-outside-key", "organization-mismatch", "account-suspended", "billing-required", "running-limit", "member-cap", "rate-limited", "trial-restricted", "no-machine", "snapshot-allowance-full", "no-answer", "refused"]>;
|
|
4413
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
4414
|
+
readonly operation: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4415
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4416
|
+
readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4417
|
+
readonly requestId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4418
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
4419
|
+
readonly permission: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4420
|
+
readonly retryAfterSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
4421
|
+
readonly retryAt: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4422
|
+
readonly billingUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4423
|
+
}>>;
|
|
4424
|
+
}>>;
|
|
4425
|
+
readonly starts: import("effect/Schema").Int;
|
|
4426
|
+
readonly leftBehind: import("effect/Schema").Struct<{
|
|
4427
|
+
readonly vm: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4428
|
+
readonly snapshot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4429
|
+
readonly removalConfirmed: import("effect/Schema").Boolean;
|
|
4430
|
+
}>;
|
|
4431
|
+
}>>>;
|
|
4227
4432
|
}>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BoatAccountKeyRefusedError | typeof import("@sealant/api-contracts").BoatAccountNotFoundError | typeof import("@sealant/api-contracts").BoatAccountServiceUnavailableError | typeof import("@sealant/api-contracts").BoatAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
|
|
4228
4433
|
readonly checkBoatInstallKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"checkBoatInstallKey", "POST", "/v1/boat-accounts/install-key", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4229
4434
|
readonly label: import("effect/Schema").String;
|
|
@@ -4575,6 +4780,35 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
4575
4780
|
}>>;
|
|
4576
4781
|
}>]>;
|
|
4577
4782
|
}>>>;
|
|
4783
|
+
readonly lastProof: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
4784
|
+
readonly proofId: import("effect/Schema").String;
|
|
4785
|
+
readonly startedAt: import("effect/Schema").String;
|
|
4786
|
+
readonly finishedAt: import("effect/Schema").String;
|
|
4787
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "interrupted"]>;
|
|
4788
|
+
readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4789
|
+
readonly step: import("effect/Schema").Literals<readonly ["start-vm", "run-command", "publish-port", "save-snapshot", "delete-snapshot", "delete-vm"]>;
|
|
4790
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "no-answer", "not-reached"]>;
|
|
4791
|
+
readonly boat: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
4792
|
+
readonly kind: import("effect/Schema").Literals<readonly ["key-refused", "key-expired", "permission-missing", "sandbox-outside-key", "organization-mismatch", "account-suspended", "billing-required", "running-limit", "member-cap", "rate-limited", "trial-restricted", "no-machine", "snapshot-allowance-full", "no-answer", "refused"]>;
|
|
4793
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
4794
|
+
readonly operation: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4795
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4796
|
+
readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4797
|
+
readonly requestId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4798
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
4799
|
+
readonly permission: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4800
|
+
readonly retryAfterSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
4801
|
+
readonly retryAt: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4802
|
+
readonly billingUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4803
|
+
}>>;
|
|
4804
|
+
}>>;
|
|
4805
|
+
readonly starts: import("effect/Schema").Int;
|
|
4806
|
+
readonly leftBehind: import("effect/Schema").Struct<{
|
|
4807
|
+
readonly vm: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4808
|
+
readonly snapshot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4809
|
+
readonly removalConfirmed: import("effect/Schema").Boolean;
|
|
4810
|
+
}>;
|
|
4811
|
+
}>>>;
|
|
4578
4812
|
}>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BoatAccountBadRequestError | typeof import("@sealant/api-contracts").BoatAccountKeyRefusedError | typeof import("@sealant/api-contracts").BoatAccountServiceUnavailableError | typeof import("@sealant/api-contracts").BoatAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
|
|
4579
4813
|
readonly getBoatInstallKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getBoatInstallKey", "GET", "/v1/boat-accounts/install-key", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4580
4814
|
readonly label: import("effect/Schema").String;
|
|
@@ -4923,8 +5157,68 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
4923
5157
|
}>>;
|
|
4924
5158
|
}>]>;
|
|
4925
5159
|
}>>>;
|
|
5160
|
+
readonly lastProof: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
5161
|
+
readonly proofId: import("effect/Schema").String;
|
|
5162
|
+
readonly startedAt: import("effect/Schema").String;
|
|
5163
|
+
readonly finishedAt: import("effect/Schema").String;
|
|
5164
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "interrupted"]>;
|
|
5165
|
+
readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
5166
|
+
readonly step: import("effect/Schema").Literals<readonly ["start-vm", "run-command", "publish-port", "save-snapshot", "delete-snapshot", "delete-vm"]>;
|
|
5167
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "no-answer", "not-reached"]>;
|
|
5168
|
+
readonly boat: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
5169
|
+
readonly kind: import("effect/Schema").Literals<readonly ["key-refused", "key-expired", "permission-missing", "sandbox-outside-key", "organization-mismatch", "account-suspended", "billing-required", "running-limit", "member-cap", "rate-limited", "trial-restricted", "no-machine", "snapshot-allowance-full", "no-answer", "refused"]>;
|
|
5170
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
5171
|
+
readonly operation: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5172
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5173
|
+
readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5174
|
+
readonly requestId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5175
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
5176
|
+
readonly permission: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5177
|
+
readonly retryAfterSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
5178
|
+
readonly retryAt: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5179
|
+
readonly billingUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5180
|
+
}>>;
|
|
5181
|
+
}>>;
|
|
5182
|
+
readonly starts: import("effect/Schema").Int;
|
|
5183
|
+
readonly leftBehind: import("effect/Schema").Struct<{
|
|
5184
|
+
readonly vm: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5185
|
+
readonly snapshot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5186
|
+
readonly removalConfirmed: import("effect/Schema").Boolean;
|
|
5187
|
+
}>;
|
|
5188
|
+
}>>>;
|
|
4926
5189
|
}>>;
|
|
4927
5190
|
}>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BoatAccountServiceUnavailableError | typeof import("@sealant/api-contracts").BoatAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
|
|
5191
|
+
readonly proveBoatAccount: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"proveBoatAccount", "POST", "/v1/boat-accounts/:boatAccountId/prove", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
5192
|
+
readonly boatAccountId: import("effect/Schema").String;
|
|
5193
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
5194
|
+
readonly proofId: import("effect/Schema").String;
|
|
5195
|
+
readonly startedAt: import("effect/Schema").String;
|
|
5196
|
+
readonly finishedAt: import("effect/Schema").String;
|
|
5197
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "interrupted"]>;
|
|
5198
|
+
readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
5199
|
+
readonly step: import("effect/Schema").Literals<readonly ["start-vm", "run-command", "publish-port", "save-snapshot", "delete-snapshot", "delete-vm"]>;
|
|
5200
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "no-answer", "not-reached"]>;
|
|
5201
|
+
readonly boat: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
5202
|
+
readonly kind: import("effect/Schema").Literals<readonly ["key-refused", "key-expired", "permission-missing", "sandbox-outside-key", "organization-mismatch", "account-suspended", "billing-required", "running-limit", "member-cap", "rate-limited", "trial-restricted", "no-machine", "snapshot-allowance-full", "no-answer", "refused"]>;
|
|
5203
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
5204
|
+
readonly operation: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5205
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5206
|
+
readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5207
|
+
readonly requestId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5208
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
5209
|
+
readonly permission: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5210
|
+
readonly retryAfterSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
5211
|
+
readonly retryAt: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5212
|
+
readonly billingUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5213
|
+
}>>;
|
|
5214
|
+
}>>;
|
|
5215
|
+
readonly starts: import("effect/Schema").Int;
|
|
5216
|
+
readonly leftBehind: import("effect/Schema").Struct<{
|
|
5217
|
+
readonly vm: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5218
|
+
readonly snapshot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5219
|
+
readonly removalConfirmed: import("effect/Schema").Boolean;
|
|
5220
|
+
}>;
|
|
5221
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BoatAccountNotFoundError | typeof import("@sealant/api-contracts").BoatAccountConflictError | typeof import("@sealant/api-contracts").BoatAccountServiceUnavailableError | typeof import("@sealant/api-contracts").BoatAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
|
|
4928
5222
|
readonly removeBoatAccount: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"removeBoatAccount", "DELETE", "/v1/boat-accounts/:boatAccountId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
4929
5223
|
readonly boatAccountId: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Literal<"default">]>;
|
|
4930
5224
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -5102,6 +5396,35 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
5102
5396
|
}>>;
|
|
5103
5397
|
}>]>;
|
|
5104
5398
|
}>>>;
|
|
5399
|
+
readonly lastProof: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
5400
|
+
readonly proofId: import("effect/Schema").String;
|
|
5401
|
+
readonly startedAt: import("effect/Schema").String;
|
|
5402
|
+
readonly finishedAt: import("effect/Schema").String;
|
|
5403
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "interrupted"]>;
|
|
5404
|
+
readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
5405
|
+
readonly step: import("effect/Schema").Literals<readonly ["start-vm", "run-command", "publish-port", "save-snapshot", "delete-snapshot", "delete-vm"]>;
|
|
5406
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "no-answer", "not-reached"]>;
|
|
5407
|
+
readonly boat: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
5408
|
+
readonly kind: import("effect/Schema").Literals<readonly ["key-refused", "key-expired", "permission-missing", "sandbox-outside-key", "organization-mismatch", "account-suspended", "billing-required", "running-limit", "member-cap", "rate-limited", "trial-restricted", "no-machine", "snapshot-allowance-full", "no-answer", "refused"]>;
|
|
5409
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
5410
|
+
readonly operation: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5411
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5412
|
+
readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5413
|
+
readonly requestId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5414
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
5415
|
+
readonly permission: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5416
|
+
readonly retryAfterSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
5417
|
+
readonly retryAt: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5418
|
+
readonly billingUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5419
|
+
}>>;
|
|
5420
|
+
}>>;
|
|
5421
|
+
readonly starts: import("effect/Schema").Int;
|
|
5422
|
+
readonly leftBehind: import("effect/Schema").Struct<{
|
|
5423
|
+
readonly vm: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5424
|
+
readonly snapshot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5425
|
+
readonly removalConfirmed: import("effect/Schema").Boolean;
|
|
5426
|
+
}>;
|
|
5427
|
+
}>>>;
|
|
5105
5428
|
}>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BoatAccountNotFoundError | typeof import("@sealant/api-contracts").BoatAccountConflictError | typeof import("@sealant/api-contracts").BoatAccountServiceUnavailableError | typeof import("@sealant/api-contracts").BoatAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
|
|
5106
5429
|
readonly rotateBoatAccountKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"rotateBoatAccountKey", "PUT", "/v1/boat-accounts/:boatAccountId/key", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
5107
5430
|
readonly boatAccountId: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Literal<"default">]>;
|
|
@@ -5282,6 +5605,35 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
5282
5605
|
}>>;
|
|
5283
5606
|
}>]>;
|
|
5284
5607
|
}>>>;
|
|
5608
|
+
readonly lastProof: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
5609
|
+
readonly proofId: import("effect/Schema").String;
|
|
5610
|
+
readonly startedAt: import("effect/Schema").String;
|
|
5611
|
+
readonly finishedAt: import("effect/Schema").String;
|
|
5612
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "interrupted"]>;
|
|
5613
|
+
readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
5614
|
+
readonly step: import("effect/Schema").Literals<readonly ["start-vm", "run-command", "publish-port", "save-snapshot", "delete-snapshot", "delete-vm"]>;
|
|
5615
|
+
readonly outcome: import("effect/Schema").Literals<readonly ["passed", "refused", "no-answer", "not-reached"]>;
|
|
5616
|
+
readonly boat: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
5617
|
+
readonly kind: import("effect/Schema").Literals<readonly ["key-refused", "key-expired", "permission-missing", "sandbox-outside-key", "organization-mismatch", "account-suspended", "billing-required", "running-limit", "member-cap", "rate-limited", "trial-restricted", "no-machine", "snapshot-allowance-full", "no-answer", "refused"]>;
|
|
5618
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
5619
|
+
readonly operation: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5620
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5621
|
+
readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5622
|
+
readonly requestId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5623
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
5624
|
+
readonly permission: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5625
|
+
readonly retryAfterSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
|
|
5626
|
+
readonly retryAt: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5627
|
+
readonly billingUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5628
|
+
}>>;
|
|
5629
|
+
}>>;
|
|
5630
|
+
readonly starts: import("effect/Schema").Int;
|
|
5631
|
+
readonly leftBehind: import("effect/Schema").Struct<{
|
|
5632
|
+
readonly vm: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5633
|
+
readonly snapshot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5634
|
+
readonly removalConfirmed: import("effect/Schema").Boolean;
|
|
5635
|
+
}>;
|
|
5636
|
+
}>>>;
|
|
5285
5637
|
}>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BoatAccountBadRequestError | typeof import("@sealant/api-contracts").BoatAccountKeyRefusedError | typeof import("@sealant/api-contracts").BoatAccountNotFoundError | typeof import("@sealant/api-contracts").BoatAccountConflictError | typeof import("@sealant/api-contracts").BoatAccountServiceUnavailableError | typeof import("@sealant/api-contracts").BoatAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
|
|
5286
5638
|
};
|
|
5287
5639
|
readonly connectedAccounts: {
|
|
@@ -1350,6 +1350,35 @@ export declare const createBoatAccountOp: (payload: CreateBoatAccountRequest) =>
|
|
|
1350
1350
|
readonly included: number;
|
|
1351
1351
|
};
|
|
1352
1352
|
} | null | undefined;
|
|
1353
|
+
readonly lastProof?: {
|
|
1354
|
+
readonly proofId: string;
|
|
1355
|
+
readonly startedAt: string;
|
|
1356
|
+
readonly finishedAt: string;
|
|
1357
|
+
readonly outcome: "interrupted" | "passed" | "refused";
|
|
1358
|
+
readonly steps: readonly {
|
|
1359
|
+
readonly step: "delete-snapshot" | "delete-vm" | "publish-port" | "run-command" | "save-snapshot" | "start-vm";
|
|
1360
|
+
readonly outcome: "no-answer" | "not-reached" | "passed" | "refused";
|
|
1361
|
+
readonly boat?: {
|
|
1362
|
+
readonly kind: "account-suspended" | "billing-required" | "key-expired" | "key-refused" | "member-cap" | "no-answer" | "no-machine" | "organization-mismatch" | "permission-missing" | "rate-limited" | "refused" | "running-limit" | "sandbox-outside-key" | "snapshot-allowance-full" | "trial-restricted";
|
|
1363
|
+
readonly retryable: boolean;
|
|
1364
|
+
readonly operation?: string | undefined;
|
|
1365
|
+
readonly code?: string | undefined;
|
|
1366
|
+
readonly message?: string | undefined;
|
|
1367
|
+
readonly requestId?: string | undefined;
|
|
1368
|
+
readonly status?: number | undefined;
|
|
1369
|
+
readonly permission?: string | undefined;
|
|
1370
|
+
readonly retryAfterSeconds?: number | undefined;
|
|
1371
|
+
readonly retryAt?: string | undefined;
|
|
1372
|
+
readonly billingUrl?: string | undefined;
|
|
1373
|
+
} | undefined;
|
|
1374
|
+
}[];
|
|
1375
|
+
readonly starts: number;
|
|
1376
|
+
readonly leftBehind: {
|
|
1377
|
+
readonly vm: string | null;
|
|
1378
|
+
readonly snapshot: string | null;
|
|
1379
|
+
readonly removalConfirmed: boolean;
|
|
1380
|
+
};
|
|
1381
|
+
} | null | undefined;
|
|
1353
1382
|
}, import("@sealant/api-contracts").BoatAccountBadRequestError | import("@sealant/api-contracts").BoatAccountInternalServerError | import("@sealant/api-contracts").BoatAccountKeyRefusedError | import("@sealant/api-contracts").BoatAccountServiceUnavailableError | import("@sealant/api-contracts").BudgetExceededError | import("effect/http/HttpClientError").HttpClientError | import("@sealant/api-contracts").RequestRefusedError | Schema.SchemaError, SealantApiClient>;
|
|
1354
1383
|
export declare const listBoatAccountsOp: () => Effect.Effect<{
|
|
1355
1384
|
readonly items: readonly {
|
|
@@ -1520,6 +1549,35 @@ export declare const listBoatAccountsOp: () => Effect.Effect<{
|
|
|
1520
1549
|
readonly included: number;
|
|
1521
1550
|
};
|
|
1522
1551
|
} | null | undefined;
|
|
1552
|
+
readonly lastProof?: {
|
|
1553
|
+
readonly proofId: string;
|
|
1554
|
+
readonly startedAt: string;
|
|
1555
|
+
readonly finishedAt: string;
|
|
1556
|
+
readonly outcome: "interrupted" | "passed" | "refused";
|
|
1557
|
+
readonly steps: readonly {
|
|
1558
|
+
readonly step: "delete-snapshot" | "delete-vm" | "publish-port" | "run-command" | "save-snapshot" | "start-vm";
|
|
1559
|
+
readonly outcome: "no-answer" | "not-reached" | "passed" | "refused";
|
|
1560
|
+
readonly boat?: {
|
|
1561
|
+
readonly kind: "account-suspended" | "billing-required" | "key-expired" | "key-refused" | "member-cap" | "no-answer" | "no-machine" | "organization-mismatch" | "permission-missing" | "rate-limited" | "refused" | "running-limit" | "sandbox-outside-key" | "snapshot-allowance-full" | "trial-restricted";
|
|
1562
|
+
readonly retryable: boolean;
|
|
1563
|
+
readonly operation?: string | undefined;
|
|
1564
|
+
readonly code?: string | undefined;
|
|
1565
|
+
readonly message?: string | undefined;
|
|
1566
|
+
readonly requestId?: string | undefined;
|
|
1567
|
+
readonly status?: number | undefined;
|
|
1568
|
+
readonly permission?: string | undefined;
|
|
1569
|
+
readonly retryAfterSeconds?: number | undefined;
|
|
1570
|
+
readonly retryAt?: string | undefined;
|
|
1571
|
+
readonly billingUrl?: string | undefined;
|
|
1572
|
+
} | undefined;
|
|
1573
|
+
}[];
|
|
1574
|
+
readonly starts: number;
|
|
1575
|
+
readonly leftBehind: {
|
|
1576
|
+
readonly vm: string | null;
|
|
1577
|
+
readonly snapshot: string | null;
|
|
1578
|
+
readonly removalConfirmed: boolean;
|
|
1579
|
+
};
|
|
1580
|
+
} | null | undefined;
|
|
1523
1581
|
}[];
|
|
1524
1582
|
}, import("@sealant/api-contracts").BoatAccountInternalServerError | import("@sealant/api-contracts").BoatAccountServiceUnavailableError | import("@sealant/api-contracts").BudgetExceededError | import("effect/http/HttpClientError").HttpClientError | import("@sealant/api-contracts").RequestRefusedError | Schema.SchemaError, SealantApiClient>;
|
|
1525
1583
|
export declare const rotateBoatAccountKeyOp: (boatAccountId: string, payload: RotateBoatAccountKeyRequest) => Effect.Effect<{
|
|
@@ -1690,6 +1748,35 @@ export declare const rotateBoatAccountKeyOp: (boatAccountId: string, payload: Ro
|
|
|
1690
1748
|
readonly included: number;
|
|
1691
1749
|
};
|
|
1692
1750
|
} | null | undefined;
|
|
1751
|
+
readonly lastProof?: {
|
|
1752
|
+
readonly proofId: string;
|
|
1753
|
+
readonly startedAt: string;
|
|
1754
|
+
readonly finishedAt: string;
|
|
1755
|
+
readonly outcome: "interrupted" | "passed" | "refused";
|
|
1756
|
+
readonly steps: readonly {
|
|
1757
|
+
readonly step: "delete-snapshot" | "delete-vm" | "publish-port" | "run-command" | "save-snapshot" | "start-vm";
|
|
1758
|
+
readonly outcome: "no-answer" | "not-reached" | "passed" | "refused";
|
|
1759
|
+
readonly boat?: {
|
|
1760
|
+
readonly kind: "account-suspended" | "billing-required" | "key-expired" | "key-refused" | "member-cap" | "no-answer" | "no-machine" | "organization-mismatch" | "permission-missing" | "rate-limited" | "refused" | "running-limit" | "sandbox-outside-key" | "snapshot-allowance-full" | "trial-restricted";
|
|
1761
|
+
readonly retryable: boolean;
|
|
1762
|
+
readonly operation?: string | undefined;
|
|
1763
|
+
readonly code?: string | undefined;
|
|
1764
|
+
readonly message?: string | undefined;
|
|
1765
|
+
readonly requestId?: string | undefined;
|
|
1766
|
+
readonly status?: number | undefined;
|
|
1767
|
+
readonly permission?: string | undefined;
|
|
1768
|
+
readonly retryAfterSeconds?: number | undefined;
|
|
1769
|
+
readonly retryAt?: string | undefined;
|
|
1770
|
+
readonly billingUrl?: string | undefined;
|
|
1771
|
+
} | undefined;
|
|
1772
|
+
}[];
|
|
1773
|
+
readonly starts: number;
|
|
1774
|
+
readonly leftBehind: {
|
|
1775
|
+
readonly vm: string | null;
|
|
1776
|
+
readonly snapshot: string | null;
|
|
1777
|
+
readonly removalConfirmed: boolean;
|
|
1778
|
+
};
|
|
1779
|
+
} | null | undefined;
|
|
1693
1780
|
}, import("@sealant/api-contracts").BoatAccountBadRequestError | import("@sealant/api-contracts").BoatAccountConflictError | import("@sealant/api-contracts").BoatAccountInternalServerError | import("@sealant/api-contracts").BoatAccountKeyRefusedError | import("@sealant/api-contracts").BoatAccountNotFoundError | import("@sealant/api-contracts").BoatAccountServiceUnavailableError | import("@sealant/api-contracts").BudgetExceededError | import("effect/http/HttpClientError").HttpClientError | import("@sealant/api-contracts").RequestRefusedError | Schema.SchemaError, SealantApiClient>;
|
|
1694
1781
|
export declare const checkBoatAccountOp: (boatAccountId: string) => Effect.Effect<{
|
|
1695
1782
|
readonly boatAccountId: string;
|
|
@@ -1859,7 +1946,65 @@ export declare const checkBoatAccountOp: (boatAccountId: string) => Effect.Effec
|
|
|
1859
1946
|
readonly included: number;
|
|
1860
1947
|
};
|
|
1861
1948
|
} | null | undefined;
|
|
1949
|
+
readonly lastProof?: {
|
|
1950
|
+
readonly proofId: string;
|
|
1951
|
+
readonly startedAt: string;
|
|
1952
|
+
readonly finishedAt: string;
|
|
1953
|
+
readonly outcome: "interrupted" | "passed" | "refused";
|
|
1954
|
+
readonly steps: readonly {
|
|
1955
|
+
readonly step: "delete-snapshot" | "delete-vm" | "publish-port" | "run-command" | "save-snapshot" | "start-vm";
|
|
1956
|
+
readonly outcome: "no-answer" | "not-reached" | "passed" | "refused";
|
|
1957
|
+
readonly boat?: {
|
|
1958
|
+
readonly kind: "account-suspended" | "billing-required" | "key-expired" | "key-refused" | "member-cap" | "no-answer" | "no-machine" | "organization-mismatch" | "permission-missing" | "rate-limited" | "refused" | "running-limit" | "sandbox-outside-key" | "snapshot-allowance-full" | "trial-restricted";
|
|
1959
|
+
readonly retryable: boolean;
|
|
1960
|
+
readonly operation?: string | undefined;
|
|
1961
|
+
readonly code?: string | undefined;
|
|
1962
|
+
readonly message?: string | undefined;
|
|
1963
|
+
readonly requestId?: string | undefined;
|
|
1964
|
+
readonly status?: number | undefined;
|
|
1965
|
+
readonly permission?: string | undefined;
|
|
1966
|
+
readonly retryAfterSeconds?: number | undefined;
|
|
1967
|
+
readonly retryAt?: string | undefined;
|
|
1968
|
+
readonly billingUrl?: string | undefined;
|
|
1969
|
+
} | undefined;
|
|
1970
|
+
}[];
|
|
1971
|
+
readonly starts: number;
|
|
1972
|
+
readonly leftBehind: {
|
|
1973
|
+
readonly vm: string | null;
|
|
1974
|
+
readonly snapshot: string | null;
|
|
1975
|
+
readonly removalConfirmed: boolean;
|
|
1976
|
+
};
|
|
1977
|
+
} | null | undefined;
|
|
1862
1978
|
}, import("@sealant/api-contracts").BoatAccountInternalServerError | import("@sealant/api-contracts").BoatAccountKeyRefusedError | import("@sealant/api-contracts").BoatAccountNotFoundError | import("@sealant/api-contracts").BoatAccountServiceUnavailableError | import("@sealant/api-contracts").BudgetExceededError | import("effect/http/HttpClientError").HttpClientError | import("@sealant/api-contracts").RequestRefusedError | Schema.SchemaError, SealantApiClient>;
|
|
1979
|
+
export declare const proveBoatAccountOp: (boatAccountId: string) => Effect.Effect<{
|
|
1980
|
+
readonly proofId: string;
|
|
1981
|
+
readonly startedAt: string;
|
|
1982
|
+
readonly finishedAt: string;
|
|
1983
|
+
readonly outcome: "interrupted" | "passed" | "refused";
|
|
1984
|
+
readonly steps: readonly {
|
|
1985
|
+
readonly step: "delete-snapshot" | "delete-vm" | "publish-port" | "run-command" | "save-snapshot" | "start-vm";
|
|
1986
|
+
readonly outcome: "no-answer" | "not-reached" | "passed" | "refused";
|
|
1987
|
+
readonly boat?: {
|
|
1988
|
+
readonly kind: "account-suspended" | "billing-required" | "key-expired" | "key-refused" | "member-cap" | "no-answer" | "no-machine" | "organization-mismatch" | "permission-missing" | "rate-limited" | "refused" | "running-limit" | "sandbox-outside-key" | "snapshot-allowance-full" | "trial-restricted";
|
|
1989
|
+
readonly retryable: boolean;
|
|
1990
|
+
readonly operation?: string | undefined;
|
|
1991
|
+
readonly code?: string | undefined;
|
|
1992
|
+
readonly message?: string | undefined;
|
|
1993
|
+
readonly requestId?: string | undefined;
|
|
1994
|
+
readonly status?: number | undefined;
|
|
1995
|
+
readonly permission?: string | undefined;
|
|
1996
|
+
readonly retryAfterSeconds?: number | undefined;
|
|
1997
|
+
readonly retryAt?: string | undefined;
|
|
1998
|
+
readonly billingUrl?: string | undefined;
|
|
1999
|
+
} | undefined;
|
|
2000
|
+
}[];
|
|
2001
|
+
readonly starts: number;
|
|
2002
|
+
readonly leftBehind: {
|
|
2003
|
+
readonly vm: string | null;
|
|
2004
|
+
readonly snapshot: string | null;
|
|
2005
|
+
readonly removalConfirmed: boolean;
|
|
2006
|
+
};
|
|
2007
|
+
}, import("@sealant/api-contracts").BoatAccountConflictError | import("@sealant/api-contracts").BoatAccountInternalServerError | import("@sealant/api-contracts").BoatAccountNotFoundError | import("@sealant/api-contracts").BoatAccountServiceUnavailableError | import("@sealant/api-contracts").BudgetExceededError | import("effect/http/HttpClientError").HttpClientError | import("@sealant/api-contracts").RequestRefusedError | Schema.SchemaError, SealantApiClient>;
|
|
1863
2008
|
export declare const getBoatInstallKeyOp: () => Effect.Effect<{
|
|
1864
2009
|
readonly label: string;
|
|
1865
2010
|
readonly report: {
|
|
@@ -2356,6 +2501,35 @@ export declare const removeBoatAccountOp: (boatAccountId: string) => Effect.Effe
|
|
|
2356
2501
|
readonly included: number;
|
|
2357
2502
|
};
|
|
2358
2503
|
} | null | undefined;
|
|
2504
|
+
readonly lastProof?: {
|
|
2505
|
+
readonly proofId: string;
|
|
2506
|
+
readonly startedAt: string;
|
|
2507
|
+
readonly finishedAt: string;
|
|
2508
|
+
readonly outcome: "interrupted" | "passed" | "refused";
|
|
2509
|
+
readonly steps: readonly {
|
|
2510
|
+
readonly step: "delete-snapshot" | "delete-vm" | "publish-port" | "run-command" | "save-snapshot" | "start-vm";
|
|
2511
|
+
readonly outcome: "no-answer" | "not-reached" | "passed" | "refused";
|
|
2512
|
+
readonly boat?: {
|
|
2513
|
+
readonly kind: "account-suspended" | "billing-required" | "key-expired" | "key-refused" | "member-cap" | "no-answer" | "no-machine" | "organization-mismatch" | "permission-missing" | "rate-limited" | "refused" | "running-limit" | "sandbox-outside-key" | "snapshot-allowance-full" | "trial-restricted";
|
|
2514
|
+
readonly retryable: boolean;
|
|
2515
|
+
readonly operation?: string | undefined;
|
|
2516
|
+
readonly code?: string | undefined;
|
|
2517
|
+
readonly message?: string | undefined;
|
|
2518
|
+
readonly requestId?: string | undefined;
|
|
2519
|
+
readonly status?: number | undefined;
|
|
2520
|
+
readonly permission?: string | undefined;
|
|
2521
|
+
readonly retryAfterSeconds?: number | undefined;
|
|
2522
|
+
readonly retryAt?: string | undefined;
|
|
2523
|
+
readonly billingUrl?: string | undefined;
|
|
2524
|
+
} | undefined;
|
|
2525
|
+
}[];
|
|
2526
|
+
readonly starts: number;
|
|
2527
|
+
readonly leftBehind: {
|
|
2528
|
+
readonly vm: string | null;
|
|
2529
|
+
readonly snapshot: string | null;
|
|
2530
|
+
readonly removalConfirmed: boolean;
|
|
2531
|
+
};
|
|
2532
|
+
} | null | undefined;
|
|
2359
2533
|
}, import("@sealant/api-contracts").BoatAccountConflictError | import("@sealant/api-contracts").BoatAccountInternalServerError | import("@sealant/api-contracts").BoatAccountNotFoundError | import("@sealant/api-contracts").BoatAccountServiceUnavailableError | import("@sealant/api-contracts").BudgetExceededError | import("effect/http/HttpClientError").HttpClientError | import("@sealant/api-contracts").RequestRefusedError | Schema.SchemaError, SealantApiClient>;
|
|
2360
2534
|
export declare const listConnectedAccountsOp: (ownerUserId: string) => Effect.Effect<{
|
|
2361
2535
|
readonly items: readonly {
|
|
@@ -73,6 +73,7 @@ export const createBoatAccountOp = (payload) => Effect.flatMap(SealantApiClient,
|
|
|
73
73
|
export const listBoatAccountsOp = () => Effect.flatMap(SealantApiClient, (client) => client.boatAccounts.listBoatAccounts({}));
|
|
74
74
|
export const rotateBoatAccountKeyOp = (boatAccountId, payload) => Effect.flatMap(SealantApiClient, (client) => client.boatAccounts.rotateBoatAccountKey({ params: { boatAccountId }, payload }));
|
|
75
75
|
export const checkBoatAccountOp = (boatAccountId) => Effect.flatMap(SealantApiClient, (client) => client.boatAccounts.checkBoatAccount({ params: { boatAccountId } }));
|
|
76
|
+
export const proveBoatAccountOp = (boatAccountId) => Effect.flatMap(SealantApiClient, (client) => client.boatAccounts.proveBoatAccount({ params: { boatAccountId } }));
|
|
76
77
|
export const getBoatInstallKeyOp = () => Effect.flatMap(SealantApiClient, (client) => client.boatAccounts.getBoatInstallKey({}));
|
|
77
78
|
export const checkBoatInstallKeyOp = () => Effect.flatMap(SealantApiClient, (client) => client.boatAccounts.checkBoatInstallKey({}));
|
|
78
79
|
export const removeBoatAccountOp = (boatAccountId) => Effect.flatMap(SealantApiClient, (client) => client.boatAccounts.removeBoatAccount({ params: { boatAccountId } }));
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { Sealant } from "./client.js";
|
|
|
18
18
|
export { claudeCode, codex, customHarness, opencode, pi } from "./harness.js";
|
|
19
19
|
export { ForwardDialError, type ForwardDialFailure, type ForwardDialReason, ForwardResetError, SealantApiError, SealantBoatError, SealantBudgetExceededError, SealantError, SealantNotImplementedError, SealantRuntimeError, } from "./errors.js";
|
|
20
20
|
export type * from "./types.js";
|
|
21
|
-
export { BOAT_FAILURE_KINDS, BOAT_RETRYABLE_FAILURE_KINDS, BOAT_DEFAULT_ACCOUNT_ID, type BoatFailure, type BoatFailureKind, type BoatKeyNotObserved, type BoatKeyReport, } from "@sealant/api-contracts";
|
|
21
|
+
export { BOAT_FAILURE_KINDS, BOAT_RETRYABLE_FAILURE_KINDS, BOAT_DEFAULT_ACCOUNT_ID, type BoatFailure, type BoatFailureKind, type BoatKeyNotObserved, type BoatKeyProof, type BoatKeyProofStep, type BoatKeyProofStepName, type BoatKeyReport, BOAT_KEY_PROOF_STEPS, } from "@sealant/api-contracts";
|
|
22
22
|
export type { EnsuredScope, ScopeBudget, ScopeBudgetDimension, ScopeBudgetLimits, ScopeBudgets, ScopeClient, ScopeInfo, ScopeMember, ScopeMemberDecision, ScopeMemberPage, ScopeMembers, ScopesNamespace, } from "./scopes.js";
|
|
23
23
|
export type { ScopeArchivedVolume, ScopeExecResult, ScopeInstance, ScopeInstances, ScopeInstanceSpec, ScopeInstanceState, ScopeInstanceStopReason, ScopeInstancePurgeResult, ScopeWorkspaces, } from "./scope-instances.js";
|
|
24
24
|
export { findWorkspaceEnvReservedRule, findWorkspaceSecretEnvReservedRule, formatWorkspaceEnvIssue, parseWorkspaceEnv, parseWorkspaceSecretEnv, WORKSPACE_ENV_MAX_ENTRIES, WORKSPACE_ENV_MAX_NAME_LENGTH, WORKSPACE_ENV_MAX_TOTAL_BYTES, WORKSPACE_ENV_MAX_VALUE_BYTES, WORKSPACE_ENV_NAME_PATTERN, WORKSPACE_ENV_SECRET_MARKERS, } from "@sealant/api-contracts/workspace-environment";
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export { Sealant } from "./client.js";
|
|
|
18
18
|
export { claudeCode, codex, customHarness, opencode, pi } from "./harness.js";
|
|
19
19
|
export { ForwardDialError, ForwardResetError, SealantApiError, SealantBoatError, SealantBudgetExceededError, SealantError, SealantNotImplementedError, SealantRuntimeError, } from "./errors.js";
|
|
20
20
|
// Why Boat refused a call for a Boat workspace (`SealantBoatError.boat`): a closed set of kinds.
|
|
21
|
-
export { BOAT_FAILURE_KINDS, BOAT_RETRYABLE_FAILURE_KINDS, BOAT_DEFAULT_ACCOUNT_ID, } from "@sealant/api-contracts";
|
|
21
|
+
export { BOAT_FAILURE_KINDS, BOAT_RETRYABLE_FAILURE_KINDS, BOAT_DEFAULT_ACCOUNT_ID, BOAT_KEY_PROOF_STEPS, } from "@sealant/api-contracts";
|
|
22
22
|
// The workspace environment policy (`CreateOptions.env` validation) is public API: downstream
|
|
23
23
|
// products validate at their own boundaries with the exact rules the platform enforces.
|
|
24
24
|
export { findWorkspaceEnvReservedRule, findWorkspaceSecretEnvReservedRule, formatWorkspaceEnvIssue, parseWorkspaceEnv, parseWorkspaceSecretEnv, WORKSPACE_ENV_MAX_ENTRIES, WORKSPACE_ENV_MAX_NAME_LENGTH, WORKSPACE_ENV_MAX_TOTAL_BYTES, WORKSPACE_ENV_MAX_VALUE_BYTES, WORKSPACE_ENV_NAME_PATTERN, WORKSPACE_ENV_SECRET_MARKERS, } from "@sealant/api-contracts/workspace-environment";
|
package/dist/types.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* `SealantNotImplementedError` at runtime, see `./errors.js`).
|
|
16
16
|
*/
|
|
17
17
|
import type { ReadableStream as NodeReadableStream, WritableStream as NodeWritableStream } from "node:stream/web";
|
|
18
|
-
import type { BoatKeyReport, WorkspacePublication as WireWorkspacePublication, ConnectedAccountLogin, ConnectedAccountLoginClass, EndpointUrl, ForwardBinding, ForwardResetReason } from "@sealant/api-contracts";
|
|
18
|
+
import type { BoatKeyProof, BoatKeyReport, WorkspacePublication as WireWorkspacePublication, ConnectedAccountLogin, ConnectedAccountLoginClass, EndpointUrl, ForwardBinding, ForwardResetReason } from "@sealant/api-contracts";
|
|
19
19
|
/** A request hint. Interactive requests may use the server's reserved capacity. */
|
|
20
20
|
export type RequestPriority = "normal" | "interactive";
|
|
21
21
|
/**
|
|
@@ -2387,6 +2387,11 @@ export interface BoatAccount {
|
|
|
2387
2387
|
* Each fact is `observed: true` with its value, or `observed: false` with Boat's reason.
|
|
2388
2388
|
*/
|
|
2389
2389
|
readonly report: BoatKeyReport | null;
|
|
2390
|
+
/**
|
|
2391
|
+
* The account's last full check (`prove`), with when it finished; null until it is proven. Only
|
|
2392
|
+
* `list()` fills it; the other calls answer null.
|
|
2393
|
+
*/
|
|
2394
|
+
readonly lastProof: BoatKeyProof | null;
|
|
2390
2395
|
}
|
|
2391
2396
|
/**
|
|
2392
2397
|
* The control plane's own Boat key (its environment's), which workspaces run in when they name no
|
|
@@ -2434,6 +2439,18 @@ export interface BoatAccountsNamespace {
|
|
|
2434
2439
|
* (422, `reason` `boat-key-unverified`) and keeps the last report.
|
|
2435
2440
|
*/
|
|
2436
2441
|
check(boatAccountId: string): Promise<BoatAccount>;
|
|
2442
|
+
/**
|
|
2443
|
+
* A full check of a stored account's key: the control plane starts the smallest VM in the
|
|
2444
|
+
* account, runs a command, publishes a port and saves a snapshot, then deletes the snapshot and
|
|
2445
|
+
* the VM, and answers each step as `passed`, `refused` (with Boat's reason in `boat`),
|
|
2446
|
+
* `no-answer` or `not-reached`. It uses one VM start (`starts`) and says what Boat may still hold
|
|
2447
|
+
* of it (`leftBehind`: `removalConfirmed` false means the control plane's sweep still owns what is
|
|
2448
|
+
* left, named by `vm` and `snapshot` where known). It never leaves a VM or a snapshot behind for
|
|
2449
|
+
* good. A second check, `rotateKey` and `remove` of the account reject (`reason`
|
|
2450
|
+
* `boat-proof-running`, the message naming what is left) while one runs or its leftovers are
|
|
2451
|
+
* being removed. It takes a minute or more.
|
|
2452
|
+
*/
|
|
2453
|
+
prove(boatAccountId: string): Promise<BoatKeyProof>;
|
|
2437
2454
|
/** The control plane's own Boat key's last report (`BoatInstallKey`). */
|
|
2438
2455
|
installKey(): Promise<BoatInstallKey>;
|
|
2439
2456
|
/** Checks the control plane's own Boat key with Boat now, as `check` does a stored one. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sealant/sdk-next",
|
|
3
|
-
"version": "0.40.0-next.
|
|
3
|
+
"version": "0.40.0-next.875",
|
|
4
4
|
"description": "The fluent public SDK for Sealant — create a workspace, run a harness, replay the record.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"node": ">=20"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@sealant/api-contracts": "npm:@sealant/api-contracts-next@0.40.0-next.
|
|
29
|
+
"@sealant/api-contracts": "npm:@sealant/api-contracts-next@0.40.0-next.875"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"effect": "^4.0.5"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "78d5ec7b9c011e22fed1d12ef7709c608b7dfcf6",
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
}
|