@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.
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/unstable/httpapi";
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.TaggedErrorClass()("WorkspaceBadRequestError", {
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.TaggedErrorClass()("WorkspaceRuntimeEnvReferencesUnsupportedError", {
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.TaggedErrorClass()("WorkspaceDockerServiceUnsupportedError", {
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.TaggedErrorClass()("WorkspaceUnauthorizedError", {
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.TaggedErrorClass()("WorkspaceSshKeyNoLongerRegisteredError", {
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.TaggedErrorClass()("WorkspaceSshOwnerRefusedError", {
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.TaggedErrorClass()("WorkspaceForbiddenError", {
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.TaggedErrorClass()("WorkspaceNotFoundError", {
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.TaggedErrorClass()("WorkspaceConflictError", {
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.TaggedErrorClass()("WorkspaceBadGatewayError", {
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.TaggedErrorClass()("WorkspaceServiceUnavailableError", {
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.TaggedErrorClass()("WorkspaceInternalServerError", {
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.749",
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": ">=4.0.0-beta.85 <5"
33
+ "effect": "^4.0.5"
34
34
  },
35
- "gitHead": "df554db4555d658fb016ed150ead6ccd7a8ea84c",
35
+ "gitHead": "0a9cf91c4c4e62d559d2ece47260f184b1a0e97d",
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  }