@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.
@@ -7,7 +7,7 @@
7
7
  * then on. Sign-in credentials are never part of this surface — better-auth (web) owns those.
8
8
  */
9
9
  import { Schema } from "effect";
10
- import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
10
+ import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
11
11
  export declare const userSchema: Schema.Struct<{
12
12
  readonly userId: Schema.String;
13
13
  readonly email: Schema.String;
@@ -80,13 +80,13 @@ declare const UserInternalServerError_base: Schema.Class<UserInternalServerError
80
80
  }>, import("effect/Cause").YieldableError>;
81
81
  export declare class UserInternalServerError extends UserInternalServerError_base {
82
82
  }
83
- export declare const UsersGroup: HttpApiGroup.HttpApiGroup<"users", HttpApiEndpoint.HttpApiEndpoint<"bindUserPerson", "POST", "/:userId/person", HttpApiEndpoint.StringTree<Schema.Struct<{
83
+ export declare const UsersGroup: HttpApiGroup.HttpApiGroup<"users", HttpApiEndpoint.HttpApiEndpoint<"bindUserPerson", "POST", "/:userId/person", Schema.toCodecStringTree<Schema.Struct<{
84
84
  readonly userId: Schema.String;
85
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
85
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
86
86
  readonly id: Schema.String;
87
87
  readonly uid: Schema.Int;
88
88
  readonly home: Schema.String;
89
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
89
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
90
90
  readonly userId: Schema.String;
91
91
  readonly person: Schema.Struct<{
92
92
  readonly id: Schema.String;
@@ -95,25 +95,25 @@ export declare const UsersGroup: HttpApiGroup.HttpApiGroup<"users", HttpApiEndpo
95
95
  }>;
96
96
  /** True when this call made the binding; false when it was already exactly this. */
97
97
  readonly created: Schema.Boolean;
98
- }>>, HttpApiEndpoint.Json<typeof UserPersonConflictError | typeof UserBadRequestError | typeof UserNotFoundError | typeof UserInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ensureUser", "POST", "/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
98
+ }>>, Schema.toCodecJson<typeof UserPersonConflictError | typeof UserBadRequestError | typeof UserNotFoundError | typeof UserInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ensureUser", "POST", "/", never, never, Schema.toCodecJson<Schema.Struct<{
99
99
  /** Matched case-insensitively; the stored form is lower-cased. */
100
100
  readonly email: Schema.String;
101
101
  readonly name: Schema.String;
102
102
  /** Caller-chosen id for a NEW user (`usr_…`); ignored when the email already exists. */
103
103
  readonly userId: Schema.optional<Schema.String>;
104
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
104
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
105
105
  readonly userId: Schema.String;
106
106
  readonly email: Schema.String;
107
107
  readonly name: Schema.String;
108
108
  readonly createdAt: Schema.String;
109
109
  /** True when this call created the user. */
110
110
  readonly created: Schema.Boolean;
111
- }>>, HttpApiEndpoint.Json<typeof UserBadRequestError | typeof UserInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getUser", "GET", "/:userId", HttpApiEndpoint.StringTree<Schema.Struct<{
111
+ }>>, Schema.toCodecJson<typeof UserBadRequestError | typeof UserInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getUser", "GET", "/:userId", Schema.toCodecStringTree<Schema.Struct<{
112
112
  readonly userId: Schema.String;
113
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
113
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
114
114
  readonly userId: Schema.String;
115
115
  readonly email: Schema.String;
116
116
  readonly name: Schema.String;
117
117
  readonly createdAt: Schema.String;
118
- }>>, HttpApiEndpoint.Json<typeof UserNotFoundError | typeof UserInternalServerError>, never, never>, false>;
118
+ }>>, Schema.toCodecJson<typeof UserNotFoundError | typeof UserInternalServerError>, never, never>, false>;
119
119
  export {};
@@ -7,7 +7,7 @@
7
7
  * then on. Sign-in credentials are never part of this surface — better-auth (web) owns those.
8
8
  */
9
9
  import { Schema } from "effect";
10
- import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi";
10
+ import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api";
11
11
  const NonEmptyString = Schema.String.check(Schema.isNonEmpty(), Schema.isTrimmed());
12
12
  export const userSchema = Schema.Struct({
13
13
  userId: NonEmptyString,
@@ -48,16 +48,16 @@ export const bindUserPersonResponseSchema = Schema.Struct({
48
48
  * (`person-binding-differs`), or the person id or uid is another user's (`person-taken`). A
49
49
  * binding is never changed through the API; the answer names no other user's values.
50
50
  */
51
- export class UserPersonConflictError extends Schema.TaggedErrorClass()("UserPersonConflictError", {
51
+ export class UserPersonConflictError extends Schema.TaggedError()("UserPersonConflictError", {
52
52
  message: Schema.String,
53
53
  code: Schema.Literals(["person-binding-differs", "person-taken"]),
54
54
  }, { httpApiStatus: 409 }) {
55
55
  }
56
- export class UserBadRequestError extends Schema.TaggedErrorClass()("UserBadRequestError", { message: Schema.String }, { httpApiStatus: 400 }) {
56
+ export class UserBadRequestError extends Schema.TaggedError()("UserBadRequestError", { message: Schema.String }, { httpApiStatus: 400 }) {
57
57
  }
58
- export class UserNotFoundError extends Schema.TaggedErrorClass()("UserNotFoundError", { message: Schema.String }, { httpApiStatus: 404 }) {
58
+ export class UserNotFoundError extends Schema.TaggedError()("UserNotFoundError", { message: Schema.String }, { httpApiStatus: 404 }) {
59
59
  }
60
- export class UserInternalServerError extends Schema.TaggedErrorClass()("UserInternalServerError", { message: Schema.String }, { httpApiStatus: 500 }) {
60
+ export class UserInternalServerError extends Schema.TaggedError()("UserInternalServerError", { message: Schema.String }, { httpApiStatus: 500 }) {
61
61
  }
62
62
  const userIdParams = Schema.Struct({ userId: NonEmptyString });
63
63
  export const UsersGroup = HttpApiGroup.make("users")
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
2
+ import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import { BudgetExceededError } from "./budgets.js";
4
4
  /**
5
5
  * `retained`: the workspace's executor ended (or its capture launch failed after it started)
@@ -1850,9 +1850,9 @@ declare const WorkspaceInternalServerError_base: Schema.Class<WorkspaceInternalS
1850
1850
  }>, import("effect/Cause").YieldableError>;
1851
1851
  export declare class WorkspaceInternalServerError extends WorkspaceInternalServerError_base {
1852
1852
  }
1853
- export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", HttpApiEndpoint.HttpApiEndpoint<"applyWorkspaceDotfiles", "POST", "/:workspaceId/dotfiles", HttpApiEndpoint.StringTree<Schema.Struct<{
1853
+ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", HttpApiEndpoint.HttpApiEndpoint<"applyWorkspaceDotfiles", "POST", "/:workspaceId/dotfiles", Schema.toCodecStringTree<Schema.Struct<{
1854
1854
  readonly workspaceId: Schema.String;
1855
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1855
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1856
1856
  /** The workspace's owner (owner scope; uniform 404 otherwise). */
1857
1857
  readonly ownerUserId: Schema.String;
1858
1858
  /** The Sealant user whose dotfiles these are: recorded on the run (`metadata.dotfiles`). */
@@ -1882,7 +1882,7 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
1882
1882
  readonly bootstrap: Schema.optional<Schema.Boolean>;
1883
1883
  readonly bootstrapCommand: Schema.optional<Schema.String>;
1884
1884
  }>>>;
1885
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1885
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1886
1886
  readonly runId: Schema.String;
1887
1887
  readonly workspaceId: Schema.String;
1888
1888
  readonly attemptId: Schema.optional<Schema.String>;
@@ -1907,37 +1907,37 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
1907
1907
  readonly recordDeletedAt: Schema.optional<Schema.String>;
1908
1908
  readonly createdAt: Schema.String;
1909
1909
  readonly updatedAt: Schema.String;
1910
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceForbiddenError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceServiceUnavailableError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"bindWorkspace", "POST", "/:workspaceId/bind", HttpApiEndpoint.StringTree<Schema.Struct<{
1910
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceForbiddenError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceServiceUnavailableError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"bindWorkspace", "POST", "/:workspaceId/bind", Schema.toCodecStringTree<Schema.Struct<{
1911
1911
  readonly workspaceId: Schema.String;
1912
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1912
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1913
1913
  readonly ownerUserId: Schema.String;
1914
1914
  readonly mountPath: Schema.optional<Schema.String>;
1915
1915
  readonly subpath: Schema.String;
1916
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1916
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1917
1917
  readonly binds: Schema.$Array<Schema.Struct<{
1918
1918
  readonly mountPath: Schema.String;
1919
1919
  readonly subpath: Schema.String;
1920
1920
  }>>;
1921
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"cancelWorkspaceCreate", "POST", "/idempotency-keys/:idempotencyKey/cancel", HttpApiEndpoint.StringTree<Schema.Struct<{
1921
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"cancelWorkspaceCreate", "POST", "/idempotency-keys/:idempotencyKey/cancel", Schema.toCodecStringTree<Schema.Struct<{
1922
1922
  readonly idempotencyKey: Schema.String;
1923
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1923
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1924
1924
  readonly ownerUserId: Schema.String;
1925
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1925
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1926
1926
  readonly idempotencyKey: Schema.String;
1927
1927
  readonly state: Schema.Literals<readonly ["pending", "found", "cancelled", "none"]>;
1928
1928
  readonly workspaceId: Schema.optional<Schema.String>;
1929
1929
  readonly runId: Schema.optional<Schema.String>;
1930
1930
  readonly launchId: Schema.optional<Schema.String>;
1931
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"clearWorkspaceSshUser", "DELETE", "/:workspaceId/ssh-user", HttpApiEndpoint.StringTree<Schema.Struct<{
1931
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"clearWorkspaceSshUser", "DELETE", "/:workspaceId/ssh-user", Schema.toCodecStringTree<Schema.Struct<{
1932
1932
  readonly workspaceId: Schema.String;
1933
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
1933
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
1934
1934
  /** The workspace's owner. Required by the control plane: a request that names none finds nothing. */
1935
1935
  readonly ownerUserId: Schema.optional<Schema.String>;
1936
- }>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1936
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1937
1937
  readonly workspaceId: Schema.String;
1938
1938
  /** Always `null` (root) after the call. */
1939
1939
  readonly sshUser: Schema.Null;
1940
- }>>, HttpApiEndpoint.Json<typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createWorkspace", "POST", "/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1940
+ }>>, Schema.toCodecJson<typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createWorkspace", "POST", "/", never, never, Schema.toCodecJson<Schema.Struct<{
1941
1941
  readonly ownerUserId: Schema.String;
1942
1942
  readonly registryId: Schema.String;
1943
1943
  readonly repository: Schema.String;
@@ -1989,9 +1989,9 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
1989
1989
  * control plane reports it takes this with `features.workspaceSshUser`; an older one ignores it.
1990
1990
  */
1991
1991
  readonly sshAsOwner: Schema.optional<Schema.Boolean>;
1992
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
1992
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
1993
1993
  readonly "idempotency-key": Schema.optional<Schema.String>;
1994
- }>>, HttpApiEndpoint.Json<Schema.Struct<{
1994
+ }>>, Schema.toCodecJson<Schema.Struct<{
1995
1995
  readonly workspaceId: Schema.String;
1996
1996
  readonly name: Schema.String;
1997
1997
  readonly status: Schema.Literals<readonly ["queued", "running", "ready", "failed", "cancelled", "stopped", "retained"]>;
@@ -2031,9 +2031,9 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2031
2031
  readonly replayed: Schema.optional<Schema.Boolean>;
2032
2032
  /** The launch identity the create named (`launchId`), recorded on its attempt. */
2033
2033
  readonly launchId: Schema.optional<Schema.String>;
2034
- }>>, HttpApiEndpoint.Json<typeof BudgetExceededError | typeof WorkspaceBadRequestError | typeof WorkspaceRuntimeEnvReferencesUnsupportedError | typeof WorkspaceDockerServiceUnsupportedError | typeof WorkspaceSshOwnerRefusedError | typeof WorkspaceForbiddenError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceServiceUnavailableError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"execWorkspace", "POST", "/:workspaceId/exec", HttpApiEndpoint.StringTree<Schema.Struct<{
2034
+ }>>, Schema.toCodecJson<typeof BudgetExceededError | typeof WorkspaceBadRequestError | typeof WorkspaceRuntimeEnvReferencesUnsupportedError | typeof WorkspaceDockerServiceUnsupportedError | typeof WorkspaceSshOwnerRefusedError | typeof WorkspaceForbiddenError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceServiceUnavailableError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"execWorkspace", "POST", "/:workspaceId/exec", Schema.toCodecStringTree<Schema.Struct<{
2035
2035
  readonly workspaceId: Schema.String;
2036
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2036
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2037
2037
  readonly ownerUserId: Schema.String;
2038
2038
  /** Commands execute sequentially in the workspace, each recorded like any other process. */
2039
2039
  readonly commands: Schema.$Array<Schema.Struct<{
@@ -2047,7 +2047,7 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2047
2047
  * control plane that cannot run one answers `404`, so a mixed-version fleet never runs it as root.
2048
2048
  */
2049
2049
  readonly user: Schema.optional<Schema.String>;
2050
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2050
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2051
2051
  readonly runId: Schema.String;
2052
2052
  readonly workspaceId: Schema.String;
2053
2053
  readonly attemptId: Schema.optional<Schema.String>;
@@ -2072,9 +2072,9 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2072
2072
  readonly recordDeletedAt: Schema.optional<Schema.String>;
2073
2073
  readonly createdAt: Schema.String;
2074
2074
  readonly updatedAt: Schema.String;
2075
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"execWorkspaceAsUser", "POST", "/:workspaceId/exec-as-user", HttpApiEndpoint.StringTree<Schema.Struct<{
2075
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"execWorkspaceAsUser", "POST", "/:workspaceId/exec-as-user", Schema.toCodecStringTree<Schema.Struct<{
2076
2076
  readonly workspaceId: Schema.String;
2077
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2077
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2078
2078
  readonly ownerUserId: Schema.String;
2079
2079
  /** Commands execute sequentially in the workspace, each recorded like any other process. */
2080
2080
  readonly commands: Schema.$Array<Schema.Struct<{
@@ -2083,7 +2083,7 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2083
2083
  readonly cwd: Schema.optional<Schema.String>;
2084
2084
  }>>;
2085
2085
  readonly user: Schema.String;
2086
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2086
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2087
2087
  readonly runId: Schema.String;
2088
2088
  readonly workspaceId: Schema.String;
2089
2089
  readonly attemptId: Schema.optional<Schema.String>;
@@ -2108,17 +2108,17 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2108
2108
  readonly recordDeletedAt: Schema.optional<Schema.String>;
2109
2109
  readonly createdAt: Schema.String;
2110
2110
  readonly updatedAt: Schema.String;
2111
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"expireWorkspace", "POST", "/:workspaceId/expire", HttpApiEndpoint.StringTree<Schema.Struct<{
2111
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"expireWorkspace", "POST", "/:workspaceId/expire", Schema.toCodecStringTree<Schema.Struct<{
2112
2112
  readonly workspaceId: Schema.String;
2113
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2113
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2114
2114
  readonly ownerUserId: Schema.String;
2115
2115
  readonly ttlSeconds: Schema.optional<Schema.NullOr<Schema.Int>>;
2116
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2116
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2117
2117
  readonly workspaceId: Schema.String;
2118
2118
  readonly expiresAt: Schema.NullOr<Schema.String>;
2119
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"flushWorkspaceCapture", "POST", "/:workspaceId/capture/flush", HttpApiEndpoint.StringTree<Schema.Struct<{
2119
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"flushWorkspaceCapture", "POST", "/:workspaceId/capture/flush", Schema.toCodecStringTree<Schema.Struct<{
2120
2120
  readonly workspaceId: Schema.String;
2121
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2121
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2122
2122
  readonly ownerUserId: Schema.String;
2123
2123
  /** `final` or `suspend` (the default). */
2124
2124
  readonly kind: Schema.optional<Schema.Literals<readonly ["final", "suspend"]>>;
@@ -2129,7 +2129,7 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2129
2129
  * counted inside `deadlineMs`. Absent: the daemon's default.
2130
2130
  */
2131
2131
  readonly graceMs: Schema.optional<Schema.Int>;
2132
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2132
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2133
2133
  readonly epoch: Schema.Number;
2134
2134
  readonly worktreeId: Schema.String;
2135
2135
  /** The newest capture the session channel has registered for this worktree. */
@@ -2254,11 +2254,11 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2254
2254
  * plane that predates it; false from a daemon that predates it.
2255
2255
  */
2256
2256
  readonly ownerMap: Schema.optional<Schema.Boolean>;
2257
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getWorkspace", "GET", "/:workspaceId", HttpApiEndpoint.StringTree<Schema.Struct<{
2257
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getWorkspace", "GET", "/:workspaceId", Schema.toCodecStringTree<Schema.Struct<{
2258
2258
  readonly workspaceId: Schema.String;
2259
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
2259
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
2260
2260
  readonly ownerUserId: Schema.optional<Schema.String>;
2261
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2261
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2262
2262
  readonly workspaceId: Schema.String;
2263
2263
  readonly name: Schema.String;
2264
2264
  readonly ownerUserId: Schema.String;
@@ -2405,11 +2405,11 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2405
2405
  }>>;
2406
2406
  }>>;
2407
2407
  }>>;
2408
- }>>, HttpApiEndpoint.Json<typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getWorkspaceCaptureStatus", "GET", "/:workspaceId/capture", HttpApiEndpoint.StringTree<Schema.Struct<{
2408
+ }>>, Schema.toCodecJson<typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getWorkspaceCaptureStatus", "GET", "/:workspaceId/capture", Schema.toCodecStringTree<Schema.Struct<{
2409
2409
  readonly workspaceId: Schema.String;
2410
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
2410
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
2411
2411
  readonly ownerUserId: Schema.String;
2412
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2412
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2413
2413
  readonly epoch: Schema.Number;
2414
2414
  readonly worktreeId: Schema.String;
2415
2415
  /** The newest capture the session channel has registered for this worktree. */
@@ -2534,24 +2534,24 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2534
2534
  * plane that predates it; false from a daemon that predates it.
2535
2535
  */
2536
2536
  readonly ownerMap: Schema.optional<Schema.Boolean>;
2537
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getWorkspaceCreate", "GET", "/idempotency-keys/:idempotencyKey", HttpApiEndpoint.StringTree<Schema.Struct<{
2537
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getWorkspaceCreate", "GET", "/idempotency-keys/:idempotencyKey", Schema.toCodecStringTree<Schema.Struct<{
2538
2538
  readonly idempotencyKey: Schema.String;
2539
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
2539
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
2540
2540
  readonly ownerUserId: Schema.String;
2541
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2541
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2542
2542
  readonly idempotencyKey: Schema.String;
2543
2543
  readonly state: Schema.Literals<readonly ["pending", "found", "cancelled", "none"]>;
2544
2544
  readonly workspaceId: Schema.optional<Schema.String>;
2545
2545
  readonly runId: Schema.optional<Schema.String>;
2546
2546
  readonly launchId: Schema.optional<Schema.String>;
2547
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getWorkspaceSshTarget", "GET", "/:workspaceId/ssh-target", HttpApiEndpoint.StringTree<Schema.Struct<{
2547
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getWorkspaceSshTarget", "GET", "/:workspaceId/ssh-target", Schema.toCodecStringTree<Schema.Struct<{
2548
2548
  readonly workspaceId: Schema.String;
2549
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
2549
+ }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
2550
2550
  readonly "x-sealant-gateway-token": Schema.optional<Schema.String>;
2551
2551
  readonly "x-sealant-principal-id": Schema.optional<Schema.String>;
2552
2552
  readonly "x-sealant-gateway-ssh-user": Schema.optional<Schema.String>;
2553
2553
  readonly "x-sealant-ssh-key-fingerprint": Schema.optional<Schema.String>;
2554
- }>>, HttpApiEndpoint.Json<Schema.Struct<{
2554
+ }>>, Schema.toCodecJson<Schema.Struct<{
2555
2555
  readonly workspaceId: Schema.String;
2556
2556
  readonly attemptId: Schema.String;
2557
2557
  readonly runtime: Schema.Struct<{
@@ -2575,12 +2575,12 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2575
2575
  * named one refuses a target without it (an older API, which never checked the key).
2576
2576
  */
2577
2577
  readonly sshKeyFingerprint: Schema.optional<Schema.String>;
2578
- }>>, HttpApiEndpoint.Json<typeof WorkspaceUnauthorizedError | typeof WorkspaceSshKeyNoLongerRegisteredError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceServiceUnavailableError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"inspectWorkspaceImage", "POST", "/image", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2578
+ }>>, Schema.toCodecJson<typeof WorkspaceUnauthorizedError | typeof WorkspaceSshKeyNoLongerRegisteredError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceServiceUnavailableError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"inspectWorkspaceImage", "POST", "/image", never, never, Schema.toCodecJson<Schema.Struct<{
2579
2579
  readonly ownerUserId: Schema.String;
2580
2580
  readonly registryId: Schema.String;
2581
2581
  /** The spec a create would send (`CreateWorkspaceRequest.spec`). */
2582
2582
  readonly spec: Schema.Unknown;
2583
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2583
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2584
2584
  /** The hash of the image plan the spec renders: one per distinct build input. */
2585
2585
  readonly planHash: Schema.String;
2586
2586
  /** The latest image published for the plan; absent when none has been built yet. */
@@ -2627,12 +2627,12 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2627
2627
  /** ACLs on that runtime's `/workspace`, as the operator declared them. */
2628
2628
  readonly acl: Schema.Literals<readonly ["supported", "unsupported", "unknown"]>;
2629
2629
  }>;
2630
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listWorkspaceAttempts", "GET", "/:workspaceId/attempts", HttpApiEndpoint.StringTree<Schema.Struct<{
2630
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listWorkspaceAttempts", "GET", "/:workspaceId/attempts", Schema.toCodecStringTree<Schema.Struct<{
2631
2631
  readonly workspaceId: Schema.String;
2632
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
2632
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
2633
2633
  readonly ownerUserId: Schema.optional<Schema.String>;
2634
2634
  readonly limit: Schema.optional<Schema.String>;
2635
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2635
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2636
2636
  readonly items: Schema.$Array<Schema.Struct<{
2637
2637
  readonly attemptId: Schema.String;
2638
2638
  readonly relation: Schema.Literals<readonly ["launch", "rebuild", "retry", "resume"]>;
@@ -2699,11 +2699,11 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2699
2699
  readonly finishedAt: Schema.optional<Schema.String>;
2700
2700
  readonly durationMs: Schema.optional<Schema.Number>;
2701
2701
  }>>;
2702
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listWorkspaceCredentials", "GET", "/:workspaceId/credentials", HttpApiEndpoint.StringTree<Schema.Struct<{
2702
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listWorkspaceCredentials", "GET", "/:workspaceId/credentials", Schema.toCodecStringTree<Schema.Struct<{
2703
2703
  readonly workspaceId: Schema.String;
2704
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
2704
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
2705
2705
  readonly ownerUserId: Schema.String;
2706
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2706
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2707
2707
  readonly workspaceId: Schema.String;
2708
2708
  readonly runId: Schema.String;
2709
2709
  readonly homes: Schema.$Array<Schema.Struct<{
@@ -2741,12 +2741,12 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2741
2741
  }>>;
2742
2742
  }>;
2743
2743
  }>>;
2744
- }>>, HttpApiEndpoint.Json<typeof WorkspaceForbiddenError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listWorkspaceEvents", "GET", "/:workspaceId/events", HttpApiEndpoint.StringTree<Schema.Struct<{
2744
+ }>>, Schema.toCodecJson<typeof WorkspaceForbiddenError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listWorkspaceEvents", "GET", "/:workspaceId/events", Schema.toCodecStringTree<Schema.Struct<{
2745
2745
  readonly workspaceId: Schema.String;
2746
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
2746
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
2747
2747
  readonly ownerUserId: Schema.optional<Schema.String>;
2748
2748
  readonly limit: Schema.optional<Schema.String>;
2749
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2749
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2750
2750
  readonly items: Schema.$Array<Schema.Struct<{
2751
2751
  readonly eventId: Schema.String;
2752
2752
  readonly workspaceId: Schema.String;
@@ -2756,13 +2756,13 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2756
2756
  readonly message: Schema.optional<Schema.String>;
2757
2757
  readonly data: Schema.optional<Schema.Unknown>;
2758
2758
  }>>;
2759
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listWorkspaces", "GET", "/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
2759
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listWorkspaces", "GET", "/", never, Schema.toCodecStringTree<Schema.Struct<{
2760
2760
  readonly ownerUserId: Schema.String;
2761
2761
  readonly status: Schema.optional<Schema.Literals<readonly ["queued", "running", "ready", "failed", "cancelled", "stopped", "retained"]>>;
2762
2762
  readonly limit: Schema.optional<Schema.String>;
2763
2763
  /** Only the owner's workspace created with this `idempotencyKey` (none or one item). */
2764
2764
  readonly idempotencyKey: Schema.optional<Schema.String>;
2765
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2765
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2766
2766
  readonly items: Schema.$Array<Schema.Struct<{
2767
2767
  readonly workspaceId: Schema.String;
2768
2768
  readonly name: Schema.String;
@@ -2847,9 +2847,9 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2847
2847
  readonly finishedAt: Schema.optional<Schema.String>;
2848
2848
  readonly expiresAt: Schema.optional<Schema.String>;
2849
2849
  }>>;
2850
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"putWorkspaceCredentials", "POST", "/:workspaceId/credentials", HttpApiEndpoint.StringTree<Schema.Struct<{
2850
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"putWorkspaceCredentials", "POST", "/:workspaceId/credentials", Schema.toCodecStringTree<Schema.Struct<{
2851
2851
  readonly workspaceId: Schema.String;
2852
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2852
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2853
2853
  /** The workspace's owner (owner scope; uniform 404 otherwise). */
2854
2854
  readonly ownerUserId: Schema.String;
2855
2855
  /** The person whose logins the home holds: every named account must be theirs. */
@@ -2889,7 +2889,7 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2889
2889
  * of the whole put failing. Every other refusal still fails the put. Default false.
2890
2890
  */
2891
2891
  readonly partial: Schema.optional<Schema.Boolean>;
2892
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2892
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2893
2893
  readonly workspaceId: Schema.String;
2894
2894
  /** The launch attempt whose executor was written. */
2895
2895
  readonly runId: Schema.String;
@@ -2940,38 +2940,38 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2940
2940
  /** The refusal's words, as a whole put would have answered them. */
2941
2941
  readonly message: Schema.String;
2942
2942
  }>>>;
2943
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceForbiddenError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceServiceUnavailableError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"recoverWorkspace", "POST", "/:workspaceId/recover", HttpApiEndpoint.StringTree<Schema.Struct<{
2943
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceForbiddenError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceServiceUnavailableError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"recoverWorkspace", "POST", "/:workspaceId/recover", Schema.toCodecStringTree<Schema.Struct<{
2944
2944
  readonly workspaceId: Schema.String;
2945
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2945
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2946
2946
  readonly ownerUserId: Schema.String;
2947
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2947
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2948
2948
  readonly workspaceId: Schema.String;
2949
2949
  readonly state: Schema.Literals<readonly ["requested", "not-retained"]>;
2950
2950
  readonly recoverable: Schema.optional<Schema.Boolean>;
2951
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"releaseWorkspaceCredentials", "DELETE", "/:workspaceId/credentials", HttpApiEndpoint.StringTree<Schema.Struct<{
2951
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"releaseWorkspaceCredentials", "DELETE", "/:workspaceId/credentials", Schema.toCodecStringTree<Schema.Struct<{
2952
2952
  readonly workspaceId: Schema.String;
2953
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
2953
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
2954
2954
  readonly ownerUserId: Schema.String;
2955
2955
  readonly home: Schema.String;
2956
- }>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2956
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2957
2957
  readonly workspaceId: Schema.String;
2958
2958
  readonly runId: Schema.String;
2959
2959
  readonly home: Schema.String;
2960
2960
  /** `false`: the home held nothing (already released); its login files were removed anyway. */
2961
2961
  readonly released: Schema.Boolean;
2962
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceForbiddenError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceServiceUnavailableError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"renameWorkspace", "PATCH", "/:workspaceId/name", HttpApiEndpoint.StringTree<Schema.Struct<{
2962
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceForbiddenError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceServiceUnavailableError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"renameWorkspace", "PATCH", "/:workspaceId/name", Schema.toCodecStringTree<Schema.Struct<{
2963
2963
  readonly workspaceId: Schema.String;
2964
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2964
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2965
2965
  readonly name: Schema.String;
2966
2966
  /** The workspace's owner. Required by the control plane: a rename that names none finds nothing. */
2967
2967
  readonly ownerUserId: Schema.optional<Schema.String>;
2968
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2968
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2969
2969
  readonly workspaceId: Schema.String;
2970
2970
  readonly name: Schema.String;
2971
2971
  readonly updatedAt: Schema.String;
2972
- }>>, HttpApiEndpoint.Json<typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"replanWorkspaceCapture", "POST", "/:workspaceId/capture/replan", HttpApiEndpoint.StringTree<Schema.Struct<{
2972
+ }>>, Schema.toCodecJson<typeof WorkspaceNotFoundError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"replanWorkspaceCapture", "POST", "/:workspaceId/capture/replan", Schema.toCodecStringTree<Schema.Struct<{
2973
2973
  readonly workspaceId: Schema.String;
2974
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2974
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2975
2975
  readonly ownerUserId: Schema.String;
2976
2976
  /**
2977
2977
  * The owner map the claim needs (a capture source's `ownerMap`), or `null` for none. The daemon
@@ -2988,7 +2988,7 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2988
2988
  readonly uid: Schema.Number;
2989
2989
  }>>;
2990
2990
  }>>>;
2991
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
2991
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2992
2992
  readonly worktreeId: Schema.String;
2993
2993
  readonly epoch: Schema.Number;
2994
2994
  readonly headN: Schema.optional<Schema.Number>;
@@ -2999,18 +2999,18 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
2999
2999
  readonly bytesSkipped: Schema.Number;
3000
3000
  readonly removed: Schema.Number;
3001
3001
  readonly unchanged: Schema.Boolean;
3002
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"restartWorkspace", "POST", "/:workspaceId/restart", HttpApiEndpoint.StringTree<Schema.Struct<{
3002
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"restartWorkspace", "POST", "/:workspaceId/restart", Schema.toCodecStringTree<Schema.Struct<{
3003
3003
  readonly workspaceId: Schema.String;
3004
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
3004
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
3005
3005
  readonly ownerUserId: Schema.String;
3006
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
3006
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
3007
3007
  readonly workspaceId: Schema.String;
3008
3008
  /** The new attempt driving the fresh launch. */
3009
3009
  readonly runId: Schema.String;
3010
3010
  readonly status: Schema.Literals<readonly ["queued", "running", "ready", "failed", "cancelled", "stopped", "retained"]>;
3011
- }>>, HttpApiEndpoint.Json<typeof BudgetExceededError | typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"stopWorkspace", "POST", "/:workspaceId/stop", HttpApiEndpoint.StringTree<Schema.Struct<{
3011
+ }>>, Schema.toCodecJson<typeof BudgetExceededError | typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"stopWorkspace", "POST", "/:workspaceId/stop", Schema.toCodecStringTree<Schema.Struct<{
3012
3012
  readonly workspaceId: Schema.String;
3013
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
3013
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
3014
3014
  readonly ownerUserId: Schema.String;
3015
3015
  /**
3016
3016
  * End the workspace WITHOUT saving its unsaved captures. A capture-sourced workspace is
@@ -3072,7 +3072,7 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
3072
3072
  readonly headN: Schema.optional<Schema.Int>;
3073
3073
  }>>;
3074
3074
  }>>;
3075
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
3075
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
3076
3076
  readonly workspaceId: Schema.String;
3077
3077
  readonly status: Schema.Literals<readonly ["queued", "running", "ready", "failed", "cancelled", "stopped", "retained"]>;
3078
3078
  /**
@@ -3084,5 +3084,5 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
3084
3084
  readonly outcome: Schema.Literals<readonly ["accepted", "ignored"]>;
3085
3085
  readonly detail: Schema.optional<Schema.String>;
3086
3086
  }>>;
3087
- }>>, HttpApiEndpoint.Json<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceInternalServerError>, never, never>, false>;
3087
+ }>>, Schema.toCodecJson<typeof WorkspaceBadRequestError | typeof WorkspaceNotFoundError | typeof WorkspaceConflictError | typeof WorkspaceBadGatewayError | typeof WorkspaceInternalServerError>, never, never>, false>;
3088
3088
  export {};