@sealant/api-contracts-next 0.39.0-next.749 → 0.39.0-next.751
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/access-tokens.d.ts +9 -9
- package/dist/core-api/access-tokens.js +4 -4
- package/dist/core-api/budgets.js +1 -1
- package/dist/core-api/connected-accounts.d.ts +12 -12
- package/dist/core-api/connected-accounts.js +6 -6
- package/dist/core-api/control-plane.d.ts +826 -826
- package/dist/core-api/control-plane.js +1 -1
- package/dist/core-api/github.d.ts +27 -27
- package/dist/core-api/github.js +7 -7
- package/dist/core-api/inference.d.ts +4 -4
- package/dist/core-api/inference.js +6 -6
- package/dist/core-api/packages.d.ts +4 -4
- package/dist/core-api/packages.js +3 -3
- package/dist/core-api/profiles.d.ts +10 -10
- package/dist/core-api/profiles.js +5 -5
- package/dist/core-api/registries.d.ts +14 -14
- package/dist/core-api/registries.js +3 -3
- package/dist/core-api/request-refusal.d.ts +8 -7
- package/dist/core-api/request-refusal.js +12 -12
- package/dist/core-api/runs.d.ts +27 -27
- package/dist/core-api/runs.js +4 -4
- package/dist/core-api/sessions.d.ts +35 -35
- package/dist/core-api/sessions.js +8 -8
- package/dist/core-api/ssh-keys.d.ts +12 -12
- package/dist/core-api/ssh-keys.js +7 -7
- package/dist/core-api/system.d.ts +6 -6
- package/dist/core-api/system.js +2 -2
- package/dist/core-api/users.d.ts +9 -9
- package/dist/core-api/users.js +5 -5
- package/dist/core-api/workspaces.d.ts +75 -75
- package/dist/core-api/workspaces.js +13 -13
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import { BudgetExceededError } from "./budgets.js";
|
|
4
4
|
import { connectedAccountProviderSchema } from "./connected-accounts.js";
|
|
5
5
|
import { runCommandSchema, runSchema } from "./runs.js";
|
|
@@ -1120,7 +1120,7 @@ export const workspaceGatewayHeadersSchema = Schema.Struct({
|
|
|
1120
1120
|
// removing a key ends what connections opened with it can still open.
|
|
1121
1121
|
"x-sealant-ssh-key-fingerprint": Schema.optional(NonEmptyString),
|
|
1122
1122
|
});
|
|
1123
|
-
export class WorkspaceBadRequestError extends Schema.
|
|
1123
|
+
export class WorkspaceBadRequestError extends Schema.TaggedError()("WorkspaceBadRequestError", {
|
|
1124
1124
|
message: Schema.String,
|
|
1125
1125
|
}, { httpApiStatus: 400 }) {
|
|
1126
1126
|
}
|
|
@@ -1132,7 +1132,7 @@ export class WorkspaceBadRequestError extends Schema.TaggedErrorClass()("Workspa
|
|
|
1132
1132
|
* code is how a caller learns the install cannot resolve cluster bindings, instead of trusting a
|
|
1133
1133
|
* config flag that can lie.
|
|
1134
1134
|
*/
|
|
1135
|
-
export class WorkspaceRuntimeEnvReferencesUnsupportedError extends Schema.
|
|
1135
|
+
export class WorkspaceRuntimeEnvReferencesUnsupportedError extends Schema.TaggedError()("WorkspaceRuntimeEnvReferencesUnsupportedError", {
|
|
1136
1136
|
message: Schema.String,
|
|
1137
1137
|
code: Schema.Literals(["runtime-env-references-unsupported"]),
|
|
1138
1138
|
}, { httpApiStatus: 422 }) {
|
|
@@ -1143,12 +1143,12 @@ export class WorkspaceRuntimeEnvReferencesUnsupportedError extends Schema.Tagged
|
|
|
1143
1143
|
* image, leaving the default image at its restricted Linux capability set. Refused synchronously
|
|
1144
1144
|
* at POST /v1/workspaces; the stable `code` is the consumer's capability probe.
|
|
1145
1145
|
*/
|
|
1146
|
-
export class WorkspaceDockerServiceUnsupportedError extends Schema.
|
|
1146
|
+
export class WorkspaceDockerServiceUnsupportedError extends Schema.TaggedError()("WorkspaceDockerServiceUnsupportedError", {
|
|
1147
1147
|
message: Schema.String,
|
|
1148
1148
|
code: Schema.Literals(["workspace-docker-unsupported"]),
|
|
1149
1149
|
}, { httpApiStatus: 422 }) {
|
|
1150
1150
|
}
|
|
1151
|
-
export class WorkspaceUnauthorizedError extends Schema.
|
|
1151
|
+
export class WorkspaceUnauthorizedError extends Schema.TaggedError()("WorkspaceUnauthorizedError", {
|
|
1152
1152
|
message: Schema.String,
|
|
1153
1153
|
}, { httpApiStatus: 401 }) {
|
|
1154
1154
|
}
|
|
@@ -1158,7 +1158,7 @@ export class WorkspaceUnauthorizedError extends Schema.TaggedErrorClass()("Works
|
|
|
1158
1158
|
* connections opened with the key on this refusal alone, never on another 401 (a gateway token
|
|
1159
1159
|
* mismatch while the API and the gateway roll).
|
|
1160
1160
|
*/
|
|
1161
|
-
export class WorkspaceSshKeyNoLongerRegisteredError extends Schema.
|
|
1161
|
+
export class WorkspaceSshKeyNoLongerRegisteredError extends Schema.TaggedError()("WorkspaceSshKeyNoLongerRegisteredError", {
|
|
1162
1162
|
message: Schema.String,
|
|
1163
1163
|
}, { httpApiStatus: 401 }) {
|
|
1164
1164
|
}
|
|
@@ -1167,16 +1167,16 @@ export class WorkspaceSshKeyNoLongerRegisteredError extends Schema.TaggedErrorCl
|
|
|
1167
1167
|
* capture owner map (`ssh-owner-needs-owner-map`), or the owner map or `credentialsHome` does not
|
|
1168
1168
|
* give the owner's bound person their own uid and home (`ssh-owner-mismatch`). Names no path.
|
|
1169
1169
|
*/
|
|
1170
|
-
export class WorkspaceSshOwnerRefusedError extends Schema.
|
|
1170
|
+
export class WorkspaceSshOwnerRefusedError extends Schema.TaggedError()("WorkspaceSshOwnerRefusedError", {
|
|
1171
1171
|
message: Schema.String,
|
|
1172
1172
|
code: Schema.Literals(["ssh-owner-unbound", "ssh-owner-needs-owner-map", "ssh-owner-mismatch"]),
|
|
1173
1173
|
}, { httpApiStatus: 403 }) {
|
|
1174
1174
|
}
|
|
1175
|
-
export class WorkspaceForbiddenError extends Schema.
|
|
1175
|
+
export class WorkspaceForbiddenError extends Schema.TaggedError()("WorkspaceForbiddenError", {
|
|
1176
1176
|
message: Schema.String,
|
|
1177
1177
|
}, { httpApiStatus: 403 }) {
|
|
1178
1178
|
}
|
|
1179
|
-
export class WorkspaceNotFoundError extends Schema.
|
|
1179
|
+
export class WorkspaceNotFoundError extends Schema.TaggedError()("WorkspaceNotFoundError", {
|
|
1180
1180
|
message: Schema.String,
|
|
1181
1181
|
/** A stable reason, where one applies (`connected-account-missing`). */
|
|
1182
1182
|
code: Schema.optional(NonEmptyString),
|
|
@@ -1184,7 +1184,7 @@ export class WorkspaceNotFoundError extends Schema.TaggedErrorClass()("Workspace
|
|
|
1184
1184
|
provider: Schema.optional(connectedAccountProviderSchema),
|
|
1185
1185
|
}, { httpApiStatus: 404 }) {
|
|
1186
1186
|
}
|
|
1187
|
-
export class WorkspaceConflictError extends Schema.
|
|
1187
|
+
export class WorkspaceConflictError extends Schema.TaggedError()("WorkspaceConflictError", {
|
|
1188
1188
|
message: Schema.String,
|
|
1189
1189
|
/** A stable reason, where one applies (`create-cancelled`: the create's key was cancelled). */
|
|
1190
1190
|
code: Schema.optional(NonEmptyString),
|
|
@@ -1192,15 +1192,15 @@ export class WorkspaceConflictError extends Schema.TaggedErrorClass()("Workspace
|
|
|
1192
1192
|
provider: Schema.optional(connectedAccountProviderSchema),
|
|
1193
1193
|
}, { httpApiStatus: 409 }) {
|
|
1194
1194
|
}
|
|
1195
|
-
export class WorkspaceBadGatewayError extends Schema.
|
|
1195
|
+
export class WorkspaceBadGatewayError extends Schema.TaggedError()("WorkspaceBadGatewayError", {
|
|
1196
1196
|
message: Schema.String,
|
|
1197
1197
|
}, { httpApiStatus: 502 }) {
|
|
1198
1198
|
}
|
|
1199
|
-
export class WorkspaceServiceUnavailableError extends Schema.
|
|
1199
|
+
export class WorkspaceServiceUnavailableError extends Schema.TaggedError()("WorkspaceServiceUnavailableError", {
|
|
1200
1200
|
message: Schema.String,
|
|
1201
1201
|
}, { httpApiStatus: 503 }) {
|
|
1202
1202
|
}
|
|
1203
|
-
export class WorkspaceInternalServerError extends Schema.
|
|
1203
|
+
export class WorkspaceInternalServerError extends Schema.TaggedError()("WorkspaceInternalServerError", {
|
|
1204
1204
|
message: Schema.String,
|
|
1205
1205
|
}, { httpApiStatus: 500 }) {
|
|
1206
1206
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sealant/api-contracts-next",
|
|
3
|
-
"version": "0.39.0-next.
|
|
3
|
+
"version": "0.39.0-next.751",
|
|
4
4
|
"description": "Contract-first HTTP API definitions for Sealant services",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"node": ">=20"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"effect": "
|
|
33
|
+
"effect": "^4.0.5"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "0a9cf91c4c4e62d559d2ece47260f184b1a0e97d",
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
}
|