@sealant/api-contracts-next 0.40.0-next.869 → 0.40.0-next.872

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.
@@ -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">;
@@ -918,6 +935,251 @@ export declare const inspectWorkspaceImageResponseSchema: Schema.Struct<{
918
935
  }>;
919
936
  }>;
920
937
  export type InspectWorkspaceImageResponse = typeof inspectWorkspaceImageResponseSchema.Type;
938
+ /** What a runtime does not do, with the sentence a person choosing an environment reads. */
939
+ export declare const runtimeUnsupportedSchema: Schema.Struct<{
940
+ readonly supported: Schema.Literal<false>;
941
+ readonly message: Schema.String;
942
+ }>;
943
+ export type RuntimeUnsupported = typeof runtimeUnsupportedSchema.Type;
944
+ /** Whether a runtime does one thing. A create that asks for an unsupported one is refused. */
945
+ export declare const runtimeCapabilitySchema: Schema.Union<readonly [Schema.Struct<{
946
+ readonly supported: Schema.Literal<true>;
947
+ }>, Schema.Struct<{
948
+ readonly supported: Schema.Literal<false>;
949
+ readonly message: Schema.String;
950
+ }>]>;
951
+ export type RuntimeCapability = typeof runtimeCapabilitySchema.Type;
952
+ /** The CPU architectures a runtime's workspaces run on. */
953
+ export declare const runtimeArchitectures: readonly ["x86_64", "aarch64"];
954
+ export declare const runtimeArchitectureSchema: Schema.Literals<readonly ["x86_64", "aarch64"]>;
955
+ export type RuntimeArchitecture = typeof runtimeArchitectureSchema.Type;
956
+ /** The managed OS families a workspace image is built from. */
957
+ export declare const runtimeOsFamilies: readonly ["ubuntu", "nix", "arch", "fedora"];
958
+ export type RuntimeOsFamily = (typeof runtimeOsFamilies)[number];
959
+ /**
960
+ * What one runtime supports, from the same rules a create is refused by: a create that asks a
961
+ * runtime for an item it marks unsupported is refused with that item's `message`.
962
+ */
963
+ export declare const runtimeSupportSchema: Schema.Struct<{
964
+ readonly runtime: Schema.Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
965
+ /** The managed OS families that run on this runtime (`target.os.family`). */
966
+ readonly os: Schema.Struct<{
967
+ readonly ubuntu: Schema.Union<readonly [Schema.Struct<{
968
+ readonly supported: Schema.Literal<true>;
969
+ }>, Schema.Struct<{
970
+ readonly supported: Schema.Literal<false>;
971
+ readonly message: Schema.String;
972
+ }>]>;
973
+ readonly nix: Schema.Union<readonly [Schema.Struct<{
974
+ readonly supported: Schema.Literal<true>;
975
+ }>, Schema.Struct<{
976
+ readonly supported: Schema.Literal<false>;
977
+ readonly message: Schema.String;
978
+ }>]>;
979
+ readonly arch: Schema.Union<readonly [Schema.Struct<{
980
+ readonly supported: Schema.Literal<true>;
981
+ }>, Schema.Struct<{
982
+ readonly supported: Schema.Literal<false>;
983
+ readonly message: Schema.String;
984
+ }>]>;
985
+ readonly fedora: Schema.Union<readonly [Schema.Struct<{
986
+ readonly supported: Schema.Literal<true>;
987
+ }>, Schema.Struct<{
988
+ readonly supported: Schema.Literal<false>;
989
+ readonly message: Schema.String;
990
+ }>]>;
991
+ }>;
992
+ /** A workspace built from a base image of its own (`target.os.family: "custom"`). */
993
+ readonly customImage: Schema.Union<readonly [Schema.Struct<{
994
+ readonly supported: Schema.Literal<true>;
995
+ }>, Schema.Struct<{
996
+ readonly supported: Schema.Literal<false>;
997
+ readonly message: Schema.String;
998
+ }>]>;
999
+ /** Directories of the deployment's own servers bound into the workspace (mount sources). */
1000
+ readonly hostDirectories: Schema.Union<readonly [Schema.Struct<{
1001
+ readonly supported: Schema.Literal<true>;
1002
+ }>, Schema.Struct<{
1003
+ readonly supported: Schema.Literal<false>;
1004
+ readonly message: Schema.String;
1005
+ }>]>;
1006
+ /** Docker inside the workspace (`tooling.services.docker`). */
1007
+ readonly docker: Schema.Union<readonly [Schema.Struct<{
1008
+ readonly supported: Schema.Literal<true>;
1009
+ }>, Schema.Struct<{
1010
+ readonly supported: Schema.Literal<false>;
1011
+ readonly message: Schema.String;
1012
+ }>]>;
1013
+ /** The workspace run under gVisor (`runtime.ociRuntime: "runsc"`). */
1014
+ readonly gvisor: Schema.Union<readonly [Schema.Struct<{
1015
+ readonly supported: Schema.Literal<true>;
1016
+ }>, Schema.Struct<{
1017
+ readonly supported: Schema.Literal<false>;
1018
+ readonly message: Schema.String;
1019
+ }>]>;
1020
+ /** Kubernetes Secrets, ConfigMaps and a service account (`runtime.envFrom`, `kubernetes`). */
1021
+ readonly clusterEnv: Schema.Union<readonly [Schema.Struct<{
1022
+ readonly supported: Schema.Literal<true>;
1023
+ }>, Schema.Struct<{
1024
+ readonly supported: Schema.Literal<false>;
1025
+ readonly message: Schema.String;
1026
+ }>]>;
1027
+ /** A workspace started by cloning a repository (a `git` source), not from a capture. */
1028
+ readonly gitSource: Schema.Union<readonly [Schema.Struct<{
1029
+ readonly supported: Schema.Literal<true>;
1030
+ }>, Schema.Struct<{
1031
+ readonly supported: Schema.Literal<false>;
1032
+ readonly message: Schema.String;
1033
+ }>]>;
1034
+ /** Dotfiles sent with the create as archives (`runtime.dotfilesArchives`). */
1035
+ readonly dotfilesArchives: Schema.Union<readonly [Schema.Struct<{
1036
+ readonly supported: Schema.Literal<true>;
1037
+ }>, Schema.Struct<{
1038
+ readonly supported: Schema.Literal<false>;
1039
+ readonly message: Schema.String;
1040
+ }>]>;
1041
+ /** A screen (an X display) inside the workspace, and the CPU architectures it runs on. */
1042
+ readonly screen: Schema.Union<readonly [Schema.Struct<{
1043
+ readonly supported: Schema.Literal<true>;
1044
+ readonly architectures: Schema.$Array<Schema.Literals<readonly ["x86_64", "aarch64"]>>;
1045
+ }>, Schema.Struct<{
1046
+ readonly supported: Schema.Literal<false>;
1047
+ readonly message: Schema.String;
1048
+ }>]>;
1049
+ /** Ports inside the workspace the runtime holds for itself: nothing else can listen on them. */
1050
+ readonly reservedPorts: Schema.$Array<Schema.Number>;
1051
+ /**
1052
+ * A project's resources linked to the workspace: `live` reaches a running workspace when it is
1053
+ * linked, `next-start` only once the workspace starts again.
1054
+ */
1055
+ readonly resources: Schema.Union<readonly [Schema.Struct<{
1056
+ readonly supported: Schema.Literal<true>;
1057
+ readonly attach: Schema.Literals<readonly ["live", "next-start"]>;
1058
+ }>, Schema.Struct<{
1059
+ readonly supported: Schema.Literal<false>;
1060
+ readonly message: Schema.String;
1061
+ }>]>;
1062
+ /** Whether a workspace that sits idle costs money, and the sentence that says so. */
1063
+ readonly idleCost: Schema.Struct<{
1064
+ readonly charged: Schema.Boolean;
1065
+ readonly message: Schema.String;
1066
+ }>;
1067
+ }>;
1068
+ export type RuntimeSupport = typeof runtimeSupportSchema.Type;
1069
+ /**
1070
+ * The runtimes this install launches workspaces on, and what each supports. `default` is the one
1071
+ * a create that names no runtime (`target.runtime.family: "auto"`) runs on; it is listed first.
1072
+ * A runtime that is not listed is one this install cannot launch.
1073
+ */
1074
+ export declare const workspaceRuntimesResponseSchema: Schema.Struct<{
1075
+ readonly default: Schema.Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
1076
+ readonly runtimes: Schema.$Array<Schema.Struct<{
1077
+ readonly runtime: Schema.Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
1078
+ /** The managed OS families that run on this runtime (`target.os.family`). */
1079
+ readonly os: Schema.Struct<{
1080
+ readonly ubuntu: Schema.Union<readonly [Schema.Struct<{
1081
+ readonly supported: Schema.Literal<true>;
1082
+ }>, Schema.Struct<{
1083
+ readonly supported: Schema.Literal<false>;
1084
+ readonly message: Schema.String;
1085
+ }>]>;
1086
+ readonly nix: Schema.Union<readonly [Schema.Struct<{
1087
+ readonly supported: Schema.Literal<true>;
1088
+ }>, Schema.Struct<{
1089
+ readonly supported: Schema.Literal<false>;
1090
+ readonly message: Schema.String;
1091
+ }>]>;
1092
+ readonly arch: Schema.Union<readonly [Schema.Struct<{
1093
+ readonly supported: Schema.Literal<true>;
1094
+ }>, Schema.Struct<{
1095
+ readonly supported: Schema.Literal<false>;
1096
+ readonly message: Schema.String;
1097
+ }>]>;
1098
+ readonly fedora: Schema.Union<readonly [Schema.Struct<{
1099
+ readonly supported: Schema.Literal<true>;
1100
+ }>, Schema.Struct<{
1101
+ readonly supported: Schema.Literal<false>;
1102
+ readonly message: Schema.String;
1103
+ }>]>;
1104
+ }>;
1105
+ /** A workspace built from a base image of its own (`target.os.family: "custom"`). */
1106
+ readonly customImage: Schema.Union<readonly [Schema.Struct<{
1107
+ readonly supported: Schema.Literal<true>;
1108
+ }>, Schema.Struct<{
1109
+ readonly supported: Schema.Literal<false>;
1110
+ readonly message: Schema.String;
1111
+ }>]>;
1112
+ /** Directories of the deployment's own servers bound into the workspace (mount sources). */
1113
+ readonly hostDirectories: Schema.Union<readonly [Schema.Struct<{
1114
+ readonly supported: Schema.Literal<true>;
1115
+ }>, Schema.Struct<{
1116
+ readonly supported: Schema.Literal<false>;
1117
+ readonly message: Schema.String;
1118
+ }>]>;
1119
+ /** Docker inside the workspace (`tooling.services.docker`). */
1120
+ readonly docker: Schema.Union<readonly [Schema.Struct<{
1121
+ readonly supported: Schema.Literal<true>;
1122
+ }>, Schema.Struct<{
1123
+ readonly supported: Schema.Literal<false>;
1124
+ readonly message: Schema.String;
1125
+ }>]>;
1126
+ /** The workspace run under gVisor (`runtime.ociRuntime: "runsc"`). */
1127
+ readonly gvisor: Schema.Union<readonly [Schema.Struct<{
1128
+ readonly supported: Schema.Literal<true>;
1129
+ }>, Schema.Struct<{
1130
+ readonly supported: Schema.Literal<false>;
1131
+ readonly message: Schema.String;
1132
+ }>]>;
1133
+ /** Kubernetes Secrets, ConfigMaps and a service account (`runtime.envFrom`, `kubernetes`). */
1134
+ readonly clusterEnv: Schema.Union<readonly [Schema.Struct<{
1135
+ readonly supported: Schema.Literal<true>;
1136
+ }>, Schema.Struct<{
1137
+ readonly supported: Schema.Literal<false>;
1138
+ readonly message: Schema.String;
1139
+ }>]>;
1140
+ /** A workspace started by cloning a repository (a `git` source), not from a capture. */
1141
+ readonly gitSource: Schema.Union<readonly [Schema.Struct<{
1142
+ readonly supported: Schema.Literal<true>;
1143
+ }>, Schema.Struct<{
1144
+ readonly supported: Schema.Literal<false>;
1145
+ readonly message: Schema.String;
1146
+ }>]>;
1147
+ /** Dotfiles sent with the create as archives (`runtime.dotfilesArchives`). */
1148
+ readonly dotfilesArchives: Schema.Union<readonly [Schema.Struct<{
1149
+ readonly supported: Schema.Literal<true>;
1150
+ }>, Schema.Struct<{
1151
+ readonly supported: Schema.Literal<false>;
1152
+ readonly message: Schema.String;
1153
+ }>]>;
1154
+ /** A screen (an X display) inside the workspace, and the CPU architectures it runs on. */
1155
+ readonly screen: Schema.Union<readonly [Schema.Struct<{
1156
+ readonly supported: Schema.Literal<true>;
1157
+ readonly architectures: Schema.$Array<Schema.Literals<readonly ["x86_64", "aarch64"]>>;
1158
+ }>, Schema.Struct<{
1159
+ readonly supported: Schema.Literal<false>;
1160
+ readonly message: Schema.String;
1161
+ }>]>;
1162
+ /** Ports inside the workspace the runtime holds for itself: nothing else can listen on them. */
1163
+ readonly reservedPorts: Schema.$Array<Schema.Number>;
1164
+ /**
1165
+ * A project's resources linked to the workspace: `live` reaches a running workspace when it is
1166
+ * linked, `next-start` only once the workspace starts again.
1167
+ */
1168
+ readonly resources: Schema.Union<readonly [Schema.Struct<{
1169
+ readonly supported: Schema.Literal<true>;
1170
+ readonly attach: Schema.Literals<readonly ["live", "next-start"]>;
1171
+ }>, Schema.Struct<{
1172
+ readonly supported: Schema.Literal<false>;
1173
+ readonly message: Schema.String;
1174
+ }>]>;
1175
+ /** Whether a workspace that sits idle costs money, and the sentence that says so. */
1176
+ readonly idleCost: Schema.Struct<{
1177
+ readonly charged: Schema.Boolean;
1178
+ readonly message: Schema.String;
1179
+ }>;
1180
+ }>>;
1181
+ }>;
1182
+ export type WorkspaceRuntimesResponse = typeof workspaceRuntimesResponseSchema.Type;
921
1183
  /**
922
1184
  * Stable codes of a refused connected account, carried with the account's `provider` by the error
923
1185
  * that refuses it (a create's or a credentials put's): `connected-account-missing`
@@ -1587,6 +1849,23 @@ export declare const workspaceSummarySchema: Schema.Struct<{
1587
1849
  readonly error: Schema.optional<Schema.Struct<{
1588
1850
  readonly message: Schema.String;
1589
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
+ }>>;
1590
1869
  }>>;
1591
1870
  /** Where the launch is while the workspace is not ready (see `workspacePhaseSchema`). */
1592
1871
  readonly phase: Schema.optional<Schema.Struct<{
@@ -1801,6 +2080,23 @@ export declare const workspaceDetailsSchema: Schema.Struct<{
1801
2080
  readonly error: Schema.optional<Schema.Struct<{
1802
2081
  readonly message: Schema.String;
1803
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
+ }>>;
1804
2100
  }>>;
1805
2101
  /** Where the launch is while the workspace is not ready (see `workspacePhaseSchema`). */
1806
2102
  readonly phase: Schema.optional<Schema.Struct<{
@@ -2016,6 +2312,23 @@ export declare const listWorkspacesResponseSchema: Schema.Struct<{
2016
2312
  readonly error: Schema.optional<Schema.Struct<{
2017
2313
  readonly message: Schema.String;
2018
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
+ }>>;
2019
2332
  }>>;
2020
2333
  /** Where the launch is while the workspace is not ready (see `workspacePhaseSchema`). */
2021
2334
  readonly phase: Schema.optional<Schema.Struct<{
@@ -2152,6 +2465,23 @@ export declare const workspaceAttemptSummarySchema: Schema.Struct<{
2152
2465
  readonly error: Schema.optional<Schema.Struct<{
2153
2466
  readonly message: Schema.String;
2154
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
+ }>>;
2155
2485
  }>>;
2156
2486
  readonly spec: Schema.optional<Schema.Unknown>;
2157
2487
  readonly queuedAt: Schema.String;
@@ -2269,6 +2599,23 @@ export declare const listWorkspaceAttemptsResponseSchema: Schema.Struct<{
2269
2599
  readonly error: Schema.optional<Schema.Struct<{
2270
2600
  readonly message: Schema.String;
2271
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
+ }>>;
2272
2619
  }>>;
2273
2620
  readonly spec: Schema.optional<Schema.Unknown>;
2274
2621
  readonly queuedAt: Schema.String;
@@ -2946,6 +3293,23 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2946
3293
  readonly error: Schema.optional<Schema.Struct<{
2947
3294
  readonly message: Schema.String;
2948
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
+ }>>;
2949
3313
  }>>;
2950
3314
  /** Where the launch is while the workspace is not ready (see `workspacePhaseSchema`). */
2951
3315
  readonly phase: Schema.optional<Schema.Struct<{
@@ -3416,6 +3780,23 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
3416
3780
  readonly error: Schema.optional<Schema.Struct<{
3417
3781
  readonly message: Schema.String;
3418
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
+ }>>;
3419
3800
  }>>;
3420
3801
  readonly spec: Schema.optional<Schema.Unknown>;
3421
3802
  readonly queuedAt: Schema.String;
@@ -3504,7 +3885,114 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
3504
3885
  readonly message: Schema.optional<Schema.String>;
3505
3886
  readonly data: Schema.optional<Schema.Unknown>;
3506
3887
  }>>;
3507
- }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listWorkspaces", "GET", "/", never, Schema.toCodecStringTree<Schema.Struct<{
3888
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listWorkspaceRuntimes", "GET", "/runtimes", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
3889
+ readonly default: Schema.Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
3890
+ readonly runtimes: Schema.$Array<Schema.Struct<{
3891
+ readonly runtime: Schema.Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
3892
+ /** The managed OS families that run on this runtime (`target.os.family`). */
3893
+ readonly os: Schema.Struct<{
3894
+ readonly ubuntu: Schema.Union<readonly [Schema.Struct<{
3895
+ readonly supported: Schema.Literal<true>;
3896
+ }>, Schema.Struct<{
3897
+ readonly supported: Schema.Literal<false>;
3898
+ readonly message: Schema.String;
3899
+ }>]>;
3900
+ readonly nix: Schema.Union<readonly [Schema.Struct<{
3901
+ readonly supported: Schema.Literal<true>;
3902
+ }>, Schema.Struct<{
3903
+ readonly supported: Schema.Literal<false>;
3904
+ readonly message: Schema.String;
3905
+ }>]>;
3906
+ readonly arch: Schema.Union<readonly [Schema.Struct<{
3907
+ readonly supported: Schema.Literal<true>;
3908
+ }>, Schema.Struct<{
3909
+ readonly supported: Schema.Literal<false>;
3910
+ readonly message: Schema.String;
3911
+ }>]>;
3912
+ readonly fedora: Schema.Union<readonly [Schema.Struct<{
3913
+ readonly supported: Schema.Literal<true>;
3914
+ }>, Schema.Struct<{
3915
+ readonly supported: Schema.Literal<false>;
3916
+ readonly message: Schema.String;
3917
+ }>]>;
3918
+ }>;
3919
+ /** A workspace built from a base image of its own (`target.os.family: "custom"`). */
3920
+ readonly customImage: Schema.Union<readonly [Schema.Struct<{
3921
+ readonly supported: Schema.Literal<true>;
3922
+ }>, Schema.Struct<{
3923
+ readonly supported: Schema.Literal<false>;
3924
+ readonly message: Schema.String;
3925
+ }>]>;
3926
+ /** Directories of the deployment's own servers bound into the workspace (mount sources). */
3927
+ readonly hostDirectories: Schema.Union<readonly [Schema.Struct<{
3928
+ readonly supported: Schema.Literal<true>;
3929
+ }>, Schema.Struct<{
3930
+ readonly supported: Schema.Literal<false>;
3931
+ readonly message: Schema.String;
3932
+ }>]>;
3933
+ /** Docker inside the workspace (`tooling.services.docker`). */
3934
+ readonly docker: Schema.Union<readonly [Schema.Struct<{
3935
+ readonly supported: Schema.Literal<true>;
3936
+ }>, Schema.Struct<{
3937
+ readonly supported: Schema.Literal<false>;
3938
+ readonly message: Schema.String;
3939
+ }>]>;
3940
+ /** The workspace run under gVisor (`runtime.ociRuntime: "runsc"`). */
3941
+ readonly gvisor: Schema.Union<readonly [Schema.Struct<{
3942
+ readonly supported: Schema.Literal<true>;
3943
+ }>, Schema.Struct<{
3944
+ readonly supported: Schema.Literal<false>;
3945
+ readonly message: Schema.String;
3946
+ }>]>;
3947
+ /** Kubernetes Secrets, ConfigMaps and a service account (`runtime.envFrom`, `kubernetes`). */
3948
+ readonly clusterEnv: Schema.Union<readonly [Schema.Struct<{
3949
+ readonly supported: Schema.Literal<true>;
3950
+ }>, Schema.Struct<{
3951
+ readonly supported: Schema.Literal<false>;
3952
+ readonly message: Schema.String;
3953
+ }>]>;
3954
+ /** A workspace started by cloning a repository (a `git` source), not from a capture. */
3955
+ readonly gitSource: Schema.Union<readonly [Schema.Struct<{
3956
+ readonly supported: Schema.Literal<true>;
3957
+ }>, Schema.Struct<{
3958
+ readonly supported: Schema.Literal<false>;
3959
+ readonly message: Schema.String;
3960
+ }>]>;
3961
+ /** Dotfiles sent with the create as archives (`runtime.dotfilesArchives`). */
3962
+ readonly dotfilesArchives: Schema.Union<readonly [Schema.Struct<{
3963
+ readonly supported: Schema.Literal<true>;
3964
+ }>, Schema.Struct<{
3965
+ readonly supported: Schema.Literal<false>;
3966
+ readonly message: Schema.String;
3967
+ }>]>;
3968
+ /** A screen (an X display) inside the workspace, and the CPU architectures it runs on. */
3969
+ readonly screen: Schema.Union<readonly [Schema.Struct<{
3970
+ readonly supported: Schema.Literal<true>;
3971
+ readonly architectures: Schema.$Array<Schema.Literals<readonly ["x86_64", "aarch64"]>>;
3972
+ }>, Schema.Struct<{
3973
+ readonly supported: Schema.Literal<false>;
3974
+ readonly message: Schema.String;
3975
+ }>]>;
3976
+ /** Ports inside the workspace the runtime holds for itself: nothing else can listen on them. */
3977
+ readonly reservedPorts: Schema.$Array<Schema.Number>;
3978
+ /**
3979
+ * A project's resources linked to the workspace: `live` reaches a running workspace when it is
3980
+ * linked, `next-start` only once the workspace starts again.
3981
+ */
3982
+ readonly resources: Schema.Union<readonly [Schema.Struct<{
3983
+ readonly supported: Schema.Literal<true>;
3984
+ readonly attach: Schema.Literals<readonly ["live", "next-start"]>;
3985
+ }>, Schema.Struct<{
3986
+ readonly supported: Schema.Literal<false>;
3987
+ readonly message: Schema.String;
3988
+ }>]>;
3989
+ /** Whether a workspace that sits idle costs money, and the sentence that says so. */
3990
+ readonly idleCost: Schema.Struct<{
3991
+ readonly charged: Schema.Boolean;
3992
+ readonly message: Schema.String;
3993
+ }>;
3994
+ }>>;
3995
+ }>>, Schema.toCodecJson<typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listWorkspaces", "GET", "/", never, Schema.toCodecStringTree<Schema.Struct<{
3508
3996
  readonly ownerUserId: Schema.String;
3509
3997
  readonly status: Schema.optional<Schema.Literals<readonly ["queued", "running", "ready", "failed", "cancelled", "stopped", "retained"]>>;
3510
3998
  readonly limit: Schema.optional<Schema.String>;
@@ -3620,6 +4108,23 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
3620
4108
  readonly error: Schema.optional<Schema.Struct<{
3621
4109
  readonly message: Schema.String;
3622
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
+ }>>;
3623
4128
  }>>;
3624
4129
  /** Where the launch is while the workspace is not ready (see `workspacePhaseSchema`). */
3625
4130
  readonly phase: Schema.optional<Schema.Struct<{
@@ -3897,7 +4402,7 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
3897
4402
  /** The new attempt driving the fresh launch. */
3898
4403
  readonly runId: Schema.String;
3899
4404
  readonly status: Schema.Literals<readonly ["queued", "running", "ready", "failed", "cancelled", "stopped", "retained"]>;
3900
- }>>, Schema.toCodecJson<typeof BudgetExceededError | typeof WorkspaceBadRequestError | typeof WorkspaceRuntimeRequirementUnsupportedError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceServiceUnavailableError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"stopWorkspace", "POST", "/:workspaceId/stop", Schema.toCodecStringTree<Schema.Struct<{
4405
+ }>>, Schema.toCodecJson<typeof BudgetExceededError | typeof WorkspaceBadRequestError | typeof WorkspaceRuntimeEnvReferencesUnsupportedError | typeof WorkspaceRuntimeRequirementUnsupportedError | typeof WorkspaceDockerServiceUnsupportedError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceServiceUnavailableError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"stopWorkspace", "POST", "/:workspaceId/stop", Schema.toCodecStringTree<Schema.Struct<{
3901
4406
  readonly workspaceId: Schema.String;
3902
4407
  }>>, never, Schema.toCodecJson<Schema.Struct<{
3903
4408
  readonly ownerUserId: Schema.String;