@sealant/api-contracts-next 0.40.0-next.870 → 0.40.0-next.874
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/core-api/boat-accounts.d.ts +2619 -14
- package/dist/core-api/boat-accounts.js +212 -10
- package/dist/core-api/boat-failures.d.ts +64 -0
- package/dist/core-api/boat-failures.js +82 -0
- package/dist/core-api/control-plane.d.ts +2541 -1133
- package/dist/core-api/workspaces.d.ts +153 -0
- package/dist/core-api/workspaces.js +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
|
@@ -177,6 +177,23 @@ export type WorkspacePublication = typeof workspacePublicationSchema.Type;
|
|
|
177
177
|
export declare const workspaceErrorSchema: Schema.Struct<{
|
|
178
178
|
readonly message: Schema.String;
|
|
179
179
|
readonly code: Schema.optional<Schema.String>;
|
|
180
|
+
/**
|
|
181
|
+
* Why Boat refused, or did not answer, the call that failed this Boat workspace's launch or image
|
|
182
|
+
* build: the kind, and Boat's own code, message and request id. Absent for any other failure.
|
|
183
|
+
*/
|
|
184
|
+
readonly boat: Schema.optional<Schema.Struct<{
|
|
185
|
+
readonly kind: 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"]>;
|
|
186
|
+
readonly retryable: Schema.Boolean;
|
|
187
|
+
readonly operation: Schema.optional<Schema.String>;
|
|
188
|
+
readonly code: Schema.optional<Schema.String>;
|
|
189
|
+
readonly message: Schema.optional<Schema.String>;
|
|
190
|
+
readonly requestId: Schema.optional<Schema.String>;
|
|
191
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
192
|
+
readonly permission: Schema.optional<Schema.String>;
|
|
193
|
+
readonly retryAfterSeconds: Schema.optional<Schema.Int>;
|
|
194
|
+
readonly retryAt: Schema.optional<Schema.String>;
|
|
195
|
+
readonly billingUrl: Schema.optional<Schema.String>;
|
|
196
|
+
}>>;
|
|
180
197
|
}>;
|
|
181
198
|
export declare const githubWorkspaceSourceSelectionSchema: Schema.Struct<{
|
|
182
199
|
readonly provider: Schema.Literal<"github">;
|
|
@@ -1832,6 +1849,23 @@ export declare const workspaceSummarySchema: Schema.Struct<{
|
|
|
1832
1849
|
readonly error: Schema.optional<Schema.Struct<{
|
|
1833
1850
|
readonly message: Schema.String;
|
|
1834
1851
|
readonly code: Schema.optional<Schema.String>;
|
|
1852
|
+
/**
|
|
1853
|
+
* Why Boat refused, or did not answer, the call that failed this Boat workspace's launch or image
|
|
1854
|
+
* build: the kind, and Boat's own code, message and request id. Absent for any other failure.
|
|
1855
|
+
*/
|
|
1856
|
+
readonly boat: Schema.optional<Schema.Struct<{
|
|
1857
|
+
readonly kind: 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"]>;
|
|
1858
|
+
readonly retryable: Schema.Boolean;
|
|
1859
|
+
readonly operation: Schema.optional<Schema.String>;
|
|
1860
|
+
readonly code: Schema.optional<Schema.String>;
|
|
1861
|
+
readonly message: Schema.optional<Schema.String>;
|
|
1862
|
+
readonly requestId: Schema.optional<Schema.String>;
|
|
1863
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
1864
|
+
readonly permission: Schema.optional<Schema.String>;
|
|
1865
|
+
readonly retryAfterSeconds: Schema.optional<Schema.Int>;
|
|
1866
|
+
readonly retryAt: Schema.optional<Schema.String>;
|
|
1867
|
+
readonly billingUrl: Schema.optional<Schema.String>;
|
|
1868
|
+
}>>;
|
|
1835
1869
|
}>>;
|
|
1836
1870
|
/** Where the launch is while the workspace is not ready (see `workspacePhaseSchema`). */
|
|
1837
1871
|
readonly phase: Schema.optional<Schema.Struct<{
|
|
@@ -2046,6 +2080,23 @@ export declare const workspaceDetailsSchema: Schema.Struct<{
|
|
|
2046
2080
|
readonly error: Schema.optional<Schema.Struct<{
|
|
2047
2081
|
readonly message: Schema.String;
|
|
2048
2082
|
readonly code: Schema.optional<Schema.String>;
|
|
2083
|
+
/**
|
|
2084
|
+
* Why Boat refused, or did not answer, the call that failed this Boat workspace's launch or image
|
|
2085
|
+
* build: the kind, and Boat's own code, message and request id. Absent for any other failure.
|
|
2086
|
+
*/
|
|
2087
|
+
readonly boat: Schema.optional<Schema.Struct<{
|
|
2088
|
+
readonly kind: 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"]>;
|
|
2089
|
+
readonly retryable: Schema.Boolean;
|
|
2090
|
+
readonly operation: Schema.optional<Schema.String>;
|
|
2091
|
+
readonly code: Schema.optional<Schema.String>;
|
|
2092
|
+
readonly message: Schema.optional<Schema.String>;
|
|
2093
|
+
readonly requestId: Schema.optional<Schema.String>;
|
|
2094
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
2095
|
+
readonly permission: Schema.optional<Schema.String>;
|
|
2096
|
+
readonly retryAfterSeconds: Schema.optional<Schema.Int>;
|
|
2097
|
+
readonly retryAt: Schema.optional<Schema.String>;
|
|
2098
|
+
readonly billingUrl: Schema.optional<Schema.String>;
|
|
2099
|
+
}>>;
|
|
2049
2100
|
}>>;
|
|
2050
2101
|
/** Where the launch is while the workspace is not ready (see `workspacePhaseSchema`). */
|
|
2051
2102
|
readonly phase: Schema.optional<Schema.Struct<{
|
|
@@ -2261,6 +2312,23 @@ export declare const listWorkspacesResponseSchema: Schema.Struct<{
|
|
|
2261
2312
|
readonly error: Schema.optional<Schema.Struct<{
|
|
2262
2313
|
readonly message: Schema.String;
|
|
2263
2314
|
readonly code: Schema.optional<Schema.String>;
|
|
2315
|
+
/**
|
|
2316
|
+
* Why Boat refused, or did not answer, the call that failed this Boat workspace's launch or image
|
|
2317
|
+
* build: the kind, and Boat's own code, message and request id. Absent for any other failure.
|
|
2318
|
+
*/
|
|
2319
|
+
readonly boat: Schema.optional<Schema.Struct<{
|
|
2320
|
+
readonly kind: 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"]>;
|
|
2321
|
+
readonly retryable: Schema.Boolean;
|
|
2322
|
+
readonly operation: Schema.optional<Schema.String>;
|
|
2323
|
+
readonly code: Schema.optional<Schema.String>;
|
|
2324
|
+
readonly message: Schema.optional<Schema.String>;
|
|
2325
|
+
readonly requestId: Schema.optional<Schema.String>;
|
|
2326
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
2327
|
+
readonly permission: Schema.optional<Schema.String>;
|
|
2328
|
+
readonly retryAfterSeconds: Schema.optional<Schema.Int>;
|
|
2329
|
+
readonly retryAt: Schema.optional<Schema.String>;
|
|
2330
|
+
readonly billingUrl: Schema.optional<Schema.String>;
|
|
2331
|
+
}>>;
|
|
2264
2332
|
}>>;
|
|
2265
2333
|
/** Where the launch is while the workspace is not ready (see `workspacePhaseSchema`). */
|
|
2266
2334
|
readonly phase: Schema.optional<Schema.Struct<{
|
|
@@ -2397,6 +2465,23 @@ export declare const workspaceAttemptSummarySchema: Schema.Struct<{
|
|
|
2397
2465
|
readonly error: Schema.optional<Schema.Struct<{
|
|
2398
2466
|
readonly message: Schema.String;
|
|
2399
2467
|
readonly code: Schema.optional<Schema.String>;
|
|
2468
|
+
/**
|
|
2469
|
+
* Why Boat refused, or did not answer, the call that failed this Boat workspace's launch or image
|
|
2470
|
+
* build: the kind, and Boat's own code, message and request id. Absent for any other failure.
|
|
2471
|
+
*/
|
|
2472
|
+
readonly boat: Schema.optional<Schema.Struct<{
|
|
2473
|
+
readonly kind: 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"]>;
|
|
2474
|
+
readonly retryable: Schema.Boolean;
|
|
2475
|
+
readonly operation: Schema.optional<Schema.String>;
|
|
2476
|
+
readonly code: Schema.optional<Schema.String>;
|
|
2477
|
+
readonly message: Schema.optional<Schema.String>;
|
|
2478
|
+
readonly requestId: Schema.optional<Schema.String>;
|
|
2479
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
2480
|
+
readonly permission: Schema.optional<Schema.String>;
|
|
2481
|
+
readonly retryAfterSeconds: Schema.optional<Schema.Int>;
|
|
2482
|
+
readonly retryAt: Schema.optional<Schema.String>;
|
|
2483
|
+
readonly billingUrl: Schema.optional<Schema.String>;
|
|
2484
|
+
}>>;
|
|
2400
2485
|
}>>;
|
|
2401
2486
|
readonly spec: Schema.optional<Schema.Unknown>;
|
|
2402
2487
|
readonly queuedAt: Schema.String;
|
|
@@ -2514,6 +2599,23 @@ export declare const listWorkspaceAttemptsResponseSchema: Schema.Struct<{
|
|
|
2514
2599
|
readonly error: Schema.optional<Schema.Struct<{
|
|
2515
2600
|
readonly message: Schema.String;
|
|
2516
2601
|
readonly code: Schema.optional<Schema.String>;
|
|
2602
|
+
/**
|
|
2603
|
+
* Why Boat refused, or did not answer, the call that failed this Boat workspace's launch or image
|
|
2604
|
+
* build: the kind, and Boat's own code, message and request id. Absent for any other failure.
|
|
2605
|
+
*/
|
|
2606
|
+
readonly boat: Schema.optional<Schema.Struct<{
|
|
2607
|
+
readonly kind: 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"]>;
|
|
2608
|
+
readonly retryable: Schema.Boolean;
|
|
2609
|
+
readonly operation: Schema.optional<Schema.String>;
|
|
2610
|
+
readonly code: Schema.optional<Schema.String>;
|
|
2611
|
+
readonly message: Schema.optional<Schema.String>;
|
|
2612
|
+
readonly requestId: Schema.optional<Schema.String>;
|
|
2613
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
2614
|
+
readonly permission: Schema.optional<Schema.String>;
|
|
2615
|
+
readonly retryAfterSeconds: Schema.optional<Schema.Int>;
|
|
2616
|
+
readonly retryAt: Schema.optional<Schema.String>;
|
|
2617
|
+
readonly billingUrl: Schema.optional<Schema.String>;
|
|
2618
|
+
}>>;
|
|
2517
2619
|
}>>;
|
|
2518
2620
|
readonly spec: Schema.optional<Schema.Unknown>;
|
|
2519
2621
|
readonly queuedAt: Schema.String;
|
|
@@ -3191,6 +3293,23 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
|
|
|
3191
3293
|
readonly error: Schema.optional<Schema.Struct<{
|
|
3192
3294
|
readonly message: Schema.String;
|
|
3193
3295
|
readonly code: Schema.optional<Schema.String>;
|
|
3296
|
+
/**
|
|
3297
|
+
* Why Boat refused, or did not answer, the call that failed this Boat workspace's launch or image
|
|
3298
|
+
* build: the kind, and Boat's own code, message and request id. Absent for any other failure.
|
|
3299
|
+
*/
|
|
3300
|
+
readonly boat: Schema.optional<Schema.Struct<{
|
|
3301
|
+
readonly kind: 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"]>;
|
|
3302
|
+
readonly retryable: Schema.Boolean;
|
|
3303
|
+
readonly operation: Schema.optional<Schema.String>;
|
|
3304
|
+
readonly code: Schema.optional<Schema.String>;
|
|
3305
|
+
readonly message: Schema.optional<Schema.String>;
|
|
3306
|
+
readonly requestId: Schema.optional<Schema.String>;
|
|
3307
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
3308
|
+
readonly permission: Schema.optional<Schema.String>;
|
|
3309
|
+
readonly retryAfterSeconds: Schema.optional<Schema.Int>;
|
|
3310
|
+
readonly retryAt: Schema.optional<Schema.String>;
|
|
3311
|
+
readonly billingUrl: Schema.optional<Schema.String>;
|
|
3312
|
+
}>>;
|
|
3194
3313
|
}>>;
|
|
3195
3314
|
/** Where the launch is while the workspace is not ready (see `workspacePhaseSchema`). */
|
|
3196
3315
|
readonly phase: Schema.optional<Schema.Struct<{
|
|
@@ -3661,6 +3780,23 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
|
|
|
3661
3780
|
readonly error: Schema.optional<Schema.Struct<{
|
|
3662
3781
|
readonly message: Schema.String;
|
|
3663
3782
|
readonly code: Schema.optional<Schema.String>;
|
|
3783
|
+
/**
|
|
3784
|
+
* Why Boat refused, or did not answer, the call that failed this Boat workspace's launch or image
|
|
3785
|
+
* build: the kind, and Boat's own code, message and request id. Absent for any other failure.
|
|
3786
|
+
*/
|
|
3787
|
+
readonly boat: Schema.optional<Schema.Struct<{
|
|
3788
|
+
readonly kind: 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"]>;
|
|
3789
|
+
readonly retryable: Schema.Boolean;
|
|
3790
|
+
readonly operation: Schema.optional<Schema.String>;
|
|
3791
|
+
readonly code: Schema.optional<Schema.String>;
|
|
3792
|
+
readonly message: Schema.optional<Schema.String>;
|
|
3793
|
+
readonly requestId: Schema.optional<Schema.String>;
|
|
3794
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
3795
|
+
readonly permission: Schema.optional<Schema.String>;
|
|
3796
|
+
readonly retryAfterSeconds: Schema.optional<Schema.Int>;
|
|
3797
|
+
readonly retryAt: Schema.optional<Schema.String>;
|
|
3798
|
+
readonly billingUrl: Schema.optional<Schema.String>;
|
|
3799
|
+
}>>;
|
|
3664
3800
|
}>>;
|
|
3665
3801
|
readonly spec: Schema.optional<Schema.Unknown>;
|
|
3666
3802
|
readonly queuedAt: Schema.String;
|
|
@@ -3972,6 +4108,23 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
|
|
|
3972
4108
|
readonly error: Schema.optional<Schema.Struct<{
|
|
3973
4109
|
readonly message: Schema.String;
|
|
3974
4110
|
readonly code: Schema.optional<Schema.String>;
|
|
4111
|
+
/**
|
|
4112
|
+
* Why Boat refused, or did not answer, the call that failed this Boat workspace's launch or image
|
|
4113
|
+
* build: the kind, and Boat's own code, message and request id. Absent for any other failure.
|
|
4114
|
+
*/
|
|
4115
|
+
readonly boat: Schema.optional<Schema.Struct<{
|
|
4116
|
+
readonly kind: 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"]>;
|
|
4117
|
+
readonly retryable: Schema.Boolean;
|
|
4118
|
+
readonly operation: Schema.optional<Schema.String>;
|
|
4119
|
+
readonly code: Schema.optional<Schema.String>;
|
|
4120
|
+
readonly message: Schema.optional<Schema.String>;
|
|
4121
|
+
readonly requestId: Schema.optional<Schema.String>;
|
|
4122
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
4123
|
+
readonly permission: Schema.optional<Schema.String>;
|
|
4124
|
+
readonly retryAfterSeconds: Schema.optional<Schema.Int>;
|
|
4125
|
+
readonly retryAt: Schema.optional<Schema.String>;
|
|
4126
|
+
readonly billingUrl: Schema.optional<Schema.String>;
|
|
4127
|
+
}>>;
|
|
3975
4128
|
}>>;
|
|
3976
4129
|
/** Where the launch is while the workspace is not ready (see `workspacePhaseSchema`). */
|
|
3977
4130
|
readonly phase: Schema.optional<Schema.Struct<{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
|
+
import { boatFailureSchema } from "./boat-failures.js";
|
|
3
4
|
import { BudgetExceededError } from "./budgets.js";
|
|
4
5
|
import { connectedAccountProviderSchema } from "./connected-accounts.js";
|
|
5
6
|
import { EndpointUrl } from "./endpoint-url.js";
|
|
@@ -176,6 +177,11 @@ export const workspacePublicationSchema = Schema.Union([
|
|
|
176
177
|
export const workspaceErrorSchema = Schema.Struct({
|
|
177
178
|
message: Schema.String,
|
|
178
179
|
code: Schema.optional(NonEmptyString),
|
|
180
|
+
/**
|
|
181
|
+
* Why Boat refused, or did not answer, the call that failed this Boat workspace's launch or image
|
|
182
|
+
* build: the kind, and Boat's own code, message and request id. Absent for any other failure.
|
|
183
|
+
*/
|
|
184
|
+
boat: Schema.optional(boatFailureSchema),
|
|
179
185
|
});
|
|
180
186
|
export const githubWorkspaceSourceSelectionSchema = Schema.Struct({
|
|
181
187
|
provider: Schema.Literal("github"),
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from "./core-api/ssh-keys.js";
|
|
|
22
22
|
export * from "./core-api/system.js";
|
|
23
23
|
export * from "./core-api/users.js";
|
|
24
24
|
export * from "./core-api/boat-accounts.js";
|
|
25
|
+
export * from "./core-api/boat-failures.js";
|
|
25
26
|
export * from "./workspace-environment.js";
|
|
26
27
|
export * from "./capture-owner-map.js";
|
|
27
28
|
export * from "./connected-account-selector.js";
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,7 @@ export * from "./core-api/ssh-keys.js";
|
|
|
22
22
|
export * from "./core-api/system.js";
|
|
23
23
|
export * from "./core-api/users.js";
|
|
24
24
|
export * from "./core-api/boat-accounts.js";
|
|
25
|
+
export * from "./core-api/boat-failures.js";
|
|
25
26
|
export * from "./workspace-environment.js";
|
|
26
27
|
export * from "./capture-owner-map.js";
|
|
27
28
|
export * from "./connected-account-selector.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sealant/api-contracts-next",
|
|
3
|
-
"version": "0.40.0-next.
|
|
3
|
+
"version": "0.40.0-next.874",
|
|
4
4
|
"description": "Contract-first HTTP API definitions for Sealant services",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"effect": "^4.0.5"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "ec1d2da64b9637f70ea4c840a75307c52c6c9f80",
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
}
|